Skip to content

mongoose

Mongoose: Plain objects with a forged _bsontype bypass ObjectId and String casting, leaking and replaying data from other command

CVE-2026-142608GHSA-rxm2-55pg-68q6Published 2 Dec 2026, 22:09 UTC

Real-world risk

2.9/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

0.0

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

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 an identifier from a preceding database command when that command has a compatible layout and buffer offset, or to store and disclose other command-buffer fragments, while forged BSONRegExp values bypass String-path filtering. Applications that pass request-derived values into ObjectId or String queries and writes can consequently read, modify, or delete documents accessed by another request under the compatible-layout condition, store and disclose fragments such as reset codes or API keys without that identifier-replay condition, or execute unintended regular-expression matches even when sanitizeFilter or common MongoDB sanitizers are enabled. This issue is fixed in version 6.13.13.

Am I affected?

ProductAffected versions (from the sources)Fixed in
mongooseWidespread>= 6.3.5, < 6.13.136.13.13
mongooseNiche>= 6.3.5, < 6.13.136.13.13

What to do

Update to a fixed version: 6.13.13.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T3: Public proof of concept (× 0.95)

A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit

  • Reference tagged as exploit (link)
  • CISA SSVC: proof of concept

EPSS 0.7% chance of exploitation in 30 days (percentile 55), as of 2026-12-05.

The arithmetic
  1. Prerequisites multiplied together1.000
  2. Threat T3: Public proof of concept0.950
  3. 10 × impact 0.3 × prerequisites 1 × threat 0.952.850
  4. Rounded to one decimal between 0.1 and 102.9

How the score works

Exploitation and evidence timeline

  1. 2 Dec 2026 Published
  2. 2 Dec 2026 Risk 2.6 (cvss fallback)
  3. 3 Dec 2026 Reference tagged as exploit first seen
  4. 3 Dec 2026 CISA SSVC: proof of concept first seen
  5. 3 Dec 2026 Risk 2.6 → 2.9 (cvss fallback)

Weakness

CWE-843

References

Get alerts for mongoose

Free email or text alerts when a vulnerability in mongoose reaches risk 8 or higher. Nothing else.