Skip to content

UID2-6838: upgrade path-to-regexp to fix CVE-2026-4926 (GHSA-j3q9-mxjg-w52f)#239

Merged
BehnamMozafari merged 1 commit intomainfrom
bmz-UID2-6838-fix-path-to-regexp-dos
Mar 31, 2026
Merged

UID2-6838: upgrade path-to-regexp to fix CVE-2026-4926 (GHSA-j3q9-mxjg-w52f)#239
BehnamMozafari merged 1 commit intomainfrom
bmz-UID2-6838-fix-path-to-regexp-dos

Conversation

@BehnamMozafari
Copy link
Copy Markdown
Contributor

Summary

Upgrades path-to-regexp from 8.2.08.4.1 to fix a HIGH severity DoS vulnerability.

Vulnerability Details

path-to-regexp versions 8.0.0–8.3.x generate exponentially large regexes when route patterns contain multiple sequential optional groups (e.g. {a}{b}{c}:z). This causes uncontrolled resource consumption (CWE-400, CWE-1333), enabling a network-accessible DoS with no authentication required.

This repo had path-to-regexp@8.2.0 locked in package-lock.json.

Fix

Bumped the range from ^8.2.0 to ^8.4.0 in package.json; npm install resolved to 8.4.1.

Testing

All 811 unit and integration tests pass locally.

Repo Scope

Only IABTechLab/uid2-web-integrations is affected. No other repos across IABTechLab, UnifiedID2, or European-Unified-ID use path-to-regexp in the 8.x range.

Upgrades path-to-regexp from 8.2.0 to 8.4.1 to fix GHSA-j3q9-mxjg-w52f
(CVE-2026-4926), a HIGH severity DoS vulnerability where sequential optional
route groups cause exponential regex expansion.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@BehnamMozafari BehnamMozafari merged commit 04f07a3 into main Mar 31, 2026
3 checks passed
@BehnamMozafari BehnamMozafari deleted the bmz-UID2-6838-fix-path-to-regexp-dos branch March 31, 2026 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants