CVE-2025-1693 MongoDB Shell may be susceptible to control character Injection via shell output
Attackers controlling database content can inject control characters into MongoDB Shell output to display falsified messages, potentially misleading users into unsafe actions.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-1693?
CVE-2025-1693 is a low-severity vulnerability in MongoDB Inc mongosh, published on 27 Feb 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
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
Weakness: CWE-150
Which versions are affected by CVE-2025-1693?
2 open source packages ship an affected version, including mongosh. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mongosh npm | All versions | 2.3.9 |
mongosh npm | All versions | 2.3.9 |
Products include Mongodb Mongosh.
How do I fix CVE-2025-1693?
Upgrade mongosh to 2.3.9 or later.
Is CVE-2025-1693 being exploited?
There is no known exploitation of CVE-2025-1693 in the wild and no public exploit code.
Other vulnerabilities in MongoDB Inc mongosh
Sources
Also known as GHSA-r95j-4jvf-mrrw.