Prettier eslint-config-prettier
Prettier eslint-config-prettier Embedded Malicious Code Vulnerability
eslint-config-prettier 8.10.1, 9.1.1, 10.1.6, and 10.1.7 has embedded malicious code for a supply chain compromise. Installing an affected package executes an install.js file that launches the node-gyp.dll malware on Windows.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- 8.10.1
- 9.1.1
- 10.1.6
- 10.1.7
- >= 8.10.1, < 8.10.2
Fixed in 8.10.2
from GitHub Security Advisory GHSA-f29h-pxvx-f335
- >= 9.1.1, < 9.1.2
Fixed in 9.1.2
from GitHub Security Advisory GHSA-f29h-pxvx-f335
- >= 10.1.6, < 10.1.8
Fixed in 10.1.8
from GitHub Security Advisory GHSA-f29h-pxvx-f335
- >= 4.2.2, < 4.2.4
Fixed in 4.2.4
from GitHub Security Advisory GHSA-f29h-pxvx-f335
- >= 0.11.9, < 0.11.10
Fixed in 0.11.10
from GitHub Security Advisory GHSA-f29h-pxvx-f335
- >= 0.3.1, < 0.3.2
Fixed in 0.3.2
from GitHub Security Advisory GHSA-f29h-pxvx-f335
Mitigation
Upgrade eslint-config-prettier to 8.10.2 or later.
Upgrade eslint-config-prettier to 9.1.2 or later.
Upgrade eslint-config-prettier to 10.1.8 or later.
Upgrade eslint-plugin-prettier to 4.2.4 or later.
Upgrade synckit to 0.11.10 or later.
Upgrade @pkgr/core to 0.2.9 or later.
Upgrade napi-postinstall to 0.3.2 or later.
Upgrade got-fetch to 6.0.0 or later.
Timeline
Days relative to CVE publicationFirst public PoC 7.5 days after publication; added to CISA KEV 187 days after publication. First PoC: nihilor/cve-2025-54313 (created 26 Jul 2025, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs · 1 informational
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| nihilor/cve-2025-54313 | 26 Jul 2025 +7.5 d | 0 | PoC |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Paspke/scavenger_scanner | 26 Jul 2025 +7.9 d | 0 | Informational · detection |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.