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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-02-27 · Modified: 2025-02-27
- Aliases: GHSA-43g5-2wr2-q7vj
- Record: https://cvemate.com/vulnerability/CVE-2025-1691 · JSON: https://cvemate.com/vulnerability/CVE-2025-1691/json

## Description

```text
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.
```

## Signals

- CVSS: 7.6 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
- EPSS: 0.361%, percentile 31.887%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- mongodb, inc. mongosh: \< 2.3.9
- mongodb mongosh: \< 2.3.9
- Npm mongosh (Npm): \< 2.3.9

## References

- <https://jira.mongodb.org/browse/MONGOSH-2024>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-1691>
- <https://github.com/mongodb-js/mongosh>

---

Data as of 2026-12-05T03:39:00.133Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
