Inefficient Regular Expression Complexity Affecting micromatch package, versions <4.0.8


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.05% (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 Inefficient Regular Expression Complexity vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-MICROMATCH-6838728
  • published13 May 2024
  • disclosed13 May 2024
  • creditMário Teixeira

Introduced: 13 May 2024

CVE-2024-4067  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade micromatch to version 4.0.8 or higher.

Overview

Affected versions of this package are vulnerable to Inefficient Regular Expression Complexity due to the use of unsafe pattern configurations that allow greedy matching through the micromatch.braces() function. An attacker can cause the application to hang or slow down by passing a malicious payload that triggers extensive backtracking in regular expression processing.

CVSS Scores

version 3.1