CVE-2026-4867
JavaScript vulnerability analysis and mitigation

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 path-to-regexp@0.1.12 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 path-to-regexp@0.1.13

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.


SourceNVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-p6x5-p4xf-cc4rCRITICAL9.8
  • JavaScriptJavaScript
  • math-codegen
NoYesApr 17, 2026
CVE-2026-41242CRITICAL9.4
  • JavaScriptJavaScript
  • librechat
NoYesApr 18, 2026
GHSA-v38x-c887-992fCRITICAL9.2
  • JavaScriptJavaScript
  • flowise
NoYesApr 18, 2026
CVE-2026-41265CRITICAL9.2
  • JavaScriptJavaScript
  • flowise
NoYesApr 18, 2026
CVE-2026-40346MEDIUM6.4
  • JavaScriptJavaScript
  • @nocobase/plugin-workflow-request
NoYesApr 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management