Inefficient Regular Expression Complexity Affecting ts-patch package, versions <4.0.1-r50


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.61% (44th 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-22613718
  • published19 Nov 2026
  • disclosed19 Oct 2026

Introduced: 19 Oct 2026

CVE-2026-112366  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade Wolfi ts-patch to version 4.0.1-r50 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.

Picomatch through 4.0.7 contains a regular expression denial of service vulnerability that allows attackers to block the event loop by supplying single-branch repeated extglob patterns. Attackers can provide globs like +(*) or +(*a), which analyzeRepeatedExtglob in lib/parse.js skips, causing exponential backtracking against short crafted strings and denying service to Node.js applications.

CVSS Base Scores

version 3.1