Vulnerability in MongoDB Mongosh
CVE-2025-1692
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 · last modified .
CVSS v3 metric
CVSS v3 base score 6.3 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.003, 20.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- MongoDB Mongosh
- MongoDB Inc Mongosh — versions 0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- jira.mongodb.org/browse/MONGOSH-2025 (Issue Tracking, Vendor Advisory)