CVE-2026-16266
Received Received - Intake

Prototype Pollution in mongo-object Library

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

Publication date: 2026-07-21

Last updated on: 2026-07-21

Assigner: Snyk

Description

Versions of the package mongo-object before 3.0.3 are vulnerable to Prototype Pollution via the expandKey() function in util.js. An attacker can modify the JavaScript prototype chain by supplying a crafted property path containing special keys such as __proto__.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

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

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
longshotlabs mongo-object to 3.0.3 (exc)

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

CVE-2026-16266 is a Prototype Pollution vulnerability in the npm package mongo-object affecting versions before 3.0.3. The expandKey() function in util.js allows attackers to manipulate the JavaScript prototype chain by injecting crafted property paths containing special keys like __proto__. This can overwrite or pollute the Object.prototype, leading to malicious outcomes such as denial of service or remote code execution.

Detection Guidance

To detect this vulnerability, check if your system uses the affected mongo-object package versions prior to 3.0.3. Run 'npm list mongo-object' to verify the installed version. If the version is below 3.0.3, the system is vulnerable. Additionally, inspect application code for unsafe usage of the expandKey function in util.js.

Commands to check: 'npm list mongo-object', 'grep -r "expandKey" /path/to/project'. Look for __proto__ or similar keys in user input handling.

Impact Analysis

This vulnerability can lead to denial of service, remote code execution, or property injection attacks. Attackers can modify application behavior by polluting the Object.prototype, causing unexpected behavior across all objects in the application. This may result in data corruption, unauthorized access, or application crashes.

Compliance Impact

This vulnerability does not directly affect compliance with GDPR or HIPAA. However, it could indirectly impact compliance by enabling attacks that lead to unauthorized data access, modification, or denial of service, which may violate data protection requirements under these regulations.

Mitigation Strategies

Immediately upgrade the mongo-object package to version 3.0.3 or higher using 'npm update mongo-object'. If upgrading is not possible, implement input validation to block keys like __proto__, constructor, and prototype. Freeze the Object.prototype to prevent prototype pollution.

Avoid using unsafe recursive merge functions and consider replacing plain objects with Maps where applicable. Validate all JSON input schemas to ensure no malicious keys are processed.

Chat Assistant

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

EPSS Chart