MongoDB Injection Bugs Your Code Review Misses: 4 Shapes, 16 ESLint Rules, 1 Honest Gap
{ "$ne": null } as a password bypasses MongoDB auth — no SQL string, no injection your generic linter understands. One install command, four lines of config, and the first run on a 19-line Express login route returns 7 real findings. NoSQL operator injection, the $where RCE behind CVE-2025-23061, and the 16 CWE-mapped ESLint rules built specifically for MongoDB/Mongoose — catching 3 of the 4 bugs below in CI, with the fourth named as the gap it is.
#security#node#devsecops+1