tf2-item-format@2.4.5 vulnerabilities

Format's TF2 items like backpack.tf does

Direct Vulnerabilities

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

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable 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