BreachSpiderVerified, not vibes

CVE-2025-1693 in Mongodb Mongosh

Medium 6.8

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, pot...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.16.8
EPSS0.4%
EPSS percentile28th
FixSee advisory

Remotely exploitable over the network, high complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Mongodb Mongosh < 2.3.9

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-1693
BreachSpider IDBS-2025-GLOBAL-235561-M
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H
Published2025-02-27
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-150: CWE-150

Related attack patterns (CAPEC)

CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads via CWE-150

CAPEC-81 Web Server Logs Tampering via CWE-150

CAPEC-93 Log Injection-Tampering-Forging via CWE-150

CAPEC-134 Email Injection via CWE-150

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

The MongoDB Shell is vulnerable to control character injection, allowing attackers to inject control characters into shell output, potentially misleading users into executing unsafe actions.

An attacker with control over the database cluster contents can inject control characters into the MongoDB Shell output, which may result in the display of falsified messages that appear to originate from mongosh or the underlying operating system.

Questions

What is CVE-2025-1693?

The MongoDB Shell is vulnerable to control character injection, allowing attackers to inject control characters into shell output, potentially misleading users into executing unsafe actions.

What is the CVSS score for CVE-2025-1693?

CVE-2025-1693 has CVSS 6.8 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H. EPSS: 0.4%.

Is CVE-2025-1693 actively exploited?

No confirmed active exploitation of CVE-2025-1693 as of 2026-09-25.

How do I remediate CVE-2025-1693?

Priority: MEDIUM. Advisory: https://jira.mongodb.org/browse/MONGOSH-2026 PSIRT: [email protected]

What systems are affected by CVE-2025-1693?

CVE-2025-1693 affects Mongodb Mongosh.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Mongodb","product":"Mongosh","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.