CVE-2025-1691: MongoDB Shell may be susceptible to Control Character Injection via autocomplete
Vulnerability summary
CVE-2025-1691 is a high (CVSS 7.6) vulnerability in mongodb, inc. mongosh. EPSS estimates a 0.36% chance of exploitation in the next 30 days, higher than 31.8% of scored vulnerabilities.
Not severe (CVSS 7.6, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 27-02-2025PublishedVulnerability first disclosed.
- 27-02-2025Last modifiedVulnerability information updated.
Description
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 only when mongosh is connected to a cluster that is partially or fully controlled by an attacker.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · NpmEcosystem advisory · calculated7.6HighCVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:NDiffers
EPSS trend
Probability
0.36%
Chance of exploitation in the next 30 days
Percentile
32%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.36% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, administrative account, user interaction (CVSS vector). Other conditions: not stated in public data.
Mongodb1 product
- mongosh< 2.3.9
Mongodb, inc.1 product
- mongosh< 2.3.9
Npm1 product
- mongosh< 2.3.9
3 vendors · 3 products