CVE-2026-29793: Feathersjs Mongodb Id Nosql Injection

MongoDB adapter constructs a query filter from an `id` parameter via `getObjectId(id)` without first validating that `id` is a string, number, or ObjectId. An attacker (e.g. via Socket.IO) can supply an object such as `{ $ne: null }` or `{ $regex: '^' }` which Mongo evaluates as query operators, matching/modifying/deleting arbitrary documents (NoSQL injectio

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0TS
greprules fetch cve-2026-29793-feathersjs-mongodb-id-nosql-injection --engine opengrep

Description

MongoDB adapter constructs a query filter from an `id` parameter via `getObjectId(id)` without first validating that `id` is a string, number, or ObjectId. An attacker (e.g. via Socket.IO) can supply an object such as `{ $ne: null }` or `{ $regex: '^' }` which Mongo evaluates as query operators, matching/modifying/deleting arbitrary documents (NoSQL injectio