Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted CSV via email or compromised data channel
-
DeliveryVictim initiates CSV import in MongoDB Compass
-
ExploitPrototype pollution triggered in CSV parser via malicious column key
-
ExecutionUntrusted file path injected into Electron shell.openExternal()
-
PersistOS default handler opens attacker-controlled path
-
ImpactArbitrary local file or protocol handler executed
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 | The attack requires the victim to actively import a specially crafted CSV file using the CSV import feature within MongoDB Compass (CVSS UI:P - passive interaction, meaning a standard workflow action suffices rather than clicking a warning or unusual prompt). The attacker controls only the file path delivered to shell.openExternal(), not any command-line arguments, which limits the execution surface to whatever the OS default handler for that path type will do. The malicious path must reference a resource accessible on the victim's local filesystem or via a registered OS protocol handler for execution to occur. No attacker-side authentication is required (PR:N), but the attack depends entirely on social engineering or supply-chain compromise to deliver the malicious CSV to a user who will import it. The vulnerability does not affect MongoDB server instances or any network-exposed surface - it is isolated to the local Compass desktop application and triggered exclusively through the CSV import workflow. |
| Impact | The CVSS 4.0 score of 5.3 (Medium) reflects several partially mitigating factors: UI:P (passive user interaction - the victim must perform a standard import action), and impact limited to VI:L (low integrity on the vulnerable system) with no confidentiality or availability impact and no subsequent-system scope. AV:N, AC:L, AT:N, and PR:N confirm the malicious CSV can be delivered remotely with no attacker-side privileges and no special timing or race conditions required. No EPSS score was provided in the available data, preventing quantitative exploitation-probability comparison. The CVE is not listed in CISA KEV and no proof-of-concept has been identified, indicating no confirmed in-the-wild exploitation at time of analysis. The EUVD tags 'Information Disclosure' alongside 'Prototype Pollution,' which partially conflicts with the description's primary focus on command execution via shell.openExternal(); this may reflect tagging of the path-leakage component of the pollution chain, but the description makes clear the primary concern is command execution. Real-world risk is moderate: the attack is not zero-interaction, but CSV imports are a core, routine Compass workflow, lowering the social engineering bar in operational environments. |
| Exploit ScenarioDerived | An attacker crafts a CSV file with prototype-polluting column headers (e.g., a key of __proto__ mapping to a local script path or a custom OS protocol URI) and delivers it to a Compass user via a plausible channel such as a data export from a compromised system, an email attachment, or a shared analytics file. The victim, performing a routine import in MongoDB Compass, loads the file through the standard CSV import workflow. During parsing, the polluted prototype causes the attacker-supplied file path to reach Electron's shell.openExternal(), instructing the OS to open the path with its default handler - potentially executing a local binary or script. No public proof-of-concept has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 20, 2026
Prototype pollution in MongoDB Compass's CSV import parsing logic creates a '1-click' command execution path across versions 1.36.x through 1.49.5. A crafted CSV file can pollute JavaScript object prototypes during the import workflow, causing untrusted file paths to reach Electron's shell.openExternal() API and be executed by the operating system's default handler. No public exploit code has been identified and this CVE is absent from CISA KEV, but the passive user-interaction requirement - simply importing a CSV as part of routine database work - makes targeted social engineering a credible delivery vector in data-heavy environments.
RemediationAI
No specific patched version has been confirmed in the available data; the vendor tracking reference MongoDB Jira COMPASS-10657 (https://jira.mongodb.org/browse/COMPASS-10657) should be monitored for a confirmed fix release and upgrade instructions. Until a patch is confirmed, the most targeted compensating control is restricting CSV imports in Compass to files sourced exclusively from internally controlled, trusted systems - specifically prohibiting imports of CSV files received via email attachments, external file shares, or user-submitted uploads, as these are the primary social-engineering delivery channels. Organizations deploying Compass in high-risk environments can additionally enforce endpoint policies that limit which applications shell.openExternal() can invoke, reducing the blast radius if the path-injection does occur. Note that fully disabling the CSV import feature would eliminate the attack surface entirely but removes a core Compass capability; this trade-off should be weighed against the threat model. Do not rely on network-layer controls alone - the vulnerability is triggered locally by user interaction with a file, not by a network request to Compass.
Affected VersionsENISA
Affected Packages
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
MongoDB Compass is an Electron-based desktop GUI for MongoDB, running Node.js inside a Chromium shell. The root cause is CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes - Prototype Pollution): the CSV parsing logic during the data import workflow fails to sanitize column keys such as __proto__ or constructor.prototype, allowing an attacker-controlled CSV to inject properties onto the global JavaScript Object prototype. Downstream code paths that rely on inherited prototype properties can then reference attacker-supplied values. Specifically, the polluted prototype causes untrusted file paths - but explicitly not command-line arguments, per the description - to flow into Electron's shell.openExternal() function. In Electron, shell.openExternal() delegates execution to the host OS default protocol or file handler, meaning a polluted path could cause the OS to open a local script, binary, or custom-protocol URI. The CPE entry cpe:2.3:a:mongodb,_inc.:compass:*:*:*:*:*:*:*:* covers all versions in the confirmed affected range.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Primary rating from Vendor (mongodb) · only source for this CVE.
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.org
Prototype pollution in csv parsing logic during import can lead to untrusted file paths (but not arguments) entering shell.openExternal after specific user behavior leading to "1-click" command execution.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Prototype Pollution
View allPrototype pollution in Adobe Acrobat Reader versions 24.001.30356, 26.001.21367 and earlier enables arbitrary code execu
All versions of package dojo are vulnerable to Prototype Pollution via the setObject function. Rated critical severity (
Prototype pollution in the farinspace Partners WordPress plugin (versions up to and including 0.2.0) enables remote unau
The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to co
This affects the package ini before 1.3.6. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl
Prototype pollution vulnerability in 'deephas' versions 1.0.0 through 1.0.5 allows attacker to cause a denial of service
A Prototype Pollution issue in Cronvel Tree-kit v.0.7.4 and before allows a remote attacker to execute arbitrary code vi
A Prototype Pollution issue in Aliconnect /sdk v.0.0.6 allows an attacker to execute arbitrary code via the aim function
All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper s
This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr
Prototype Pollution in chargeover redoc v2.0.9-rc.69 allows attackers to execute arbitrary code or cause a Denial of Ser
alizeait unflatto <= 1.0.2 was discovered to contain a prototype pollution via the method exports.unflatto at /dist/inde
EUVD-2026-31127
GHSA-hwpv-w8h7-v7qm
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB