CVE-2025-1692 json
MongoDB Shell may be susceptible to control character injection via pasting
published 2025-02-27 20 mo ago modified 2026-06-17 4 mo ago also GHSA-973h-3x6p-qg37 , EUVD-2025-5465
- cvss
- 6.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 20%
- public exploits
- 0
- none known
Summary
The MongoDB Shell may be susceptible to control character injection where an attacker with control of the user’s clipboard could manipulate them to paste text into mongosh that evaluates arbitrary code. Control characters in the pasted text can be used to obfuscate malicious code. This issue affects mongosh versions prior to 2.3.9
Patch / fix
- npm mongosh 2.3.9
- MongoDB Inc mongosh 2.3.9
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 20 mo ago
Exploit prediction
0.28% chance of exploitation in the next 30 days, higher than 20% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.3 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 6.3 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | mongosh | <2.3.9 |
2.3.9 |
Affected products
- MongoDB Inc mongosh
Classification
- Weakness
-
- CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences
References
-
jira.mongodb.org
/browse/MONGOSH-2025
web, issue-tracking, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-1692
advisory
-
github.com
/mongodb-js/mongosh
package
Sources
- CVE List CVE-2025-1692
- GitHub Advisory GHSA-973h-3x6p-qg37
- NVD CVE-2025-1692
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.