CVE-2021-26275: Command injection in eslint-fixer
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.89951%
CWE
Published
4/13/2021
Updated
2/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
eslint-fixer | npm | <= 0.1.5 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability description explicitly states command injection occurs via the fix function. The npm package documentation shows fix() executes eslint --fix with user-supplied file paths. Without proper input sanitization or using secure child_process methods (like execFile), passing untrusted input to this function would allow command injection via shell metacharacters. The function's direct involvement in executing shell commands with user input makes it clearly vulnerable.