Live threats

All CVEs / Mongodb

CVE-2025-1693Mongodb Mongosh

Medium 6.8 No auth needed

Priority
56
CVSS 3.1
6.8
EPSS
0.4%
probability of exploitation in 30 days · percentile 28
Auth required
No
Published
Feb 27, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-150
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Mongosh.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm mongosh < 2.3.9 2.3.9 npm install mongosh@2.3.9

Per OSV / GitHub Advisories (GHSA-r95j-4jvf-mrrw). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mongodbmongosh< 2.3.9

Official sources

References

Links published by the sources. Open them with care.