VYPR
Moderate severityNVD Advisory· Published Feb 27, 2025· Updated Feb 27, 2025

MongoDB Shell may be susceptible to control character injection via pasting

CVE-2025-1692

Description

CVE-2025-1692 is a control character injection vulnerability in MongoDB Shell (mongosh) prior to 2.3.9, allowing arbitrary code execution via crafted clipboard content.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

CVE-2025-1692 is a control character injection vulnerability in MongoDB Shell (mongosh) prior to 2.3.9, allowing arbitrary code execution via crafted clipboard content.

The MongoDB Shell (mongosh) versions prior to 2.3.9 are vulnerable to a control character injection issue (CWE-150). The root cause lies in improper neutralization of escape, meta, or control sequences when a user pastes text into the shell [2][3]. An attacker with control of the user's clipboard can embed control characters that obfuscate and inject arbitrary JavaScript code in the pasted input [1][2].

Exploitation requires the attacker to have control over the victim's clipboard content and then rely on social engineering to convince the victim to paste that content into mongosh. The attacker must overcome the local access and user interaction prerequisites, as reflected by the CVSS v3.0 vector: AV:L/AC:H/PR:H/UI:R (score 6.3) [3]. The vulnerable product is mongosh, which is a command-line interface for interacting with MongoDB deployments [1].

Successful exploitation could allow an attacker to execute arbitrary code with the privileges of the user running mongosh. This could lead to full compromise of the local system confidentiality, integrity, and availability (C:H/I:H/A:H) [3]. The impact is particularly significant if the MongoDB Shell is used in privileged or automated contexts.

MongoDB has fixed this vulnerability in mongosh version 2.3.9 and later [3]. Users are advised to update to the latest version to mitigate the risk. No workarounds are documented, and the vendor recommends upgrading as the primary remediation [1][2].

AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
mongoshnpm
< 2.3.92.3.9

Affected products

2
  • MongoDB Inc/mongoshv5
    cpe:2.3:a:mongodb:mongosh:0.2.2:*:*:*:*:*:*:*
    Range: 0
  • ghsa-coords
    Range: < 2.3.9

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.