SecurityContext

CVE-2026-4867: path-to-regexp - Denial of Service

  • Cve: CVE-2026-4867
  • Name: path-to-regexp - Denial of Service
  • Description: 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 [email protected] 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 [email protected] 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.
  • Impact: Attackers can cause catastrophic backtracking leading to denial of service by crafting specific URL paths.
  • Remediation: Upgrade to [email protected] or later.
  • Vulnerability type: regular_expression_dos
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00778
  • Epss percentile: 0.56785
  • Assignee: ce714d77-add3-4f53-aff5-83d477b104bb
  • Published at: 2026-03-26T17:16:42Z
  • Age in days: 243
  • Modified at: 2026-06-17T10:57:21Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-4867
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements

Cwe

IdName
CWE-1333Inefficient Regular Expression Complexity

Hackerone

  • Reports: 1
  • Rank: 1386

References

UrlSourceTags
https://cna.openjsf.org/security-advisories.htmlnvdThird Party Advisory
https://blakeembrey.com/posts/2024-09-web-redosnvdTechnical Description

Products

ProductAffectedPlatform boundSourcesUrl
pillarjs:path-to-regexp< 0.1.13nonvd/v1/products/pillarjs/path-to-regexp

Projects

RepositoryLink kindsIndexedUrl
pillarjs/path-to-regexpfix, package, releases, security_advisoryyes/v1/repositories/pillarjs/path-to-regexp

Index

  • Repositories: 2407
  • Repositories high signal: 735
  • Packages: 1

Exploitation

  • Remote: yes
  • Hackerone reports: 1
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts