Skip to content

Arbitrary Code Execution in eslint-utils

Critical severity GitHub Reviewed Published Aug 20, 2019 in mysticatea/eslint-utils • Updated Nov 29, 2023

Package

npm eslint-utils (npm)

Affected versions

>= 1.2.0, < 1.4.1

Patched versions

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.

References

@mysticatea mysticatea published to mysticatea/eslint-utils Aug 20, 2019
Published to the GitHub Advisory Database Aug 26, 2019
Reviewed Jun 16, 2020
Last updated Nov 29, 2023

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2019-15657

GHSA ID

GHSA-3gx7-xhv7-5mx3
Checking history
See something to contribute? Suggest improvements for this vulnerability.