CVE-2026-29793: @feathersjs/mongodb SQL Injection Vulnerability
CRITICALCVE-2026-29793 is a CRITICAL sql injection vulnerability (CWE-943: Improper Neutralization of Special Elements in Data Query Logic) affecting @feathersjs/mongodb libraries in the npm ecosystem. The issue involves feathers has a nosql injection via websocket id parameter in mongodb adapter. Remediation is available by upgrading affected packages to version 5.0.42.
CVE-2026-29793 at a Glance
How to Fix CVE-2026-29793
To remediate this vulnerability, upgrade all affected @feathersjs/mongodb 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 @feathersjs/mongodb@5.0.42
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @feathersjs/mongodb
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-29793, inspect your project dependencies using npm:
npm ls @feathersjs/mongodb
Analyze the terminal output to locate any version of @feathersjs/mongodb in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.42), your application is affected.
Note: The npm ls @feathersjs/mongodb 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-943: Improper Neutralization of Special Elements in Data Query Logic, where the product generates a query intended to access or manipulate data in a data store such as a database, but it does not neutralize or incorrectly neutralizes special elements that can modify the intended logic of the query. In @feathersjs/mongodb, 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-2026-29793 Affected @feathersjs/mongodb Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@feathersjs/mongodb
|
npm |
≥ 5.0.0
< 5.0.42
|
5.0.42
|
References
Frequently Asked Questions
What is CVE-2026-29793?
Which @feathersjs/mongodb versions are affected?
What version fixes CVE-2026-29793?
Is @feathersjs/mongodb affected?
What CWE is associated with CVE-2026-29793?
How can I check npm dependencies for CVE-2026-29793?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p9xr-7p9p-gpqx",
"modified" : "2026-03-10T22:55:42Z",
"published" : "2026-03-10T21:03:40Z",
"aliases" : [ "CVE-2026-29793" ],
"summary" : "Feathers has a NoSQL Injection via WebSocket id Parameter in MongoDB Adapter",
"details" : "Socket.IO clients can send arbitrary JavaScript objects as the id argument to any service method (get, patch, update, remove). The transport layer performs no type checking on this argument. When the service uses the MongoDB adapter, these objects pass through getObjectId() and land directly in the MongoDB query as operators. Sending {$ne: null} as the id matches every document in the collection.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@feathersjs/mongodb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0"
}, {
"fixed" : "5.0.42"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 5.0.41"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/feathersjs/feathers/security/advisories/GHSA-p9xr-7p9p-gpqx"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-29793"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/feathersjs/feathers"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-943" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-10T21:03:40Z",
"nvd_published_at" : "2026-03-10T20:16:39Z"
}
}