chore(deps): update dependency path-to-regexp@<0.1.12 to v0.1.13 [security] - #2519
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency path-to-regexp@<0.1.12 to v0.1.13 [security]#2519renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
deleted the
renovate/npm-path-to-regexp-0.1.12-vulnerability
branch
April 15, 2026 09:13
renovate
Bot
force-pushed
the
renovate/npm-path-to-regexp-0.1.12-vulnerability
branch
2 times, most recently
from
April 16, 2026 17:05
99b5c74 to
bdaa9cd
Compare
renovate
Bot
force-pushed
the
renovate/npm-path-to-regexp-0.1.12-vulnerability
branch
2 times, most recently
from
April 21, 2026 18:55
bdaa9cd to
f0d4314
Compare
renovate
Bot
force-pushed
the
renovate/npm-path-to-regexp-0.1.12-vulnerability
branch
from
July 19, 2026 04:16
f0d4314 to
8533018
Compare
renovate
Bot
force-pushed
the
renovate/npm-path-to-regexp-0.1.12-vulnerability
branch
from
July 30, 2026 16:51
e5c7bfe to
8533018
Compare
renovate
Bot
force-pushed
the
renovate/npm-path-to-regexp-0.1.12-vulnerability
branch
from
July 30, 2026 16:51
8533018 to
e5c7bfe
Compare
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.
This PR contains the following updates:
0.1.12→0.1.13path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters
CVE-2024-45296 / CVE-2026-4867 / GHSA-37ch-88jc-xwx2 / GHSA-9wv6-86v2-598j
More information
Details
Impact
A bad regular expression is generated any time you have three or more parameters within a single segment, separated by something that is not a period (
.). For example,/:a-:b-:cor/:a-:b-:c-:d. The backtrack protection added inpath-to-regexp@0.1.12only prevents ambiguity for two parameters. With three or more, the generated lookahead does not block single separator characters, so capture groups overlap and cause catastrophic backtracking.Patches
Upgrade to path-to-regexp@0.1.13
Custom regex patterns in route definitions (e.g.,
/:a-:b([^-/]+)-:c([^-/]+)) are not affected because they override the default capture group.Workarounds
All versions can be patched by providing a custom regular expression for parameters after the first in a single segment. As long as the custom regular expression does not match the text before the parameter, you will be safe. For example, change
/:a-:b-:cto/:a-:b([^-/]+)-:c([^-/]+).If paths cannot be rewritten and versions cannot be upgraded, another alternative is to limit the URL length.
References
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
pillarjs/path-to-regexp (path-to-regexp@<0.1.12)
v0.1.13Compare Source
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.