CVE-2025-1692: MongoDB Shell may be susceptible to control character injection via pasting
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.
Published Feb 27, 2025
Affected packages
mongosh
- Ecosystem
- npm
- Affected
- < 2.3.9
- Fixed in
- 2.3.9
- Check
npm ls mongosh
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2025-1691
MongoDB Shell may be susceptible to Control Character Injection via autocomplete
high7.6Feb 27, 2025CVE-2025-1693
MongoDB Shell may be susceptible to control character Injection via shell output
low3.9Feb 27, 2025CVE-2025-1756
mongosh vulnerable to local privilege escalation
high7.5Feb 27, 2025
