eslint-utils@1.3.1 vulnerabilities

Utilities for ESLint plugins.

Direct Vulnerabilities

Known vulnerabilities in the eslint-utils 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
  • H
Arbitrary Code Execution

eslint-utils is a package provides utility functions and classes for make ESLint custom rules.

Affected versions of this package are vulnerable to Arbitrary Code Execution. The getStaticValue does not properly sanitize user input allowing attackers to supply malicious input that executes arbitrary code during the linting process. The getStringIfConstant and getPropertyName functions are not affected.

How to fix Arbitrary Code Execution?

Upgrade eslint-utils to version 1.4.1 or higher.

>=1.2.0 <1.4.1