Skip to content

CVE-2025-1692 MongoDB Shell may be susceptible to control character injection via pasting

HighCVSS 8.8 EPSS 0.28%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

Description

The MongoDB Shell may be susceptible to control character injection where an attacker with control of the user’s clipboard could manipulate them to paste text into mongosh that evaluates arbitrary code. Control characters in the pasted text can be used to obfuscate malicious code. This issue affects mongosh versions prior to 2.3.9

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
MongoDB mongosh < 2.3.9 2.3.9 Fixed
npm mongosh(npm) < 2.3.9 2.3.9 Fixed

Affected products

ProductAffected versionsFixed in
npm mongosh(npm) < 2.3.9 2.3.9
MongoDB mongosh < 2.3.9 2.3.9

References