CVE-2021-26275 Command injection in eslint-fixer
Attackers can execute arbitrary commands via shell metacharacters in the fix function of the unsupported eslint-fixer Node.js package.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-26275?
CVE-2021-26275 is a critical command injection vulnerability in n/a, published on 18 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The eslint-fixer package through 0.1.5 for Node.js allows command injection via shell metacharacters to the fix function. NOTE: This vulnerability only affects products that are no longer supported by the maintainer. The ozum/eslint-fixer GitHub repository has been intentionally deleted
Weakness: CWE-77
Which versions are affected by CVE-2021-26275?
2 open source packages ship an affected version, including eslint-fixer. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
eslint-fixer npm | All versions to 0.1.5 | None |
eslint-fixer npm | All versions to 0.1.5 | None |
Products include Eslint-Fixer Project Eslint-Fixer.
How do I fix CVE-2021-26275?
No fix has been published for CVE-2021-26275 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2021-26275 being exploited?
There is no known exploitation of CVE-2021-26275 in the wild and no public exploit code.
Sources
Also known as GHSA-45w5-pvr8-4rh5.