For your digest
mongoose: Mongoose's Improper Sanitization of $nor in sanitizeFilter May Allow NoSQL Injection
It touches something Phylax follows. No evidence of use yet.
Does it affect what I run?
mongoose (npm)
Checked in your browser. The version you type is not sent anywhere.
Who is affected
- mongoose (npm): every version, before 6.13.9
- mongoose (npm): from 7.0.0, before 7.8.9
- mongoose (npm): from 8.0.0, before 8.22.1
- mongoose (npm): from 9.0.0, before 9.1.6
The fix
mongoose (npm) fixed in 6.13.9
npmnpm install mongoose@6.13.9pnpmpnpm add mongoose@6.13.9yarnyarn add mongoose@6.13.9bunbun add mongoose@6.13.9Check what is installednpm ls mongoosePaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency mongoose to 6.13.9 or the nearest later release, to fix CVE-2026-42334. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.mongoose (npm) fixed in 7.8.9
npmnpm install mongoose@7.8.9pnpmpnpm add mongoose@7.8.9yarnyarn add mongoose@7.8.9bunbun add mongoose@7.8.9Check what is installednpm ls mongoosePaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency mongoose to 7.8.9 or the nearest later release, to fix CVE-2026-42334. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.mongoose (npm) fixed in 8.22.1
npmnpm install mongoose@8.22.1pnpmpnpm add mongoose@8.22.1yarnyarn add mongoose@8.22.1bunbun add mongoose@8.22.1Check what is installednpm ls mongoosePaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency mongoose to 8.22.1 or the nearest later release, to fix CVE-2026-42334. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.mongoose (npm) fixed in 9.1.6
npmnpm install mongoose@9.1.6pnpmpnpm add mongoose@9.1.6yarnyarn add mongoose@9.1.6bunbun add mongoose@9.1.6Check what is installednpm ls mongoosePaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency mongoose to 9.1.6 or the nearest later release, to fix CVE-2026-42334. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
Fix commands generated from the advisory's versions. No model wrote them.
In plain words
Brief pending: here are the facts and the fix. The explanation in plain words follows when it has been written and checked.
Evidence
No evidence that it is being used, or can be. It is listed because of what it affects.
Timeline
- First published here, as "For your digest".