tf2-item-format@5.9.13 vulnerabilities

Format's TF2 items like backpack.tf does

  • latest version

    5.9.25

  • latest non vulnerable version

  • first published

    4 years ago

  • latest version published

    8 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the tf2-item-format package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Regular Expression Denial of Service (ReDoS)

    tf2-item-format is a Format's TF2 items like backpack.tf does

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the parseString() function due to improper sanitization of toRemove and itemName. An attacker can cause a denial of service by submitting specially crafted input that triggers an inefficient regular expression evaluation.

    Note

    The vulnerable Regex is only called under the following conditions:

    1. attributes.usableItem is truth

    2. either attributes.usableItem.output or attributes.usableItem.target are falsy

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

    Upgrade tf2-item-format to version 5.9.14 or higher.

    <5.9.14