Improper Neutralization Affecting @mongosh/cli-repl package, versions <2.3.9


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-MONGOSHCLIREPL-9005461
  • published28 Feb 2025
  • disclosed27 Feb 2025
  • creditUnknown

Introduced: 27 Feb 2025

CVE-2025-1693  (opens in a new tab)
CWE-150  (opens in a new tab)

How to fix?

Upgrade @mongosh/cli-repl to version 2.3.9 or higher.

Overview

@mongosh/cli-repl is a MongoDB Shell CLI REPL Package

Affected versions of this package are vulnerable to Improper Neutralization via shell output. An attacker with control over the database cluster contents can inject control characters into the shell output, resulting in the display of falsified messages that appear to originate from mongosh or the underlying operating system, potentially misleading users into executing unsafe actions.

Note:

This is only exploitable if mongosh is connected to a cluster that is partially or fully controlled by an attacker.

CVSS Base Scores

version 4.0
version 3.1