Advisory

DEBIAN-CVE-2026-4867

Also known as: CVE-2026-4867

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-03-26 17:16 UTC
Modified
2026-10-01 03:03 UTC

Affected packages and fixes

node-path-to-regexp

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 1.0.1-1 (ecosystem)

Fixed versions

1.0.1-1

Fix

  • Fixed version 1.0.1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

node-path-to-regexp

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 1.0.1-1 (ecosystem)

Fixed versions

1.0.1-1

Fix

  • Fixed version 1.0.1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

node-path-to-regexp

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 1.0.1-1 (ecosystem)

Fixed versions

1.0.1-1

Fix

  • Fixed version 1.0.1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences