BreachSpiderVerified, not vibes

CVE-2026-4867 in Pillarjs Path-To-Regexp

High 7.5

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...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.5
EPSS1.0%
EPSS percentile62th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Pillarjs Path-To-Regexp < 0.1.13

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-4867
BreachSpider IDBS-2026-GLOBAL-273471-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published2026-03-26
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-1333: CWE-1333

Related attack patterns (CAPEC)

CAPEC-492 Regular Expression Exponential Blowup via CWE-1333

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in the path-to-regexp library versions prior to 0.1.12 allows for the generation of inefficient regular expressions when three or more parameters are used in a single segment, separated by non-period characters. This can lead to excessive backtracking and potential denial of service.

The attack vector involves crafting URLs with three or more parameters in a single segment, separated by non-period characters, which triggers the generation of inefficient regular expressions. This can cause the application to consume excessive CPU resources, leading to a denial of service condition.

Questions

What is CVE-2026-4867?

A vulnerability in the path-to-regexp library versions prior to 0.1.12 allows for the generation of inefficient regular expressions when three or more parameters are used in a single segment, separated by non-period characters. This can lead to excessive backtracking and potential denial of service.

What is the CVSS score for CVE-2026-4867?

CVE-2026-4867 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 1.0%.

Is CVE-2026-4867 actively exploited?

No confirmed active exploitation of CVE-2026-4867 as of 2026-09-25.

How do I remediate CVE-2026-4867?

Priority: HIGH.

What systems are affected by CVE-2026-4867?

CVE-2026-4867 affects Pillarjs Path-To-Regexp.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Pillarjs","product":"Path-To-Regexp","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.