mysticatea/eslint-utils · Security
Arbitrary Code Execution in eslint-utils
- GHSA ID
- GHSA-3gx7-xhv7-5mx3
- CVE ID
- CVE-2019-15657
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
CWEs
- CWE-20 · Improper Input Validation
References
- https://github.com/mysticatea/eslint-utils/security/advisories/GHSA-3gx7-xhv7-5mx3 ↗
- https://nvd.nist.gov/vuln/detail/CVE-2019-15657 ↗
- https://eslint.org/blog/2019/08/eslint-v6.2.1-released ↗
- https://github.com/advisories/GHSA-3gx7-xhv7-5mx3 ↗
- https://www.npmjs.com/advisories/1118 ↗
- https://github.com/mysticatea/eslint-utils/commit/08158db1c98fd71cf0f32ddefbc147e2620e724c ↗