CVE-2025-50979

8.6

NodeBB · NodeBB

NodeBB version 4.3.0 contains a SQL injection vulnerability in the search-categories API endpoint, allowing unauthenticated attackers to execute arbitrary database queries.

Executive summary

NodeBB version 4.3.0 is vulnerable to unauthenticated SQL injection, posing a significant risk of unauthorized data access and potential system compromise.

Vulnerability

The application fails to properly sanitize the search query parameter in the API endpoint at /api/v3/search/categories, which permits unauthenticated remote attackers to inject boolean-based blind and PostgreSQL error-based SQL payloads.

Business impact

Successful exploitation allows an attacker to interact directly with the backend database, potentially leading to unauthorized data exfiltration or modification. Given the CVSS score of 8.6, this vulnerability represents a high risk to the confidentiality and integrity of sensitive user or system information stored within the NodeBB instance.

Remediation

Immediate Action: As no official patch is currently available, administrators should restrict access to the affected API endpoint at /api/v3/search/categories using network-level controls or by disabling the search functionality if it is not business-critical.

Proactive Monitoring: Review web server and application logs for suspicious URL patterns containing SQL syntax, such as UNION, SELECT, or error-generating characters, directed at the search-categories endpoint.

Compensating Controls: Deploy a Web Application Firewall (WAF) with rules configured to detect and block common SQL injection patterns targeting the specified API path.

Exploitation status

Public Exploit Available: Yes, a published proof-of-concept exists in the researcher write-up referenced in the CVE record.

Analyst recommendation

The severity of this vulnerability, combined with the availability of a public proof-of-concept, necessitates immediate defensive action. Organizations running NodeBB 4.3.0 must prioritize the implementation of compensating controls, such as WAF filtering or access restrictions, until the vendor provides a secure update. Continuous monitoring of the application environment is essential until a permanent patch is applied.

Sources