Description
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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| prettier | eslint-config-prettier | 8.10.1, 9.1.1, 10.1.6, 10.1.7 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
nihilor/cve-2025-54313 ★ 0 · Jul 26, 2025
Checks projects for compromised packages, suspicious files, and import statements.
-
Paspke/scavenger_scanner ★ 0 · Jul 26, 2025
Detect CVE-2025-54313 eslint-config-prettier supply chain attack IOCs on Windows
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | @pkgr/core | >= 0.2.8, < 0.2.9 | 0.2.9 | GHSA-f29h-pxvx-f335 |
| npm | eslint-config-prettier | >= 8.10.1, < 8.10.2 | 8.10.2 | GHSA-f29h-pxvx-f335 |
| npm | eslint-config-prettier | >= 9.1.1, < 9.1.2 | 9.1.2 | GHSA-f29h-pxvx-f335 |
| npm | eslint-config-prettier | >= 10.1.6, < 10.1.8 | 10.1.8 | GHSA-f29h-pxvx-f335 |
| npm | eslint-plugin-prettier | >= 4.2.2, < 4.2.4 | 4.2.4 | GHSA-f29h-pxvx-f335 |
| npm | got-fetch | >= 5.1.11, < 6.0.0 | 6.0.0 | GHSA-f29h-pxvx-f335 |
| npm | napi-postinstall | >= 0.3.1, < 0.3.2 | 0.3.2 | GHSA-f29h-pxvx-f335 |
| npm | synckit | >= 0.11.9, < 0.11.10 | 0.11.10 | GHSA-f29h-pxvx-f335 |
References
- https://socket.dev/blog/npm-phishing-campaign-leads-to-prettier-tooling-packages-compromise
- https://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware/
- https://github.com/prettier/eslint-config-prettier/issues/339
- https://www.npmjs.com/package/eslint-config-prettier?activeTab=versions
- https://www.stepsecurity.io/blog/supply-chain-security-alert-eslint-config-prettier-package-shows-signs-of-compromise
- https://news.ycombinator.com/item?id=44609732
- https://news.ycombinator.com/item?id=44608811