Skip to content

chore(monorepo): update pnpm-workspace.overrides path-to-regexp to >=0.1.13 [security] - #14

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-path-to-regexp-vulnerability
Open

chore(monorepo): update pnpm-workspace.overrides path-to-regexp to >=0.1.13 [security]#14
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-path-to-regexp-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Sep 5, 2026

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
path-to-regexp >=0.1.12>=0.1.13 age confidence

path-to-regexp contains a ReDoS

CVE-2024-52798 / GHSA-rhx6-c78j-4q9w

More information

Details

Impact

The regular expression that is vulnerable to backtracking can be generated in versions before 0.1.12 of path-to-regexp, originally reported in CVE-2024-45296

Patches

Upgrade to 0.1.12.

Workarounds

Avoid using two parameters within a single path segment, when the separator is not . (e.g. no /:a-:b). Alternatively, you can define the regex used for both parameters and ensure they do not overlap to allow backtracking.

References

Severity

  • CVSS Score: 7.7 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters

CVE-2026-4867 / GHSA-37ch-88jc-xwx2

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 the GitHub Advisory Database (CC-BY 4.0).


Release Notes

pillarjs/path-to-regexp (path-to-regexp)

v0.1.13

Compare Source


Configuration

📅 Schedule: (in timezone America/New_York)

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

🚦 Automerge: Enabled.

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 requested a review from a team September 5, 2026 04:00
@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Sep 5, 2026
@renovate
renovate Bot requested review from a team and sullivanpj as code owners September 5, 2026 04:00
@renovate
renovate Bot enabled auto-merge (squash) September 5, 2026 04:00
@renovate
renovate Bot force-pushed the renovate/npm-path-to-regexp-vulnerability branch from ee235ed to d557251 Compare September 6, 2026 19:34
@renovate renovate Bot changed the title chore(monorepo): update pnpm-workspace.overrides path-to-regexp to >=0.2.5 [security] chore(monorepo): update pnpm-workspace.overrides path-to-regexp to >=0.1.13 [security] Sep 6, 2026
@renovate
renovate Bot force-pushed the renovate/npm-path-to-regexp-vulnerability branch from d557251 to b07413f Compare September 12, 2026 19:53
@renovate renovate Bot changed the title chore(monorepo): update pnpm-workspace.overrides path-to-regexp to >=0.1.13 [security] chore(monorepo): update pnpm-workspace.overrides path-to-regexp to >=0.2.5 [security] Sep 12, 2026
@renovate
renovate Bot force-pushed the renovate/npm-path-to-regexp-vulnerability branch from b07413f to c86d8fa Compare September 14, 2026 03:45
@renovate renovate Bot changed the title chore(monorepo): update pnpm-workspace.overrides path-to-regexp to >=0.2.5 [security] chore(monorepo): update pnpm-workspace.overrides path-to-regexp to >=0.1.13 [security] Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants