CVE-2026-142608 Mongoose: Plain objects with a forged _bsontype bypass ObjectId and String casting, leaking and replaying data from other command
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm mongoose(npm) | >= 6.3.5, < 6.13.13 | 6.13.13 | Fixed |
| automattic mongoose | = >= 6.3.5, < 6.13.13 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm mongoose(npm) | >= 6.3.5, < 6.13.13 | 6.13.13 |
| automattic mongoose | = >= 6.3.5, < 6.13.13 | No fix listed |
References
- https://github.com/Automattic/mongoose/security/advisories/GHSA-rxm2-55pg-68q6 exploit vendor-advisory
- https://github.com/Automattic/mongoose/commit/61d7d7829716d4728d250aa0f0c712f318cf2aad patch
- ENISA EUVD EUVD-2026-141932 third-party-advisory
- github.com
- github.com product