Resource Exhaustion Affecting ts-patch package, versions <4.0.1-r52


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.83% (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-TSPATCH-23328437
  • published3 Dec 2026
  • disclosed30 Nov 2026

Introduced: 30 Nov 2026

NewCVE-2026-137196  (opens in a new tab)
CWE-400  (opens in a new tab)
CWE-405  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade Wolfi ts-patch to version 4.0.1-r52 or higher.

NVD Description

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

Glob matches files using patterns the shell uses. From 13.0.5 until 14.0.6, the Ignore class in src/ignore.ts does not pass braceExpandMax to minimatch while using optimizationLevel: 2, so attacker-influenced ignore patterns can amplify into more globparts than the regular pattern path permits and cause quadratic work in secondPhasePreProcess(). Applications that accept untrusted ignore patterns can therefore experience disproportionate event-loop CPU consumption and denial of service. This issue is fixed in version 14.0.6.