# CVE-2026-142608: Mongoose: Plain objects with a forged \_bsontype bypass ObjectId and String casting, leaking and replaying data from other command

- **Severity:** LOW
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **CWE:** CWE-843
- **Aliases:** GHSA-rxm2-55pg-68q6
- **Published:** 2026-12-02T22:09:38.587Z
- **Modified:** 2026-12-03T00:29:57.000Z

> **AI summary (AI-generated, claude-haiku-5-5):** 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.

## 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

## 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

- npm `mongoose`: affected \>= 6.3.5, \< 6.13.13; fixed 6.13.13 (ghsa)
- Automattic mongoose: \>= 6.3.5, \< 6.13.13 (cvelist)

## Technologies

MongoDB (AI-matched), npm packages

## Mitigation

- Upgrade mongoose to 6.13.13 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/Automattic/mongoose/security/advisories/GHSA-rxm2-55pg-68q6>
- patch: <https://github.com/Automattic/mongoose/commit/61d7d7829716d4728d250aa0f0c712f318cf2aad>
- other: <https://github.com/advisories/GHSA-rxm2-55pg-68q6>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142608>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-rxm2-55pg-68q6> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-142608> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142608>
