CVEs / CVE-2025-54313
CVE-2025-54313: Prettier eslint-config-prettier Embedded Malicious Code Vulnerability
- Known exploited in the CISA KEV catalog since 22 Jan 2026
- high 7.5 CVSS 3.1 (from the CNA)
- EPSS 5.12% chance of exploitation in the next 30 days, higher than 92% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2025-54313
Summary
Prettier eslint-config-prettier contains an embedded malicious code vulnerability. Installing an affected package executes an install.js file that launches the node-gyp.dll malware on Windows.
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 and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| prettier eslint-config-prettier | 8.10.1 | — |
| prettier eslint-config-prettier | 9.1.1 | — |
| prettier eslint-config-prettier | 10.1.6 | — |
| prettier eslint-config-prettier | 10.1.7 | — |
| Product | Affected | Fixed in |
|---|---|---|
| eslint-config-prettier (npm) | from 8.10.1, before 8.10.2 | 8.10.2 |
| eslint-config-prettier (npm) | from 9.1.1, before 9.1.2 | 9.1.2 |
| eslint-config-prettier (npm) | from 10.1.6, before 10.1.8 | 10.1.8 |
| eslint-plugin-prettier (npm) | from 4.2.2, before 4.2.4 | 4.2.4 |
| synckit (npm) | from 0.11.9, before 0.11.10 | 0.11.10 |
| @pkgr/core (npm) | from 0.2.8, before 0.2.9 | 0.2.9 |
| napi-postinstall (npm) | from 0.3.1, before 0.3.2 | 0.3.2 |
| got-fetch (npm) | from 5.1.11, before 6.0.0 | 6.0.0 |
Package versions from GHSA-f29h-pxvx-f335.
Exploitation
| In CISA KEV since | 22 Jan 2026 |
|---|---|
| Due date for US federal agencies | 12 Feb 2026 |
| Used in ransomware campaigns | Unknown |
| Required action | Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. |
Severity
| CVSS 3.1 | 7.5 highCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:NScored by the CNA ([email protected]) |
|---|---|
| Weakness | CWE-506 |
References
- CVE-2025-54313 on NVD
- CVE-2025-54313 in the CISA KEV catalog
- https://www.npmjs.com/package/eslint-config-prettier?activeTab=versions (cited by CISA)
- https://github.com/prettier/eslint-config-prettier/issues/339#issuecomment-3090304490 (cited by CISA)
- CVE-2025-54313 on OSV
- https://github.com/prettier/eslint-config-prettier/issues/339 Issue Tracking
- https://news.ycombinator.com/item?id=44608811 Issue Tracking
- https://news.ycombinator.com/item?id=44609732 Issue Tracking
- https://socket.dev/blog/npm-phishing-campaign-leads-to-prettier-tooling-packages-compromise Third Party Advisory
- https://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware/ Exploit, Third Party Advisory
- https://www.npmjs.com/package/eslint-config-prettier?activeTab=versions Product
- https://www.stepsecurity.io/blog/supply-chain-security-alert-eslint-config-prettier-package-shows-signs-of-compromise Exploit, Third Party Advisory
- https://github.com/community-scripts/ProxmoxVE/discussions/6115 Third Party Advisory
- https://www.endorlabs.com/learn/cve-2025-54313-eslint-config-prettier-compromise----high-severity-but-windows-only Third Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-54313 US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.