Home › Vulnerabilities › Automattic
Mongoose Flaws Let Crafted Input Bypass Field Hiding and Query Filtering
Three Mongoose (Automattic) advisories published by NVD on 2026-12-02 describe bypasses of its sanitizeProjection and sanitizeFilter protections and a forged BSON value issue. The most severe, CVE-2026-142596 (HIGH, CVSS 7.5), can expose fields marked select: false, such as password hashes and API keys.
What to look into
- 3 vulnerabilities in Automattic mongoose: 1 high, 1 medium (CVSS up to 7.5).
- None of them is known to be exploited yet.
- Start with CVE-2026-142596 (7.5 high): Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 8.5.0 until 8.24.10 and 9.12.2, Mongoose's sanitizeProjection can be bypassed by +path selections, obj… An attacker without an account can exploit this over the network, without any user action.
- 3 of 3 can be attacked over the network without logging in, 3 of them without anyone clicking anything.
- Kinds of flaws: Exposure of Sensitive Information to an Unauthorized Actor; Improper Neutralization of Special Elements in Data Query Logic; Access of Resource Using Incompatible Type ('Type Confusion').
Key points
- CVE-2026-142596 (HIGH, CVSS 7.5) lets crafted projections return select: false fields such as password hashes and API keys, fixed in 8.24.10 and 9.12.2.
- CVE-2026-142595 (MEDIUM, CVSS 6.5) lets nested operators such as $ne or $regex pass sanitizeFilter, fixed in 6.13.13, 7.8.14, 8.24.10 and 9.12.2.
- CVE-2026-142608 is scored NONE (CVSS 0.0) but describes forged BSON values that can replay or disclose data; fixed in 6.13.13.
- The sources do not mention exploitation in the wild.
The National Vulnerability Database published three Mongoose advisories on 2026-12-02. Mongoose is a MongoDB object modeling tool for asynchronous applications. All three records concern input handling: whether attacker-supplied projections, filters or values can get past Mongoose's own safeguards.
Projection bypass
The most severe record is CVE-2026-142596 (HIGH, CVSS 7.5). It affects versions from 8.5.0 until 8.24.10 and 9.12.2. According to the record, sanitizeProjection can be bypassed through several projection forms, including +path selections, aggregation expressions, nested and positional projections, $meta, and discriminator-specific exclusions. Applications that pass attacker-controlled data to select(), find(filter, projection), or the projection option may return fields marked select: false, which the record lists as including password hashes, reset tokens, API keys and nested secrets. The record also says that some ordinary queries, which do not enable sanitizeProjection, can omit the select: false exclusions Mongoose normally adds. The record says the issue is fixed in 8.24.10 and 9.12.2.
Filter operator bypass
CVE-2026-142595 (MEDIUM, CVSS 6.5) affects versions from 6.0.0 until 6.13.13, 7.8.14, 8.24.10 and 9.12.2. Per the record, sanitizeFilter checks only a small named set of top-level operators and does not recursively inspect undocumented operators such as $internalSchemaXor and $internalSchemaCond. Nested selectors such as $ne or $regex may then be accepted. The record describes possible authentication bypass, disclosure of protected values through boolean queries, and unintended updates or deletions. It notes that applications building filters from individual primitive values are not affected by this bypass.
Forged BSON values
CVE-2026-142608 is listed with a severity of NONE (CVSS 0.0), although its description reads as a serious integrity and disclosure issue. The record states that, from 6.3.5 until 6.13.13, Mongoose treats a plain object with an own bsontype property as a BSON value. Forged ObjectID values may replay identifiers from earlier commands under certain layout and buffer conditions, and forged BSONRegExp values can bypass String-path filtering, even with sanitizeFilter enabled. The record says this issue is fixed in version 6.13.13. Given the conflicting score, administrators should rely on the description and not the score alone.
Scope
The three records share a theme: user-controlled objects reaching query construction. The sources do not state whether the exposure depends on specific deployment settings beyond the conditions described, and they give no detection method or exploitation evidence.
What to do
- Upgrade to 8.24.10 or 9.12.2 for the projection issue CVE-2026-142596.
- Upgrade to 6.13.13, 7.8.14, 8.24.10 or 9.12.2, matching your release line, for CVE-2026-142595 and CVE-2026-142608.
- Stop passing unvalidated request objects directly into select(), projection options, or filters; use primitive values where possible.
The 3 vulnerabilities
- CVE-2026-142596 7.5 Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 8.5.0 until 8.24.10 and 9.12.2, Mongoose's sanitizeProjection can be bypassed by +path selections, object or array aggregation expressions, ne…
- CVE-2026-142595 6.5 Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 6.0.0 until 6.13.13, 7.8.14, 8.24.10, and 9.12.2, Mongoose's sanitizeFilter rejects only a small named set of top-level operators and does not…
- CVE-2026-142608 0.0 Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 6.3.5 until 6.13.13, Mongoose treats a plain object with an own bsontype property as a BSON value, allowing forged ObjectID values to replay a…
Frequently asked questions
How many Automattic mongoose vulnerabilities were published on December 2, 2026?
3 vulnerabilities: 1 high, 1 medium, with CVSS scores up to 7.5.
Are any of them being exploited?
None of them is in CISA's Known Exploited Vulnerabilities catalog yet.
Which one should be fixed first?
CVE-2026-142596 (CVSS 7.5): Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 8.5.0 until 8.24.10 and 9.12.2, Mongoose's sanitizeProjection can be bypassed by +path selections, obj…