CVE-2026-4923

Source
https://cve.org/CVERecord?id=CVE-2026-4923
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-4923.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-4923
Aliases
Downstream
Related
Published
2026-03-26T19:02:00.729Z
Modified
2026-07-11T03:55:42.940052438Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards
Details

Impact:

When using multiple wildcards, combined with at least one parameter, a regular expression can be generated that is vulnerable to ReDoS. This backtracking vulnerability requires the second wildcard to be somewhere other than the end of the path.

Unsafe examples:

/*foo-*bar-:baz /*a-:b-*c-:d /x/*a-:b/*c/y

Safe examples:

/*foo-:bar /*foo-:bar-*baz

Patches:

Upgrade to version 8.4.0.

Workarounds:

If you are using multiple wildcard parameters, you can check the regex output with a tool such as https://makenowjust-labs.github.io/recheck/playground/ to confirm whether a path is vulnerable.

Database specific
{
    "cwe_ids": [
        "CWE-1333"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4923.json",
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "introduced": "8.0.0"
                },
                {
                    "fixed": "8.4.0"
                }
            ]
        }
    ],
    "cna_assigner": "openjs"
}
References

Affected packages

Git / github.com/pillarjs/path-to-regexp

Affected ranges

Type
GIT
Repo
https://github.com/pillarjs/path-to-regexp
Events
Database specific
{
    "cpe": "cpe:2.3:a:pillarjs:path-to-regexp:*:*:*:*:*:node.js:*:*",
    "source": "CPE_RANGE",
    "extracted_events": [
        {
            "introduced": "8.0.0"
        },
        {
            "fixed": "8.4.0"
        }
    ]
}

Affected versions

v8.*
v8.0.0
v8.1.0
v8.2.0
v8.3.0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-4923.json"