CVE-2025-1693: MongoDB Shell may be susceptible to control character Injection via shell output
The MongoDB Shell may be susceptible to control character injection where an attacker with control over the database cluster contents can inject control characters into the shell output. This may result in the display of falsified messages that appear to originate from mongosh or the underlying operating system, potentially misleading users into executing unsafe actions.
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 over the database cluster contents can inject control characters into the shell output. This may result in the display of falsified messages that appear to originate from mongosh or the underlying operating system, potentially misleading users into executing unsafe actions.
The vulnerability is exploitable only when mongosh is connected to a cluster that is partially or fully controlled by an attacker.
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-1692
MongoDB Shell may be susceptible to control character injection via pasting
medium6.3Feb 27, 2025CVE-2025-1756
mongosh vulnerable to local privilege escalation
high7.5Feb 27, 2025
