Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. path-to-regexp
  4. ›
  5. CVE-2026-4926

CVE-2026-4926: path-to-regexp vulnerable to Denial of Service via sequential optional groups

March 27, 2026

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.

References

  • cna.openjsf.org/security-advisories.html
  • github.com/advisories/GHSA-j3q9-mxjg-w52f
  • github.com/pillarjs/path-to-regexp
  • github.com/pillarjs/path-to-regexp/security/advisories/GHSA-j3q9-mxjg-w52f
  • nvd.nist.gov/vuln/detail/CVE-2026-4926

Code Behaviors & Features

Detect and mitigate CVE-2026-4926 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 8.0.0 before 8.4.0

Fixed versions

  • 8.4.0

Solution

Upgrade to version 8.4.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity
  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/path-to-regexp/CVE-2026-4926.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:05 +0000.