CVE-2025-1692
HIGH 8.8CVSS 3.1MongoDB Shell may be susceptible to control character injection via pasting
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
- Published
- 27 Feb 2025
- Last modified
- 17 Jun 2026
- Assigned by
- cna@mongodb.com
- NVD status
- Analyzed
- Weakness
- CWE-150
- Also known as
- GHSA-973h-3x6p-qg37
- Sources
- NVDJSONOSV GHSA-973h-3x6p-qg37JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | cna@mongodb.com (Secondary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H |
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-2025 · Issue Tracking, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-1692 · 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)