Skip to main content
VulnerabilityPublished

CVE-2026-142596: Mongoose · sanitizeProjection can be bypassed to include fields deselected with `select: false`

Affects mongooseSource GCVE Database

0
Compare
Authoritative record:CVE-2026-142596· High 7.5

Not known to be exploited · CVSS 7.5 High : upgrade to 8.24.10 soon.

Data as of 4 Dec 2026, 00:45 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.17.5
Patch
Available – fixed in 8.24.10, 9.12.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.

What to do

Upgrade mongoose to 8.24.10; mongoose to 9.12.2.

Affected software

ProductAffectedFixed in
npmmongooseAffected
  • >=8.5.0 <8.24.10
Fixed in
  • 8.24.10
npmmongooseAffected
  • >=9.0.0 <9.12.2
Fixed in
  • 9.12.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available and should be applied by upgrading Mongoose to version 8.24.10 or later, or 9.12.2 or later. Users should ensure sanitizeProjection is enabled where appropriate. No alternative mitigations are indicated. The vendor advisory confirms the fix in these versions.

Description

Mongoose versions starting from 8.5.0 introduced the sanitizeProjection option to prevent user-controlled projections from including fields marked with select: false, such as password hashes. However, multiple projection forms can bypass this protection, allowing unauthorized access to sensitive fields despite sanitizeProjection being enabled. This affects versions from 8.5.0 up to but not including 8.24.10 and from 9.0.0 up to but not including 9.12.2. The issue was fixed in versions 8.24.10 and 9.12.2.

References

Community reviews

Loading reviews…