CVE-2026-14881: CWE-78 Improper neutralization of special elements used in an OS command ('OS command injection') in MongoDB MongoDB Compass
When importing connections in Compass it is possible to override some connection options that are otherwise can't be changed via connection form. In particular it is possible to provide a custom browser open command for OIDC auth flow that is usually can be set only globally via Compass settings.
AI Analysis
Technical Summary
The vulnerability CVE-2026-14881 in MongoDB Compass 1.38.0 allows an attacker to inject OS commands by overriding connection options during the import of connections. The flaw specifically enables setting a custom browser open command for the OIDC authentication flow, bypassing intended restrictions. This improper neutralization of special elements used in OS commands (CWE-78) can be exploited to execute arbitrary OS commands with the privileges of the Compass application user. The CVSS 4.0 base score is 8.4, indicating high severity. There is no official remediation or patch available as of the published date, and no known exploits in the wild have been reported.
Potential Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary OS commands on the system running MongoDB Compass 1.38.0. This can lead to compromise of the local system environment, data exposure, or further attacks depending on the privileges of the Compass application user. The vulnerability affects local attack vectors with low complexity and requires no privileges but does require user interaction. The impact on confidentiality, integrity, and availability is high.
Mitigation Recommendations
No official patch or remediation is currently available for this vulnerability. Users should avoid importing untrusted connection configurations in MongoDB Compass version 1.38.0. Monitor the vendor's advisory channels for updates or official fixes. Until a fix is released, restrict usage of Compass to trusted environments and consider alternative methods for connection management that do not involve importing potentially malicious configurations.
CVE-2026-14881: CWE-78 Improper neutralization of special elements used in an OS command ('OS command injection') in MongoDB MongoDB Compass
Description
When importing connections in Compass it is possible to override some connection options that are otherwise can't be changed via connection form. In particular it is possible to provide a custom browser open command for OIDC auth flow that is usually can be set only globally via Compass settings.
CVSS v4.0
Score 8.4high
Affected software
pkg:github/mongodb-js/compassRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-14881 in MongoDB Compass 1.38.0 allows an attacker to inject OS commands by overriding connection options during the import of connections. The flaw specifically enables setting a custom browser open command for the OIDC authentication flow, bypassing intended restrictions. This improper neutralization of special elements used in OS commands (CWE-78) can be exploited to execute arbitrary OS commands with the privileges of the Compass application user. The CVSS 4.0 base score is 8.4, indicating high severity. There is no official remediation or patch available as of the published date, and no known exploits in the wild have been reported.
Potential Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary OS commands on the system running MongoDB Compass 1.38.0. This can lead to compromise of the local system environment, data exposure, or further attacks depending on the privileges of the Compass application user. The vulnerability affects local attack vectors with low complexity and requires no privileges but does require user interaction. The impact on confidentiality, integrity, and availability is high.
Mitigation Recommendations
No official patch or remediation is currently available for this vulnerability. Users should avoid importing untrusted connection configurations in MongoDB Compass version 1.38.0. Monitor the vendor's advisory channels for updates or official fixes. Until a fix is released, restrict usage of Compass to trusted environments and consider alternative methods for connection management that do not involve importing potentially malicious configurations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mongodb
- Date Reserved
- 2026-07-06T16:26:01.113Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6123219c2644c7f89b2d38
Added to database: 07/22/2026, 20:08:01 UTC
Last enriched: 07/22/2026, 20:22:12 UTC
Last updated: 07/23/2026, 01:43:10 UTC
Views: 12
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.