GHSA-grv7-fg5c-xmjg

    Dashboard / Vulnerabilities / GHSA-grv7-fg5c-xmjg

    GHSA-grv7-fg5c-xmjg

    Published: 14 May 2024Last Modified: 10 Sept 2026
    Aliases:

    Summary: Uncontrolled resource consumption in braces

    Details: The NPM package `braces` fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In `lib/parse.js,` if a malicious user sends "imbalanced braces" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.

    Affected packages

    Package

    Name: braces

    Purl: pkg:npm/braces

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -3.0.3

    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