GitHub Advisoryadvisory · npm

GHSA-3gx7-xhv7-5mx3 Arbitrary Code Execution in eslint-utils

CRITICAL Published 2019-08-26 Modified 2021-08-31 Official page ↗
Aliases
CVE-2019-15657
Ecosystem
npm
Packages
eslint-utils
Severity
Critical
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-20
Reviewed
2020-06-16

Affected packages

• npm eslint-utils: >= 1.2.0, < 1.4.1 → fixed in 1.4.1

Description

Versions of `eslint-utils` >=1.2.0 or <1.4.1 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. Recommendation Upgrade to version 1.4.1 or later.

Related

Alias · CVE (1)

  • CVE-2019-15657 In eslint-utils before 1.4.1, the getStaticValue function can execute arbitrary code. vulnerability

Weakness · CWE (1)

  • CWE-20 Improper Input Validation weakness

References