CVE-2025-1691
published high CVSS 3.1 · 7.6MongoDB Shell may be susceptible to Control Character Injection via autocomplete
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MongoDB Inc | — | mongosh0 to < 2.3.9 · Other versions: unaffected | Affected | Not stated | mongodb |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.6 / 10
- Severity
- high
- Provider
- mongodb · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MongoDB Inc | mongosh | 0 to < 2.3.9 (affected · custom)Default: unaffected | mongodb · cna |
Weaknesses
1- CWE-74 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
References
1Provider assertions
2mongodb · cna
MongoDB Shell may be susceptible to Control Character Injection via autocomplete
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 0652d202a87c77309cd98306b448fa65d3f3868970337930e5fc4b7f8c06911d
- Ingested
- 23 Sep 2026, 08:38:52 UTC
- Source record
- Official CVE record