SQL Injection Affecting @mongodb-js/connection-form package, versions <1.20.1


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.06% (18th 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 Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-MONGODBJSCONNECTIONFORM-7417405
  • published4 Jul 2024
  • disclosed1 Jul 2024
  • creditKarman Liu

Introduced: 1 Jul 2024

CVE-2024-6376  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade @mongodb-js/connection-form to version 1.20.1 or higher.

Overview

@mongodb-js/connection-form is an A form for specifying information needed to connect to a MongoDB instance

Affected versions of this package are vulnerable to SQL Injection due to insufficient sandboxing settings for the ejson shell parser. An attacker can execute arbitrary code by injecting malicious inputs into the ejson shell parser.

CVSS Base Scores

version 4.0
version 3.1