CVE-2026-73562
Received Received - Intake

Prototype Pollution in Mongoose via $set Update Casting

Vulnerability report for CVE-2026-73562, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-13

Last updated on: 2026-08-13

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-13
Last Modified
2026-08-13
Generated
2026-08-13
AI Q&A
2026-08-13
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 12 associated CPEs
Vendor Product Version / Range
automattic mongoose 6.13.10
automattic mongoose 7.8.10
automattic mongoose 8.24.1
automattic mongoose 9.7.2
automattic mongoose to 6.13.10 (exc)
automattic mongoose From 7.0.0 (inc) to 7.8.10 (exc)
automattic mongoose From 8.0.0 (inc) to 8.24.1 (exc)
automattic mongoose From 9.0.0 (inc) to 9.7.2 (exc)
mongoose mongoose 6.13.10
mongoose mongoose 7.8.10
mongoose mongoose 8.24.1
mongoose mongoose 9.7.2

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1321 The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a prototype pollution vulnerability in Mongoose, a MongoDB object modeling tool for Node.js. It affects versions before 6.13.10, 7.8.10, 8.24.1, and 9.7.2. The issue occurs when user-controlled updates are passed to Mongoose's update operations, such as MyModel.updateOne(filter, req.body). An attacker can manipulate the update object to include __proto__.x dotted paths, which pollutes Object.prototype by setting properties like $fullPath and $parentSchemaDocArray. This causes all newly created objects to inherit these polluted properties.

Detection Guidance

To detect this vulnerability, check the installed version of Mongoose in your project using npm list mongoose or by inspecting your package.json file. If the version is below 6.13.10, 7.8.10, 8.24.1, or 9.7.2, the system is vulnerable. Additionally, review application code for user-controlled updates passed to Mongoose operations like updateOne or findOneAndUpdate.

Impact Analysis

This vulnerability can lead to application integrity and availability impacts. Attackers could set malicious properties on Object.prototype, causing unintended behavior in objects created after the pollution. This might result in data corruption, unexpected application behavior, or denial of service. The attack requires no privileges or user interaction and can be exploited remotely.

Mitigation Strategies

Immediately upgrade Mongoose to version 6.13.10, 7.8.10, 8.24.1, or 9.7.2 or later. As a temporary workaround, validate user-controlled updates to ensure they do not contain __proto__ properties before passing them to Mongoose operations.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-73562. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart