Vulnerability · Published Feb 27, 2025 · Assigned by mongodb

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

Medium 6.3

In plain English

A medium-severity security flaw in mongosh from MongoDB Inc. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 20% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.3Medium
Exploit odds (30 days)0.3%top 79.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmmongosh2.3.9GHSA-973h-3x6p-qg37

Affected products (as reported)

VendorProductVersions
MongoDB Inc mongosh 0 – before 2.3.9

Weakness: CWE-150 · Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H

References