mongodb-js/mongosh · Security

MongoDB Shell may be susceptible to control character injection via pasting

GHSA ID
GHSA-973h-3x6p-qg37
CVE ID
CVE-2025-1692
Severity
medium
Published
Updated
CVSS
6.3 · CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
CVSS v3
6.3 · CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H

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.

CWEs

References