Read the docs

Type confusion in Automattic mongoose

Priority MEDIUM 55CWE-843Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
—
Confidentiality · integrity · availability
None · Low · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.

Summary

Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.12, 7.8.13, 8.24.7, and 9.11.4, Mongoose uses attacker-controlled discriminator key values, including the default __t field, to index plain-object registries such as Model.discriminators and schema.discriminators without requiring an own property. Values such as constructor, toString, or hasOwnProperty can therefore resolve to inherited built-in functions instead of a registered discriminator, causing type confusion in model construction, document creation, hydration, query and update casting, embedded discriminators, and populate operations. In the bulkWrite() insertOne path with skipValidation enabled, a constructor value can cause a raw input object to be stored without schema casting or strict filtering, and a stored poisoned document can make every query that hydrates it fail until the document is removed. The weakness reads inherited properties but does not modify Object.prototype and is not prototype pollution. This issue is fixed in versions 6.13.12, 7.8.13, 8.24.7, and 9.11.4.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00339 27th percentileScored 2026-11-16
Fix Fixed mongoose (Automattic): 6.13.12, 7.8.13, 8.24.7 +1mongoose (npm): 6.13.12, 7.8.13, 8.24.7 +1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Automatticmongoosebefore 6.13.12; 7.0.0 to before 7.8.13; 8.0.0 to before 8.24.7; 9.0.0 to before 9.11.46.13.12, 7.8.13, 8.24.7, 9.11.4Patch availableCNA
—mongoose (npm)before 6.13.126.13.12Patch availableGHSA-wr5m-5jph-8m96
—mongoose (npm)7.0.0 to before 7.8.137.8.13Patch availableGHSA-wr5m-5jph-8m96
—mongoose (npm)8.0.0 to before 8.24.78.24.7Patch availableGHSA-wr5m-5jph-8m96
—mongoose (npm)9.0.0 to before 9.11.49.11.4Patch availableGHSA-wr5m-5jph-8m96
  • mongoose VendorAutomattic Affected before 6.13.12; 7.0.0 to before 7.8.13; 8.0.0 to before 8.24.7; 9.0.0 to before 9.11.4 Fixed in 6.13.12, 7.8.13, 8.24.7, 9.11.4 Patch available CNA
  • mongoose (npm) Vendor— Affected before 6.13.12 Fixed in 6.13.12 Patch available GHSA-wr5m-5jph-8m96
  • mongoose (npm) Vendor— Affected 7.0.0 to before 7.8.13 Fixed in 7.8.13 Patch available GHSA-wr5m-5jph-8m96
  • mongoose (npm) Vendor— Affected 8.0.0 to before 8.24.7 Fixed in 8.24.7 Patch available GHSA-wr5m-5jph-8m96
  • mongoose (npm) Vendor— Affected 9.0.0 to before 9.11.4 Fixed in 9.11.4 Patch available GHSA-wr5m-5jph-8m96

Remediation

  • Fix · CNA mongoose (Automattic) Fixed in 6.13.12, 7.8.13, 8.24.7, 9.11.4
  • Fix · GHSA-wr5m-5jph-8m96 mongoose (npm) Fixed in 6.13.12 Advisory →
  • Fix · GHSA-wr5m-5jph-8m96 mongoose (npm) Fixed in 7.8.13 Advisory →
  • Fix · GHSA-wr5m-5jph-8m96 mongoose (npm) Fixed in 8.24.7 Advisory →
  • Fix · GHSA-wr5m-5jph-8m96 mongoose (npm) Fixed in 9.11.4 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-11-09 Threatist record created from CVE-2026-125116
  2. 2026-11-10 Alias added: GHSA-wr5m-5jph-8m96
  3. 2026-11-10 Fix available: npm/[email protected], npm/[email protected], npm/[email protected] +1 · GHSA-wr5m-5jph-8m96
  4. 2026-11-10 CVSS score added · GHSA-wr5m-5jph-8m96
  5. 2026-11-10 Weakness changed · GHSA-wr5m-5jph-8m96
  6. 2026-11-10 13 new references · GHSA-wr5m-5jph-8m96
  7. 2026-11-11 Affected versions changed · Red Hat
  8. 2026-11-11 CVSS score added · Red Hat
  9. 2026-11-13 CISA SSVC decision points changed

References

  • TI-2023-12700 Improper authentication in WooCommerce Payments WordPress Plugin CVSS 3.1CRITICAL 9.8
  • TI-2023-03453 Prototype Pollution in automattic/mongoose CVSS 3.1CRITICAL 9.8
  • TI-2024-06106 Jetpack Boost < 3.4.7 - Admin+ SSRF CVSS 3.1CRITICAL 9.1
  • TI-2013-01782 WordPress W3 Total Cache Plugin 0.9.2.8 has a Remote PHP Code Execution Vulnerability CVSS 3.1CRITICAL 9.8
  • TI-2026-87413 Prototype pollution in Mongoose allows overwriting built-in functions CVSS 3.1HIGH 8.2
  • TI-2022-02368 Prototype Pollution in automattic/mongoose CVSS 3.1CRITICAL 9.8
See all 131 →

Sources