UID2-6838: upgrade path-to-regexp to fix CVE-2026-4926 (GHSA-j3q9-mxjg-w52f)#239
Merged
BehnamMozafari merged 1 commit intomainfrom Mar 31, 2026
Merged
Conversation
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>
jon8787
approved these changes
Mar 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades
path-to-regexpfrom8.2.0→8.4.1to fix a HIGH severity DoS vulnerability.Vulnerability Details
path-to-regexpversions 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.0locked inpackage-lock.json.Fix
Bumped the range from
^8.2.0to^8.4.0inpackage.json;npm installresolved to8.4.1.Testing
All 811 unit and integration tests pass locally.
Repo Scope
Only
IABTechLab/uid2-web-integrationsis affected. No other repos across IABTechLab, UnifiedID2, or European-Unified-ID usepath-to-regexpin the 8.x range.