What’s Vulnerable › Vulnerabilities
CVE-2025-1692: MongoDB Shell may be susceptible to control character injection via pasting
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-02-27 · updated 2026-06-17
- Weakness: CWE-150
Description
The MongoDB Shell may be susceptible to control character injection where an attacker with control of the user’s clipboard could manipulate them to paste text into mongosh that evaluates arbitrary code. Control characters in the pasted text can be used to obfuscate malicious code. This issue affects mongosh versions prior to 2.3.9
Affected products
- MongoDB Inc mongosh: before 2.3.9 — fixed in 2.3.9
How to fix
Upgrade to a fixed version: MongoDB Inc mongosh 2.3.9. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2025-1692 or the next vulnerability affects your stack