Security advisory GHSA-p9xr-7p9p-gpqx: Feathers has a NoSQL Injection via WebSocket id Parameter in MongoDB Adapter
Package: @feathersjs/mongodb (npm), vulnerable version: 5.0.41, fixed in: 5.0.42
CWE: CWE-943
Files changed by the fix:
b/lib/adapter.js
b/src/adapter.ts

Fix diff:
diff -ruN --no-dereference /home/ubuntu/closed-source-intelligence/data/cache/npm-tarballs/feathersjs-mongodb-5.0.41/CHANGELOG.md /home/ubuntu/closed-source-intelligence/data/cache/npm-tarballs/feathersjs-mongodb-5.0.42/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,13 @@
 All notable changes to this project will be documented in this file.
 See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
 
+## [5.0.42](https://github.com/feathersjs/feathers/compare/v5.0.41...v5.0.42) (2026-03-04)
+
+### Bug Fixes
+
+- **mongodb:** Ensure arbitrary objects can't be passed as MongoDB ids ([#3664](https://github.com/feathersjs/feathers/issues/3664)) ([163e664](https://github.com/feathersjs/feathers/commit/163e664f231a57041034c852b80525fc5c8cf68d))
+- Update dependencies ([#3666](https://github.com/feathersjs/feathers/issues/3666)) ([477bf45](https://github.com/feathersjs/feathers/commit/477bf45f9c9dbde77a14a07828aa02300de23ae7))
+
 ## [5.0.41](https://github.com/feathersjs/feathers/compare/v5.0.40...v5.0.41) (2026-02-19)
 
 **Note:** Version bump only for package @feathersjs/mongodb
diff -ruN --no-dereference /home/ubuntu/closed-source-intelligence/data/cache/npm-tarballs/feathersjs-mongodb-5.0.41/lib/adapter.js /home/ubuntu/closed-source-intelligence/data/cache/npm-tarballs/feathersjs-mongodb-5.0.42/lib/adapter.js
--- a/lib/adapter.js
+++ b/lib/adapter.js
@@ -31,6 +31,9 @@
         const { $select, $sort, $limit: _limit, $skip = 0, ...query } = (params.query || {});
         const $limit = (0, adapter_commons_1.getLimit)(_limit, options.paginate);
         if (id !== null) {
+            if (typeof id !== 'string' && typeof id !== 'number' && !(id instanceof mongodb_1.ObjectId)) {
+                throw new errors_1.BadRequest(`Invalid id '${JSON.stringify(id)}'`);
+            }
             query.$and = (query.$and || []).concat({
                 [this.id]: this.getObjectId(id)
             });
diff -ruN --no-dereference /home/ubuntu/closed-source-intelligence/data/cache/npm-tarballs/feathersjs-mongodb-5.0.41/lib/adapter.js.map /home/ubuntu/closed-source-intelligence/data/cache/npm-tarballs/feathersjs-mongodb-5.0.42/lib/adapter.js.map
--- a/lib/adapter.js.map
+++ b/lib/adapter.js.map
@@ -1 +1 @@
-{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":";;;AAAA,qCAagB;AAChB,+CAA2E;AAC3E,iDAAuC;AACvC,iEAOoC;AAEpC,mDAA8C;AA4B9C,sBAAsB;AACtB,MAAa,cAKX,SAAQ,6BAAqF;IAC7F,YAAY,OAA8B;QACxC,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAA;QACxD,CAAC;QAED,KAAK,CAAC;YACJ,EAAE,EAAE,KAAK;YACT,GAAG,OAAO;SACX,CAAC,CAAA;IACJ,CAAC;IAED,WAAW,CAAC,EAAa;QACvB,IAAI,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAClC,OAAO,EAAE,CAAA;QACX,CAAC;QAED,IAAI,IAAI,CAAC,EAAE,KAAK,KAAK,IAAI,kBAAQ,CAAC,OAAO,CAAC,EAAY,CAAC,EAAE,CAAC;YACxD,EAAE,GAAG,IAAI,kBAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAA;QAClC,CAAC;QAED,OAAO,EAAE,CAAA;IACX,CAAC;IAED,WAAW,CAAC,EAAqB,EAAE,MAAqB;QACtD,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA;QACvC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAG,CAAC,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AAC,MAAA,MAAM,CAAC,KAAK,0CAAE,OAAO,CAAC;SACtD,CAAA;QAED,OAAO,KAAK;aACT,gBAAgB,CAAC,KAAK,EAAE,aAAa,CAAC;aACtC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;YACf,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,MAAM,IAAI,iBAAQ,CAAC,2BAA2B,EAAE,GAAG,CAAC,CAAA;YACtD,CAAC;YACD,OAAO,MAAgB,CAAA;QACzB,CAAC,CAAC;aACD,KAAK,CAAC,4BAAY,CAAC,CAAA;IACxB,CAAC;CACF;AA1hBD,wCA0hBC"}
\ No newline at end of file
diff -ruN --no-dereference /home/ubuntu/closed-source-intelligence/data/cache/npm-tarballs/feathersjs-mongodb-5.0.41/package.json /home/ubuntu/closed-source-intelligence/data/cache/npm-tarballs/feathersjs-mongodb-5.0.42/package.json
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@feathersjs/mongodb",
   "description": "Feathers MongoDB service adapter",
-  "version": "5.0.41",
+  "version": "5.0.42",
   "homepage": "https://feathersjs.com",
   "main": "lib/",
   "keywords": [
@@ -51,23 +51,23 @@
     "access": "public"
   },
   "dependencies": {
-    "@feathersjs/adapter-commons": "^5.0.41",
-    "@feathersjs/commons": "^5.0.41",
-    "@feathersjs/errors": "^5.0.41",
-    "@feathersjs/feathers": "^5.0.41"
+    "@feathersjs/adapter-commons": "^5.0.42",
+    "@feathersjs/commons": "^5.0.42",
+    "@feathersjs/errors": "^5.0.42",
+    "@feathersjs/feathers": "^5.0.42"
   },
   "peerDependencies": {
     "mongodb": "^6.19.0"
   },
   "devDependencies": {
-    "@feathersjs/adapter-tests": "^5.0.41",
-    "@feathersjs/schema": "^5.0.41",
+    "@feathersjs/adapter-tests": "^5.0.42",
+    "@feathersjs/schema": "^5.0.42",
     "@types/mocha": "^10.0.10",
-    "@types/node": "^25.3.0",
+    "@types/node": "^25.3.3",
     "mocha": "^11.7.5",
     "mongodb-memory-server": "^11.0.1",
     "shx": "^0.4.0",
     "typescript": "^5.9.3"
   },
-  "gitHead": "ddb9b9c558563ebd60ac1596da38b05bb54592db"
+  "gitHead": "fe1f2bc8bb2b55762be1a676ac98eb89f2f2ab9d"
 }
diff -ruN --no-dereference /home/ubuntu/closed-source-intelligence/data/cache/npm-tarballs/feathersjs-mongodb-5.0.41/src/adapter.ts /home/ubuntu/closed-source-intelligence/data/cache/npm-tarballs/feathersjs-mongodb-5.0.42/src/adapter.ts
--- a/src/adapter.ts
+++ b/src/adapter.ts
@@ -86,6 +86,9 @@
     const { $select, $sort, $limit: _limit, $skip = 0, ...query } = (params.query || {}) as AdapterQuery
     const $limit = getLimit(_limit, options.paginate)
     if (id !== null) {
+      if (typeof id !== 'string' && typeof id !== 'number' && !(id instanceof ObjectId)) {
+        throw new BadRequest(`Invalid id '${JSON.stringify(id)}'`)
+      }
       query.$and = (query.$and || []).concat({
         [this.id]: this.getObjectId(id)
       })