CVE-2026-73562
Medium · 6.5CVSS
6.5
EPSS
0.5%
Published
Aug 13, 2026
CISA due date
—
Cloudanix analysis
A database helper library used by many apps can be tricked by specially crafted data into changing how new objects behave inside the application, which may cause errors or unexpected results.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Library
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Prototype pollution via Mongoose update casting: Schema.prototype.path and _getPathType treat inherited properties from schema.paths/schema.nested as valid types when a __proto__.x dotted path is supplied under $set in a user-controlled update, allowing the casting process to attach $fullPath and $parentSchemaDocArray to Object.prototype before throwing.
Why it matters to the business
Applications may experience unexpected object property inheritance, leading to logic errors, data integrity violations, or availability issues; widespread use of Mongoose in Node.js stacks increases operational risk until patched.
How an attack unfolds
An attacker supplies a malicious payload containing a __proto__.x dotted path inside a user-controlled update object (e.g., req.body) to Mongoose update methods; during casting the library's schema path resolution pollutes Object.prototype, making attacker-controlled properties visible on subsequently created objects and affecting application behavior.
How to fix it
Upgrade Mongoose to version 6.13.10, 7.8.10, 8.24.1, or 9.7.2. Review all update operations that accept user input and ensure strict schema validation or sanitization before passing data to Mongoose.
How to confirm the fix worked
Confirm installed Mongoose version meets or exceeds the fixed releases; attempt reproduction with a minimal __proto__ dotted-path update payload in a test environment and verify that prototype pollution no longer occurs.
Typical attack path
- Identify Mongoose update calls that accept untrusted input such as updateOne(filter, req.body)
- Craft payload containing __proto__.x under $set or equivalent
- Submit payload to trigger update casting
- Observe or leverage resulting prototype pollution for integrity or availability impact
How to detect it
Review application and database logs for update operations containing __proto__ or prototype-related keys; inspect error traces that mention path casting or schema type resolution; search runtime for unexpected properties on Object.prototype after update calls.
What your security team should do
- Immediately upgrade all Mongoose instances to the fixed versions listed
- Audit code for direct passing of request bodies or user data into update operations
- Add input validation or schema enforcement around update payloads
- Monitor dependency updates and re-test affected services after patching
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-63402 i18next is an internationalization framework for JavaScript. CWE-1321
- CVE-2026-119569 Parse Server before 8.6.108 and 9.0.0 before 9.10.5-alpha.9 contains a prototype… CWE-1321
- CVE-2026-118777 Forge (also called node-forge) is a native implementation of Transport Layer Security in… CWE-1321
- CVE-2026-118649 n8n before 2.43.5 and 2.44.x before 2.44.1 accepts a client-supplied workflow ID and… CWE-1321
- CVE-2026-118678 n8n before 2.41.4 and 2.42.x before 2.42.1 contains a prototype pollution vulnerability… CWE-1321
- CVE-2026-118249 Highcharts JS is a JavaScript charting library based on SVG. CWE-1321
- CVE-2026-118250 Highcharts JS is a JavaScript charting library based on SVG. CWE-1321
- CVE-2026-118248 Highcharts JS is a JavaScript charting library based on SVG. CWE-1321