Vulnerabilities in pkg:npm/nodebb
PACKAGECVE-2025-50979 is a HIGH sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Nodebb libraries in the npm ecosystem. The issue involves nodebb sql injection vulnerability. Remediation is available in the latest vendor maintenance releases.
pkg:npm/nodebb
Vulnerability advisories affecting package pkg:npm/nodebb. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-rfh2-8vxq-jqr8 | CVE-2025-50979 | HIGH | NodeBB SQL Injection vulnerability |
| GHSA-vqr3-vrrg-f3jh | CVE-2024-57041 | MODERATE | NodeBB Cross-site scripting (XSS) vulnerability |
| GHSA-qc99-r4wh-c8h6 | CVE-2024-29316 | MODERATE | Incorrect Access Control in NodeBB |
| GHSA-9g4f-5rpg-4948 | CVE-2015-3296 | MODERATE | NodeBB Cross-site Scripting Vulnerability in Markdown Processing |
| GHSA-4qcv-qf38-5j3j | CVE-2023-2850 | MODERATE | Unintentional leakage of private information via cross-origin websocket session hijacking |
| GHSA-vh2g-6c4x-5hmp | CVE-2023-26045 | CRITICAL | Path traversal and code execution via prototype vulnerability |
| GHSA-rf3g-v8p5-p675 | CVE-2022-46164 | CRITICAL | NodeBB vulnerable to account takeover via prototype vulnerability |
| GHSA-5gwx-wf9g-r5mx | CVE-2022-3978 | MODERATE | NodeBB vulnerable to Cross-Site Request Forgery |
| GHSA-xmgg-fx9p-prq6 | CVE-2022-36076 | HIGH | NodeBB account takeover via SSO plugins |
| GHSA-pfj7-2qfw-vwgm | CVE-2021-43788 | MODERATE | NodeBB vulnerable to path traversal in translator module |
| GHSA-p4cc-w597-6cpm | CVE-2022-36045 | CRITICAL | Cryptographically weak PRNG in `utils.generateUUID` |
| GHSA-wx69-rvg3-x7fc | CVE-2021-43787 | CRITICAL | XSS via prototype pollution in NodeBB |
| GHSA-hf2m-j98r-4fqw | CVE-2021-43786 | CRITICAL | API token verification can be bypassed in NodeBB |
| GHSA-72fv-qgj6-2w2p | CVE-2015-9286 | MODERATE | Cross-site Scripting in NodeBB |
CVE-2025-50979 at a Glance
How to Fix CVE-2025-50979
To remediate this vulnerability, upgrade all affected Nodebb dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install nodebb@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls nodebb
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-50979, inspect your project dependencies using npm:
npm ls nodebb
Analyze the terminal output to locate any version of Nodebb in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls nodebb command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Nodebb, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-50979 Affected Nodebb Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
nodebb
|
npm |
≤ 4.3.0
|
|
References
Frequently Asked Questions
What is CVE-2025-50979?
Which Nodebb versions are affected?
What version fixes CVE-2025-50979?
Is nodebb affected?
What CWE is associated with CVE-2025-50979?
How can I check npm dependencies for CVE-2025-50979?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rfh2-8vxq-jqr8",
"modified" : "2025-08-27T19:28:28Z",
"published" : "2025-08-27T18:31:55Z",
"aliases" : [ "CVE-2025-50979" ],
"summary" : "NodeBB SQL Injection vulnerability",
"details" : "NodeBB v4.3.0 is vulnerable to SQL injection in its search-categories API endpoint (/api/v3/search/categories). The search query parameter is not properly sanitized, allowing unauthenticated, remote attackers to inject boolean-based blind and PostgreSQL error-based payloads.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "nodebb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "4.3.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-50979"
}, {
"type" : "WEB",
"url" : "https://github.com/4rdr/proofs/blob/main/info/NodeBB-v4.3.0.-SQL-Injection-via-search-parameter.md"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/NodeBB/NodeBB"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-08-27T19:28:28Z",
"nvd_published_at" : "2025-08-27T18:15:45Z"
}
}