Multiple security vulnerabilities have been identified in Mongoose, a Node.js object modeling library. The flaws affect the projection and filter sanitization controls used when applications pass user-controlled query data into database operations. Affected releases span Mongoose 8.5.0 and later, 9.0.0 and later, and earlier 6, 7, and 8 release lines. The overall risk is unauthorized disclosure of sensitive fields and injection of query selectors that can bypass authentication or target unintended documents.
CVE-2026-142596 (CVSS 7.5 — High): The projection sanitization control can be bypassed through multiple projection forms, allowing user-controlled projections to include fields marked as excluded by default. An unauthenticated attacker who can influence projection input can read sensitive values such as password hashes, reset tokens, or other protected fields.[/subscribe_to_unlock_form]
Multiple security vulnerabilities have been identified in Mongoose, a Node.js object modeling library. The flaws affect the projection and filter sanitization controls used when applications pass user-controlled query data into database operations. Affected releases span Mongoose 8.5.0 and later, 9.0.0 and later, and earlier 6, 7, and 8 release lines. The overall risk is unauthorized disclosure of sensitive fields and injection of query selectors that can bypass authentication or target unintended documents.
CVE-2026-142596 (CVSS 7.5 — High): The projection sanitization control can be bypassed through multiple projection forms, allowing user-controlled projections to include fields marked as excluded by default. An unauthenticated attacker who can influence projection input can read sensitive values such as password hashes, reset tokens, or other protected fields.[emaillocker id="1283"]
CVE-2026-142595 (CVSS 6.5 — Medium): The filter sanitization control can be bypassed using internal top-level query operators that accept nested filters, allowing arbitrary query selectors to be injected. An unauthenticated attacker who controls filter keys can bypass authentication, extract data through boolean oracles, or cause unintended updates or deletions.
These vulnerabilities collectively present a significant risk to applications that pass user-controlled query or projection data into Mongoose while relying on built-in sanitization. The most exposed systems are those that expose login, search, or filtering endpoints without strict validation of query structure. The general action is to assess whether user-controlled filter or projection data reaches the database layer.
We recommend you to update mongoose to version 6.13.13, 7.8.14, 8.24.10, or 9.12.2 depending on your installed branch.
The following reports contain further technical details:
[/emaillocker]