braces@0.1.0

Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.

  • latest version

    3.0.3

  • first published

    11 years ago

  • latest version published

    2 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the braces package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Uncontrolled Recursion

    braces is a Bash-like brace expansion, implemented in JavaScript.

    Affected versions of this package are vulnerable to Uncontrolled Recursion in the recursive AST walkers, which lack depth guards. An attacker can supply deeply nested brace patterns that stay within the character limit to exhaust the call stack and crash the Node.js process with an uncaught RangeError.

    How to fix Uncontrolled Recursion?

    There is no fixed version for braces.

    *
    • H
    Excessive Platform Resource Consumption within a Loop

    braces is a Bash-like brace expansion, implemented in JavaScript.

    Affected versions of this package are vulnerable to Excessive Platform Resource Consumption within a Loop due improper limitation of the number of characters it can handle, through the parse function. An attacker can cause the application to allocate excessive memory and potentially crash by sending imbalanced braces as input.

    How to fix Excessive Platform Resource Consumption within a Loop?

    Upgrade braces to version 3.0.3 or higher.

    <3.0.3
    • L
    Regular Expression Denial of Service (ReDoS)

    braces is a Bash-like brace expansion, implemented in JavaScript.

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). It used a regular expression (^\{(,+(?:(\{,+\})*),*|,*(?:(\{,+\})*),+)\}) in order to detects empty braces. This can cause an impact of about 10 seconds matching time for data 50K characters long.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade braces to version 2.3.1 or higher.

    <2.3.1