Vulnerability · Published Feb 27, 2025 · Assigned by mongodb
CVE-2025-1693MongoDB Shell may be susceptible to control character Injection via shell output
Low 3.9
In plain English
A low-severity security flaw in mongosh from MongoDB Inc. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 13% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
The MongoDB Shell may be susceptible to control character injection where an attacker with control over the database cluster contents can inject control characters into the shell output. This may result in the display of falsified messages that appear to originate from mongosh or the underlying operating system, potentially misleading users into executing unsafe actions. The vulnerability is exploitable only when mongosh is connected to a cluster that is partially or fully controlled by an attacker. This issue affects mongosh versions prior to 2.3.9
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | mongosh | 2.3.9 | GHSA-r95j-4jvf-mrrw |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| MongoDB Inc | mongosh | 0 – before 2.3.9 |
Weakness: CWE-150 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L