CVE-2025-1756: mongosh vulnerable to local privilege escalation
mongosh may be susceptible to local privilege escalation under certain conditions potentially enabling unauthorized actions on a user's system with elevated privilege, when a crafted file is stored in C:\nodemodules\. This issue affects mongosh prior to 2.3.0.
Published Feb 27, 2025
Affected packages
mongosh
- Ecosystem
- npm
- Affected
- < 2.3.0
- Fixed in
- 2.3.0
- Check
npm ls mongosh
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
mongosh may be susceptible to local privilege escalation under certain conditions potentially enabling unauthorized actions on a user's system with elevated privilege, when a crafted file is stored in C:\node_modules\. This issue affects mongosh prior to 2.3.0.
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-1693
MongoDB Shell may be susceptible to control character Injection via shell output
low3.9Feb 27, 2025
