Read the docs
TI-2025-01454 Aliases CVE-2025-1691GHSA-43g5-2wr2-q7vj

MongoDB Shell may be susceptible to Control Character Injection via autocomplete

Priority LOW 35CWE-74Published · Updated

Key facts

Attack vector
Network
Privileges required
High
User interaction
Required
Attack complexity
High
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00356 29th percentileScored 2026-11-07
Fix Fixed mongosh (MongoDB Inc): 2.3.9mongosh (npm): 2.3.9

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
MongoDBmongoshbefore 2.3.92.3.9Patch availableCNA
—mongosh (npm)before 2.3.92.3.9Patch availableGHSA-43g5-2wr2-q7vj
  • mongosh VendorMongoDB Affected before 2.3.9 Fixed in 2.3.9 Patch available CNA
  • mongosh (npm) Vendor— Affected before 2.3.9 Fixed in 2.3.9 Patch available GHSA-43g5-2wr2-q7vj

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:mongodb:mongosh:*:*:*:*:*:*:*:*before 2.3.9VulnerableMongoDB
  • cpe:2.3:a:mongodb:mongosh:*:*:*:*:*:*:*:* Versions before 2.3.9 Vulnerable ·MongoDB

Remediation

  • Fix · CNA mongosh (MongoDB Inc) Fixed in 2.3.9
  • Fix · GHSA-43g5-2wr2-q7vj mongosh (npm) Fixed in 2.3.9 Advisory →

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    MongoDB mongosh 2.3.9

    3 records Highest priority Priority MEDIUM 1 MEDIUM, 2 LOW

    Other records, highest priority first

    • TI-2025-01455 MongoDB Shell may be susceptible to control character injection via pastingPriority MEDIUM 40
    • TI-2025-01456 MongoDB Shell may be susceptible to control character Injection via shell outputPriority LOW 29

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-1691
  2. 2026-10-03 Alias added: GHSA-43g5-2wr2-q7vj

References

  • TI-2025-01455 MongoDB Shell may be susceptible to control character injection via pasting CVSS 3.1HIGH 8.8
  • TI-2025-01513 MongoDB Shell may be susceptible to local privilege escalation in Windows CVSS 3.1HIGH 7.8
  • TI-2025-01456 MongoDB Shell may be susceptible to control character Injection via shell output CVSS 3.1MEDIUM 6.8

Sources