CVE-2026-142608 — Automattic mongoose
One of 3 Automattic mongoose vulnerabilities published together by NVD: our article covers all of them.
DatabasesVulnerabilitiesSummary
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.
Severity breakdown
None · 0.0
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- none
Weakness
- CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| mongoose (npm) | ≥ 6.3.5, < 6.13.13 | 6.13.13 |
| Automattic mongoose | >= 6.3.5, < 6.13.13 | — |
References by type
Vendor advisories
Patches and fixed releases
Other references
Affected
- Automattic mongoose
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-142608?
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… Weakness type: Access of Resource Using Incompatible Type ('Type Confusion') (CWE-843).
How severe is CVE-2026-142608?
CVE-2026-142608 has a CVSS 3.1 base score of 0.0 (none), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-142608 being exploited?
Not as far as is known: CVE-2026-142608 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026. EPSS estimates a 0.6% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-142608?
mongoose (npm) ≥ 6.3.5, < 6.13.13 (fixed in 6.13.13); Automattic mongoose >= 6.3.5, < 6.13.13.
How do I fix CVE-2026-142608?
Update to a fixed release: mongoose (npm) 6.13.13.