MongoDB Shell may be susceptible to control character Injection via shell output
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
The MongoDB Shell may be susceptible to control character injection where an attacker with control over the database cluster contents can inject control characters into the shell output. This may result in the display of falsified messages that appear to originate from mongosh or the underlying operating system, potentially misleading users into executing unsafe actions. The vulnerability is exploitable only when mongosh is connected to a cluster that is partially or fully controlled by an attacker. This issue affects mongosh versions prior to 2.3.9
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MongoDB | mongosh | before 2.3.9 | 2.3.9 | Patch available | CNA |
| — | mongosh (npm) | before 2.3.9 | 2.3.9 | Patch available | GHSA-r95j-4jvf-mrrw |
- mongosh VendorMongoDB Affected before 2.3.9 Fixed in 2.3.9 Patch available CNA
- mongosh (npm) Vendor— Affected before 2.3.9 Fixed in 2.3.9 Patch available GHSA-r95j-4jvf-mrrw
Remediation
- Fix · CNA mongosh (MongoDB Inc) Fixed in 2.3.9
- Fix · GHSA-r95j-4jvf-mrrw mongosh (npm) Fixed in 2.3.9 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
MongoDB mongosh 2.3.9
3 records Highest priority Priority MEDIUM 1 MEDIUM, 2 LOW
Other records, highest priority first
- TI-2025-01455 MongoDB Shell may be susceptible to control character injection via pastingPriority MEDIUM 40
- TI-2025-01454 MongoDB Shell may be susceptible to Control Character Injection via autocompletePriority LOW 35
Timeline
- 2026-10-02 Threatist record created from CVE-2025-1693
- 2026-10-03 Alias added: GHSA-r95j-4jvf-mrrw
References
More MongoDB Mongosh vulnerabilities
- TI-2025-01455 MongoDB Shell may be susceptible to control character injection via pasting CVSS 3.1HIGH 8.8
- TI-2025-01513 MongoDB Shell may be susceptible to local privilege escalation in Windows CVSS 3.1HIGH 7.8
- TI-2025-01454 MongoDB Shell may be susceptible to Control Character Injection via autocomplete CVSS 3.1HIGH 7.6
Sources
- CVE-2025-1693 · CVE Program
- CVE-2025-1693 · NVD
- FIRST EPSS
- GHSA-r95j-4jvf-mrrw · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences