Algorithmic Complexity Affecting npm-12 package, versions <12.2.3-r2


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.84% (59th 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-WOLFILATEST-NPM12-23628882
  • published4 Dec 2026
  • disclosed30 Nov 2026

Introduced: 30 Nov 2026

NewCVE-2026-140008  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade Wolfi npm-12 to version 12.2.3-r2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream npm-12 package and not the npm-12 package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. From 11.0.0 until 11.0.7, mergeRows() in src/index.ts repeatedly copies and joins an entire pattern row while iterating each wildcard position, causing quadratic compilation time for long wildcard-only path patterns even when only one row exists. An attacker who can supply uncached patterns to new Minimatch or another compiling entry point can block the JavaScript event loop and cause a denial of service, with brace-generated rows further multiplying the work. This issue is fixed in version 11.0.7.