CVE-2025-1691: The MongoDB Shell may be susceptible to control character injection where an attacker with control of the mong
CVE-2025-1691 is a high-severity flaw (CVSS 7.6) affecting mongosh. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
The MongoDB Shell may be susceptible to control character injection where an attacker with control of the mongosh autocomplete feature, can use the autocompletion feature to input and run obfuscated malicious text. This requires user interaction in the form of the user using ‘tab’ to autocomplete text that is a prefix of the attacker’s prepared autocompletion. This issue affects mongosh versions prior to 2.3.9. The vulnerability is exploitable
Why this priority
- High severity
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.6 (High) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | High |
| User interaction | Required |
| EPSS exploit chance | 0.4% (top 71%) |
| CISA exploited list | No |
| Weakness | CWE-74 |
| Published | 2025-02-27 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2025-1691?
mongosh: upgrade to 2.3.9. Exact commands for each OS are on this page.
Is CVE-2025-1691 being exploited?
CVE-2025-1691 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2025-1691 affect?
CVE-2025-1691 affects mongosh. Severity is high (CVSS 7.6). The MongoDB Shell may be susceptible to control character injection where an attacker with control of the mongosh autocomplete feature, can use the autocompletion feature to input and run obfuscated malicious text. This requires user intera
How urgent is CVE-2025-1691?
Priority 34/100. High severity
Software pages
Related CVEs
- CVE-2025-1756 HIGH 7.5 UPGRADE DOWNGRADE mongosh may be susceptible to local privilege escalation under certain conditions potentially enabling unautho
- CVE-2025-1693 LOW 3.9 UPGRADE The MongoDB Shell may be susceptible to control character injection where an attacker with control over the da
- CVE-2025-1692 MEDIUM 6.3 UPGRADE The MongoDB Shell may be susceptible to control character injection where an attacker with control of the user