CVE-2025-1692
JavaScript vulnerability analysis and mitigation

Overview

The MongoDB Shell (mongosh) contains a vulnerability related to control character injection, identified as CVE-2025-1692. This security flaw was discovered and disclosed on February 27, 2025. The vulnerability affects MongoDB Shell versions prior to 2.3.9, where an attacker with control of the user's clipboard could manipulate them to paste text that evaluates arbitrary code (MongoDB JIRA, NVD).

Technical details

The vulnerability is classified as CWE-150 (Improper Neutralization of Escape, Meta, or Control Sequences). It has been assigned a CVSS v3.1 score of 6.3 (Medium), with the following vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H. This scoring indicates that the vulnerability requires local access, high attack complexity, high privileges, and user interaction to exploit, but could result in high impacts to confidentiality, integrity, and availability (MongoDB JIRA, NVD).

Impact

If successfully exploited, the vulnerability allows attackers to execute arbitrary code through the MongoDB Shell by manipulating control characters in pasted text. The control characters can be used to obfuscate malicious code, potentially leading to unauthorized code execution within the context of the MongoDB Shell (MongoDB JIRA).

Mitigation and workarounds

Users are advised to upgrade to MongoDB Shell version 2.3.9 or later, which contains fixes for this vulnerability. This is currently the only confirmed mitigation strategy (MongoDB JIRA, CERT-FR).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management