Skip to content

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
mainfrom
renovate/npm-path-to-regexp-0.1.12-vulnerability
Open

chore(deps): update dependency path-to-regexp@<0.1.12 to v0.1.13 [security]#2519
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-path-to-regexp-0.1.12-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
path-to-regexp@<0.1.12 0.1.120.1.13 age adoption passing confidence

path-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-:c or /:a-:b-:c-:d. The backtrack protection added in path-to-regexp@0.1.12 only 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-:c to /:a-:b([^-/]+)-:c([^-/]+).

If paths cannot be rewritten and versions cannot be upgraded, another alternative is to limit the URL length.

References

Severity

  • CVSS Score: 7.5 / 10 (High)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References

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.13

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot changed the title chore(deps): update dependency path-to-regexp@<0.1.12 to v0.1.13 [security] chore(deps): update dependency path-to-regexp@<0.1.12 to v0.1.13 [security] - autoclosed Apr 15, 2026
@renovate renovate Bot closed this Apr 15, 2026
@renovate
renovate Bot deleted the renovate/npm-path-to-regexp-0.1.12-vulnerability branch April 15, 2026 09:13
@renovate renovate Bot changed the title chore(deps): update dependency path-to-regexp@<0.1.12 to v0.1.13 [security] - autoclosed chore(deps): update dependency path-to-regexp@<0.1.12 to v0.1.13 [security] Apr 16, 2026
@renovate renovate Bot reopened this Apr 16, 2026
@renovate
renovate Bot force-pushed the renovate/npm-path-to-regexp-0.1.12-vulnerability branch 2 times, most recently from 99b5c74 to bdaa9cd Compare April 16, 2026 17:05
@github-project-automation github-project-automation Bot moved this from Done to Dev backlog in Agent Stack Apr 16, 2026
@renovate renovate Bot changed the title chore(deps): update dependency path-to-regexp@<0.1.12 to v0.1.13 [security] chore(deps): update dependency path-to-regexp@<0.1.12 to v0.1.13 [security] - autoclosed Apr 18, 2026
@renovate renovate Bot closed this Apr 18, 2026
@github-project-automation github-project-automation Bot moved this from Dev backlog to Done in Agent Stack Apr 18, 2026
@renovate renovate Bot changed the title chore(deps): update dependency path-to-regexp@<0.1.12 to v0.1.13 [security] - autoclosed chore(deps): update dependency path-to-regexp@<0.1.12 to v0.1.13 [security] Apr 21, 2026
@renovate renovate Bot reopened this Apr 21, 2026
@renovate
renovate Bot force-pushed the renovate/npm-path-to-regexp-0.1.12-vulnerability branch 2 times, most recently from bdaa9cd to f0d4314 Compare April 21, 2026 18:55
@github-project-automation github-project-automation Bot moved this from Done to Dev backlog in Agent Stack Apr 21, 2026
@renovate
renovate Bot force-pushed the renovate/npm-path-to-regexp-0.1.12-vulnerability branch from f0d4314 to 8533018 Compare July 19, 2026 04:16
@renovate renovate Bot changed the title chore(deps): update dependency path-to-regexp@<0.1.12 to v0.1.13 [security] chore(deps): update dependency path-to-regexp@<0.1.12 to v0.1.13 [security] - autoclosed Jul 29, 2026
@renovate renovate Bot closed this Jul 29, 2026
@github-project-automation github-project-automation Bot moved this from Dev backlog to Done in Agent Stack Jul 29, 2026
@renovate renovate Bot changed the title chore(deps): update dependency path-to-regexp@<0.1.12 to v0.1.13 [security] - autoclosed chore(deps): update dependency path-to-regexp@<0.1.12 to v0.1.13 [security] Jul 30, 2026
@renovate renovate Bot reopened this Jul 30, 2026
@renovate
renovate Bot force-pushed the renovate/npm-path-to-regexp-0.1.12-vulnerability branch from e5c7bfe to 8533018 Compare July 30, 2026 16:51
@github-project-automation github-project-automation Bot moved this from Done to Dev backlog in Agent Stack Jul 30, 2026
@renovate
renovate Bot force-pushed the renovate/npm-path-to-regexp-0.1.12-vulnerability branch from 8533018 to e5c7bfe Compare July 30, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Dev backlog

Development

Successfully merging this pull request may close these issues.

0 participants