Actively exploited · Published Jul 19, 2025 · Assigned by mitre
CVE-2025-54313
High 7.5 Exploited
In plain English
A high-severity security flaw in eslint-config-prettier from prettier. Attackers are actively exploiting it in the wild (listed by CISA on January 22, 2026). The chance it is exploited in the next 30 days is estimated at 5.1% (higher than 92% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
CISA guidance
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Federal agencies must remediate by Feb 12, 2026.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @pkgr/core | 0.2.9 | GHSA-f29h-pxvx-f335 |
| npm | eslint-config-prettier | 9.1.2 | GHSA-f29h-pxvx-f335 |
| npm | eslint-config-prettier | 10.1.8 | GHSA-f29h-pxvx-f335 |
| npm | eslint-config-prettier | 8.10.2 | GHSA-f29h-pxvx-f335 |
| npm | eslint-plugin-prettier | 4.2.4 | GHSA-f29h-pxvx-f335 |
| npm | got-fetch | 6.0.0 | GHSA-f29h-pxvx-f335 |
| npm | napi-postinstall | 0.3.2 | GHSA-f29h-pxvx-f335 |
| npm | synckit | 0.11.10 | GHSA-f29h-pxvx-f335 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| prettier | eslint-config-prettier | 8.10.19.1.110.1.610.1.7 |
Weakness: CWE-506 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N
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
- https://github.com/community-scripts/ProxmoxVE/discussions/6115
- https://www.endorlabs.com/learn/cve-2025-54313-eslint-config-prettier-compromise----high-severity-but-windows-only
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-54313 government-resource