# CVE-2025-1691: MongoDB Shell may be susceptible to Control Character Injection via autocomplete

- Severity: High 7.6 (CVSS:3.1, scored by mongodb) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-02)
- Published: 2025-02-27T12:34:02.752Z
- Modified: 2026-06-17T08:39:36.563Z
- Also known as: GHSA-43g5-2wr2-q7vj
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- MongoDB Inc mongosh: before 2.3.9
- mongosh (npm): before 2.3.9
- mongodb mongosh: before 2.3.9

## Every score

- mongodb: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`

## 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)

## Sources

- CVE List: [CVE-2025-1691](https://www.cve.org/CVERecord?id=CVE-2025-1691), CVE Terms of Use, modified 2025-02-27
- GitHub Advisory Database: [GHSA-43g5-2wr2-q7vj](https://github.com/advisories/GHSA-43g5-2wr2-q7vj), CC-BY-4.0, modified 2025-02-27
- NVD: [CVE-2025-1691](https://nvd.nist.gov/vuln/detail/CVE-2025-1691), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-1691 · Whole record: https://cve.day/CVE-2025-1691.json · Rebuilt by cve.day 2026-11-25T22:58:54.580Z
