Elevated
Mongoose sanitizeProjection bypass exposes hidden fields
CVE-2026-142596
Database lookup tools may leak hidden details like passwords.
- CVE
- CVE-2026-142596 (opens in a new tab)
- Score
- CVSS 7.5
- First seen
7.5
Products
Mitigation
Update to 8.24.10 or 9.12.2 or later.
Summary
A bypass of Mongoose's sanitizeProjection check lets attacker-supplied projections return fields marked select: false, such as password hashes, reset tokens and API keys. Versions from 8.5.0 through 8.24.9 and 9.0.0 through 9.12.1 are affected.
Exploit code is public
Affected when
- App passes user-controlled data to select(), find(filter, projection) or the projection option
- App relies on sanitizeProjection to keep fields hidden
4 other Incidents of this product in the last 30 days
Incidents by product: Automattic mongoose
Other recent Incidents of Automattic mongoose
Read the advisory · github.com (opens in a new tab)
- Advisory: github.com (opens in a new tab)
- CVE record: cve.org (opens in a new tab)
- Repository: googlesky/CVE-2026-142596 (opens in a new tab)