CVE-2025-1691

MEDIUM CVSS 3.1: 6.5 EPSS 0.36%
Updated Sep 22, 2025
MongoDB
Parameter Value
CVSS 6.5 (MEDIUM)
Affected Versions before 2.3.9
Fixed In 2.3.9
Type CWE-74 (Injection)
Vendor MongoDB
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
None
No data leak
Integrity
High
Complete data modification
Availability
None
No disruption

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Mongodb Mongosh
cpe:2.3:a:mongodb:mongosh:*:*:*:*:*:*:*:*
— 2.3.9