Security mailing lists by PureSourceCode

CVE-2026-4926

HIGH 7.5CVSS 3.1

path-to-regexp vulnerable to Denial of Service via sequential optional groups

Impact:

A bad regular expression is generated any time you have multiple sequential optional groups (curly brace syntax), such as {a}{b}{c}:z. The generated regex grows exponentially with the number of groups, causing denial of service.

Patches:

Fixed in version 8.4.0.

Workarounds:

Limit the number of sequential optional groups in route patterns. Avoid passing user-controlled input as route patterns.

Published
26 Mar 2026
Last modified
10 Sep 2026
Assigned by
ce714d77-add3-4f53-aff5-83d477b104bb
NVD status
Modified
Weakness
CWE-1333CWE-400
Also known as
GHSA-j3q9-mxjg-w52f
Sources
NVDJSONOSV GHSA-j3q9-mxjg-w52fJSON

Scores

SourceScored byVersionScoreVector / decision
NVD ce714d77-add3-4f53-aff5-83d477b104bb (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD pillarjs path-to-regexp
cpe:2.3:a:pillarjs:path-to-regexp:*:*:*:*:*:node.js:*:*
>= 8.0.0, < 8.4.0 8.4.0
OSV npm path-to-regexp >= 8.0.0, < 8.4.0 8.4.0

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 26 Mar 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 27 Mar 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.