CVE-2026-142608
Mongoose: Plain objects with a forged _bsontype bypass ObjectId and String casting, leaking and replaying data from other command
Also known as GHSA-rxm2-55pg-68q6
AI summary AI generated
An attacker can send forged _bsontype objects to Mongoose to bypass ObjectId and String casting, reading, modifying, or deleting other requests' documents and leaking stored data.
Mitigation
- Upgrade mongoose to 6.13.13 or later.
Who should check
- Projects that depend on npm package mongoose (>= 6.3.5, < 6.13.13)
- Anyone running Automattic mongoose >= 6.3.5, < 6.13.13
Vulnerability facts
- Affected
- mongoose >= 6.3.5, < 6.13.13
- Fixed in
- 6.13.13
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- CWE
- CWE-843
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm mongoose | >= 6.3.5, < 6.13.13 | 6.13.13 | ghsa |
| Automattic mongoose | >= 6.3.5, < 6.13.13 | — | cvelist |
Versions mentioned in the description AI generated
Extracted by AI; each line quotes the description word for word. Source data above takes precedence.
- Affected: mongoose From 6.3.5 until 6.13.13
From 6.3.5 until 6.13.13
- Fixed: mongoose 6.13.13
This issue is fixed in version 6.13.13.
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-142608. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-142608.md Affected: mongoose >= 6.3.5, < 6.13.13 Fixed in: 6.13.13 Steps: 1. Search this machine and project for mongoose (npm), Automattic mongoose: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
FAQ
Is CVE-2026-142608 being exploited?
There is no confirmed exploitation: CVE-2026-142608 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-142608?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2026-142608?
mongoose >= 6.3.5, < 6.13.13.
Is there a fix for CVE-2026-142608?
Yes. Fixed in 6.13.13. Upgrade mongoose to 6.13.13 or later.
How do I check if I'm affected by CVE-2026-142608?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More mongoose vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 4.8 | CVE-2026-125116 Mongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor') bypass schema casting and can poison collections | npm packages | EPSS 46% | |
| HIGH 8.2 | CVE-2026-125117 Mongoose walks into inherited properties when hydrating, setting, and merging, allowing overwrites of built-in functions (denial of service) and shared schema state | npm packages | EPSS 55% | |
| MEDIUM 6.5 | CVE-2026-125118 Mongoose: Prototype pollution via Schema.prototype.virtual() | npm packages | EPSS 50% | |
| HIGH 7.5 | CVE-2026-125119 Mongoose: Connection-level sanitizeFilter not applied | npm packages | EPSS 55% | |
| CRITICAL 9.8 | CVE-2026-125120 Mongoose: sanitizeFilter not applied on countDocuments | npm packages | EPSS 56% |