Vulnerabilities in pkg:npm/@feathersjs/mongodb

PACKAGE
Advisory Identifier: GHSA-p9xr-7p9p-gpqx
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@feathersjs/mongodb

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@feathersjs/mongodb. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-p9xr-7p9p-gpqx CVE-2026-29793 CRITICAL Feathers has a NoSQL Injection via WebSocket id Parameter in MongoDB Adapter

CVE-2026-29793 at a Glance

CVE Identifier CVE-2026-29793
GHSA Identifier GHSA-p9xr-7p9p-gpqx
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-943: Improper Neutralization of Special Elements in Data Query Logic
Affected Product @feathersjs/mongodb
Package Ecosystem npm
Published Date
Last Updated

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.

@feathersjs/mongodb fixed: 5.0.42
npm install @feathersjs/mongodb@5.0.42
Verify Direct and Transitive Dependencies

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

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.

CVE-2026-29793 Affected @feathersjs/mongodb Versions

1 component(s)
Fixed Versions:
5.0.42
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?
CVE-2026-29793 is a security vulnerability in @feathersjs/mongodb involving Feathers has a NoSQL Injection via WebSocket id Parameter in MongoDB Adapter under CWE-943: Improper Neutralization of Special Elements in Data Query Logic.
Which @feathersjs/mongodb versions are affected?
Affected versions include releases prior to 5.0.42 across affected packages: @feathersjs/mongodb.
What version fixes CVE-2026-29793?
Upgrading to 5.0.42 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @feathersjs/mongodb affected?
Yes, @feathersjs/mongodb is affected in releases prior to 5.0.42. Upgrade your dependency to 5.0.42 or later.
What CWE is associated with CVE-2026-29793?
CVE-2026-29793 is classified under CWE-943: Improper Neutralization of Special Elements in Data Query Logic (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.).
How can I check npm dependencies for CVE-2026-29793?
Run the dependency tree command: 'npm ls @feathersjs/mongodb'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}