Skip to main content

mongo-object EUVDEUVD-2026-46151

| CVE-2026-16266 MEDIUM
Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution) (CWE-1321)
2026-07-21 snyk GHSA-c8xx-jpr5-7m25
6.3
CVSS 4.0 · Vendor: snyk
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted HTTP request with __proto__ key path
  2. Delivery
    Application passes unsanitized input to expandKey()
  3. Exploit
    expandKey() assigns value to Object.prototype segment
  4. Execution
    JavaScript prototype chain polluted process-wide
  5. Persist
    Downstream code reads inherited property as trusted value
  6. Impact
    Security control or logic bypassed

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V3 - Web Frontend Security Prototype pollution prevention
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the consuming application passes attacker-controlled string data as the key argument to expandKey() in mongo-object versions before 3.0.3-this is the primary limiting factor. Applications that only pass internally constructed, hardcoded, or schema-validated key strings to this function are not exploitable. The CVSS vector confirms no authentication (PR:N) and no user interaction (UI:N) are required once the attack surface is exposed, but the High Attack Complexity (AC:H) reflects the prerequisite that user input must reach expandKey() without prior sanitization. There is no requirement for a specific deployment mode, operating system, or MongoDB configuration; the vulnerability is entirely within the JavaScript library. Exploitation is further constrained by the requirement for a useful downstream gadget: unless the application consumes polluted prototype properties in a security-sensitive path, the practical impact is limited to integrity degradation rather than RCE or credential exposure.

Impact

Real-world risk is moderate and context-dependent. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N) scores 4.0 and accurately reflects the narrow impact: changed scope (S:C) acknowledges that pollution escapes the library's object into the broader Node.js runtime, but the actual integrity impact is rated Low (I:L) because general prototype pollution does not guarantee arbitrary code execution without an application-specific gadget chain. AC:H is appropriate because exploitation requires that an application exposes user-controlled string data directly to expandKey()-not all deployments do this. There is no EPSS score in the provided data, no CISA KEV listing, and no publicly documented POC, indicating exploitation has not been observed at scale. The Changed Scope designation elevates theoretical risk: in an application that trusts polluted prototype properties for security decisions (e.g., permission checks reading inherited fields), downstream impact could exceed the Low integrity rating. SSVC signals are low urgency absent active exploitation evidence. This is a legitimate priority for teams using mongo-object to process untrusted input, but not a crisis for air-gapped or auth-gated deployments.

Exploit ScenarioDerived

An attacker submits an HTTP request to a web application that uses mongo-object to parse user-supplied MongoDB query filters, crafting a field name such as __proto__[isAdmin] with a value of true. The application passes the raw string to expandKey(), which traverses the key segments and assigns the value directly to Object.prototype.isAdmin. Subsequent permission checks elsewhere in the application that read obj.isAdmin on any plain object now return true for all users, bypassing access control without any POC code being publicly documented.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 21, 2026

Prototype Pollution in the mongo-object npm package (versions before 3.0.3) allows network-reachable attackers to corrupt the JavaScript Object.prototype by supplying crafted property paths containing special keys such as __proto__, constructor, or prototype to the expandKey() function in util.ts. No authentication or user interaction is required, though high attack complexity reflects the need for attacker-controlled input to reach the vulnerable function. No public exploit code or CISA KEV listing is identified at time of analysis; EPSS data is not provided, and the CVSS base score of 4.0 (Medium) reflects a narrowly scoped integrity impact without confidentiality or availability consequences.

RemediationAI

