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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| MongoDB | mongosh | < 2.3.9 | 2.3.9 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | mongosh | < 2.3.9 | 2.3.9 | GHSA-973h-3x6p-qg37 |
Advisories 1
- WID-SEC-2025-0454 MongoDB und MongoDB Compass: Mehrere Schwachstellen BSI CERT-Bund (WID) · Feb 27, 2025