CVE-2025-1691

HIGH

mongodb/mongosh < 2.3.9 - Control Character Injection via Autocomplete Feature

Title source: llm
STIX 2.1

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.

References (1)

Core 1
Core References
Issue Tracking, Vendor Advisory
https://jira.mongodb.org/browse/MONGOSH-2024

Scores

CVSS v3 7.6
EPSS 0.0039
EPSS Percentile 60.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-74
Status published
Products (2)
mongodb/mongosh < 2.3.9
npm/mongosh 0 - 2.3.9npm
Published Feb 27, 2025
Tracked Since Feb 18, 2026