GHSA-rhx6-c78j-4q9w

    Dashboard / Vulnerabilities / GHSA-rhx6-c78j-4q9w

    GHSA-rhx6-c78j-4q9w

    Published: 5 Dec 2024Last Modified: 10 Sept 2026

    Summary: path-to-regexp contains a ReDoS

    Details: ### Impact The regular expression that is vulnerable to backtracking can be generated in versions before 0.1.12 of `path-to-regexp`, originally reported in CVE-2024-45296 ### Patches Upgrade to 0.1.12. ### Workarounds Avoid using two parameters within a single path segment, when the separator is not `.` (e.g. no `/:a-:b`). Alternatively, you can define the regex used for both parameters and ensure they do not overlap to allow backtracking. ### References - https://github.com/advisories/GHSA-9wv6-86v2-598j - https://blakeembrey.com/posts/2024-09-web-redos/

    Affected packages

    Package

    Name: path-to-regexp

    Purl: pkg:npm/path-to-regexp

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -0.1.12

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High