The primary remediation is to upgrade mongo-object to version 3.0.3 or later, which includes the blocklist fix in expandKey() blocking __proto__, constructor, and prototype segment names. The patched commit is 638314107d8b397e5453c28e41729522b3e8d67c (https://github.com/longshotlabs/mongo-object/commit/638314107d8b397e5453c28e41729522b3e8d67c). Run npm update mongo-object or set the version constraint to >=3.0.3 in package.json and reinstall. If an immediate upgrade is blocked, a compensating control is to sanitize any user-supplied property path strings before passing them to expandKey(), rejecting or stripping segments that match __proto__, constructor, or prototype-note this places the validation burden on the consuming application and is error-prone. Alternatively, Object.freeze(Object.prototype) at application startup can prevent prototype modification at runtime, though this may break libraries that legitimately add prototype methods. Neither workaround is as reliable as patching. Snyk advisory: https://security.snyk.io/vuln/SNYK-JS-MONGOOBJECT-13816714.

Affected VersionsENISA

mongo-object 0 <3.0.3

Affected Packages

euvd mongo_object fix: 3.0.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

mongo-object is a JavaScript/TypeScript utility library in the npm ecosystem (CPE: cpe:2.3:a:n/a:mongo-object:*:*:*:*:*:*:*:*) used primarily in the Meteor/SimpleSchema stack to translate MongoDB dot-notation query strings into nested object representations. The vulnerable function expandKey() in src/util.ts iterates over bracket-delimited key segments of a property path and assigns values to a target object without validating the segment names. CWE-1321 (Improper Control of Object Prototype Attributes) describes this root cause: by passing a path such as __proto__[polluted] or constructor[polluted], an attacker can cause JavaScript's prototype chain assignment mechanics to modify Object.prototype itself rather than a user-defined property. Because Object.prototype is shared across all objects in the same runtime context, a single successful pollution can silently alter the behavior of any code in the process that reads inherited properties. The fix, visible in commit 638314107d8b397e5453c28e41729522b3e8d67c, introduces an early-return blocklist guard in expandKey() rejecting any subkey equal to __proto__, constructor, or prototype.

Know when Prototype Pollution gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (snyk) PRIMARY 6.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
vuln.today AI 4.0 MEDIUM

Network vector applies as input reaches the library via web requests; AC:H because user input must reach expandKey() without prior sanitization; S:C because pollution escapes to the Node.js runtime prototype; no confidentiality or availability impact from prototype key injection alone.

3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N

Primary rating from Vendor (snyk).

CVSS VectorVendor: snyk

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 21, 2026 - 07:02 EUVD
CVSS changed
Jul 21, 2026 - 06:22 NVD
4.0 (MEDIUM) 6.3 (MEDIUM)

DescriptionCVE.org

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__.

Threat Intelligence Overview

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Low
niche utility library for Meteor/MongoDB ecosystem only
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-34621 HIGH POC
8.6 Apr 11

Prototype pollution in Adobe Acrobat Reader versions 24.001.30356, 26.001.21367 and earlier enables arbitrary code execu

CVE-2021-23450 CRITICAL POC
9.8 Dec 17

All versions of package dojo are vulnerable to Prototype Pollution via the setObject function. Rated critical severity (

CVE-2024-56059 CRITICAL
9.8 Dec 18

Prototype pollution in the farinspace Partners WordPress plugin (versions up to and including 0.2.0) enables remote unau

CVE-2021-23383 CRITICAL POC
9.8 May 04

The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to co

CVE-2020-7788 CRITICAL POC
9.8 Dec 11

This affects the package ini before 1.3.6. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2020-28271 CRITICAL POC
9.8 Nov 12

Prototype pollution vulnerability in 'deephas' versions 1.0.0 through 1.0.5 allows attacker to cause a denial of service

CVE-2023-38894 CRITICAL POC
9.8 Aug 16

A Prototype Pollution issue in Cronvel Tree-kit v.0.7.4 and before allows a remote attacker to execute arbitrary code vi

CVE-2024-24292 CRITICAL POC
9.8 Mar 28

A Prototype Pollution issue in Aliconnect /sdk v.0.0.6 allows an attacker to execute arbitrary code via the aim function

CVE-2023-26121 CRITICAL POC
10.0 Apr 11

All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper s

CVE-2021-23449 CRITICAL POC
10.0 Oct 18

This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr

CVE-2024-39011 CRITICAL POC
9.8 Jul 30

Prototype Pollution in chargeover redoc v2.0.9-rc.69 allows attackers to execute arbitrary code or cause a Denial of Ser

CVE-2024-38988 CRITICAL POC
9.8 Mar 28

alizeait unflatto <= 1.0.2 was discovered to contain a prototype pollution via the method exports.unflatto at /dist/inde

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy