CVE-2025-1691
MEDIUM 6.5CVSS 3.1MongoDB Shell may be susceptible to Control Character Injection via autocomplete
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.
- Published
- 27 Feb 2025
- Last modified
- 17 Jun 2026
- Assigned by
- cna@mongodb.com
- NVD status
- Analyzed
- Weakness
- CWE-74
- Also known as
- GHSA-43g5-2wr2-q7vj
- Sources
- NVDJSONOSV GHSA-43g5-2wr2-q7vjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cna@mongodb.com (Secondary) | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mongodb | mongoshcpe:2.3:a:mongodb:mongosh:*:*:*:*:*:*:*:* |
< 2.3.9 | 2.3.9 |
| OSV | npm | mongosh | < 2.3.9 | 2.3.9 |
References
- https://jira.mongodb.org/browse/MONGOSH-2024 · Issue Tracking, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-1691 · ADVISORY
- https://github.com/mongodb-js/mongosh · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 27 Feb 2025)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 27 Feb 2025)