Skip to content

Update path-to-regexp to 0.1.13 to fix CVE-2026-4867 - #7135

Merged
bjohansebas merged 1 commit into
expressjs:4.xfrom
baryman:makkuznetsov/update-path-regexp
Jun 16, 2026
Merged

Update path-to-regexp to 0.1.13 to fix CVE-2026-4867#7135
bjohansebas merged 1 commit into
expressjs:4.xfrom
baryman:makkuznetsov/update-path-regexp

Conversation

@baryman

@baryman baryman commented Mar 30, 2026

Copy link
Copy Markdown

Description


To keep projects on version 4.x, you need to update the path-to-regexp package to version 0.1.13 to fix the CVE-2026-4867 vulnerability.

@baryman baryman changed the title Update path-to-regexp to 0.1.13 because CVE-2026-4867 Update path-to-regexp to 0.1.13 to fix CVE-2026-4867 Mar 30, 2026

@krzysdz krzysdz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI ~0.1.12 matches all 0.1.x versions >= 0.1.12. Running npm audit fix, npm update in existing project or npm install in a new one, will install the updated version of path-to-regexp, without requiring a new Express version - #6905.

@baryman

baryman commented Mar 30, 2026

Copy link
Copy Markdown
Author

FYI ~0.1.12 matches all 0.1.x versions >= 0.1.12. Running npm audit fix, npm update in existing project or npm install in a new one, will install the updated version of path-to-regexp, without requiring a new Express version - #6905.

Perfect. Can I close PR ?

@krzysdz krzysdz added 4.x deps dependencies Pull requests that update a dependency file labels Mar 30, 2026

@bjohansebas bjohansebas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I know, there won’t be a release anytime soon, but you can update your application yourself with npm update path-to-regexp. I merged this so that if a release does happen, applications will get the latest version of that package—but as I said, it won’t be anytime soon.

@bjohansebas

Copy link
Copy Markdown
Member

Could you rebase the branch so the CI passes, please?

@krzysdz

krzysdz commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Could you rebase the branch so the CI passes, please?

This test is broken with current 4.x too. It's an unrelated bug with body-parser (expressjs/body-parser#715).

@bjohansebas
bjohansebas force-pushed the makkuznetsov/update-path-regexp branch from 4015420 to 45dfa34 Compare June 16, 2026 03:11
@bjohansebas
bjohansebas merged commit 715101b into expressjs:4.x Jun 16, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.x dependencies Pull requests that update a dependency file deps

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants