VDB
Sign up
MEDIUM6.3

GHSA-973h-3x6p-qg37

MongoDB Shell may be susceptible to control character injection via pasting

Quick fix

GHSA-973h-3x6p-qg37 — mongosh: upgrade to the fixed version with the command below.

npm install mongosh@2.3.9

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/mongosh
Introduced in: 0Fixed in: 2.3.9
Fixnpm install mongosh@2.3.9

References