Mongoose inherited-property flaws allow denial of service and schema tampering
CVE-2026-125117 and 3 more
A web app saving outside data can have its database behavior broken or its settings changed.
- CVE
- CVE-2026-125117 and 3 more
- Score
- CVSS 8.2 · CVE-2026-125117
- First seen
Mitigation
Update Mongoose to 6.13.12, 7.8.13, 8.24.7 or 9.11.4 or later. Until then, do not save or merge untrusted input as-is.
Fixed version by product
- mongoose 6
- 6.13.12 or later
- mongoose 7
- 7.8.13 or later
- mongoose 8
- 8.24.7 or later
- mongoose 9
- 9.11.4 or later
Summary
Mongoose walks into inherited properties when loading, setting and merging documents, so it can overwrite shared built-in functions and schema state. Versions before 6.13.12, 7.8.13, 8.24.7 and 9.11.4 are affected, and the same release also fixes a discriminator key casting bypass, a connection-level sanitizeFilter that is not applied, and prototype pollution through Schema.prototype.virtual().
Exploit code is public
Affected when
- CVE-2026-125117 storing or merging documents with untrusted keys, a Mixed path, strict: false, findOneAndReplace() or Query.prototype.merge() with untrusted input
- CVE-2026-125116 bulkWrite() insertOne with skipValidation: true, or discriminator key values from untrusted input
- CVE-2026-125119 sanitizeFilter enabled at connection level and attacker input placed in a query filter
- CVE-2026-125118 virtual field names set by untrusted input in dynamic schemas or form builders
4 other Incidents of this product in the last 30 days
Incidents by product: Automattic mongoose
Other recent Incidents of Automattic mongoose
4 CVEs (every link below opens in a new tab)
Read the advisory · github.com (opens in a new tab)
Each of the 4 CVEs (every link below opens in a new tab)
- CVE-2026-125117Lets attackers overwrite shared built-in functions or schema state, breaking later queries. CVSS 8.2
- CVE-2026-125119Connection-level sanitizeFilter is not applied, so query operators in input can match wrong accounts. CVSS 7.5 CVE-2026-125119 advisory
- CVE-2026-125118Virtual path names can write to Object.prototype, spoofing authorization flag checks. CVSS 6.5
Show 1 more
- CVE-2026-125116Discriminator key values bypass casting, and the stored document breaks every query that reads it. CVSS 4.8