CVE-2025-54313
KEV PoC ×2massSupply chain malware embedded in npm package eslint-config-prettier
CISA: Prettier eslint-config-prettier Embedded Malicious Code Vulnerability
CVE-2025-54313 is a supply chain compromise (CWE-506) of the widely used npm package eslint-config-prettier, in which versions 8.10.1, 9.1.1, 10.1.6, and 10.1.7 contained embedded malicious code, reportedly injected after the maintainer's npm account was hijacked via a phishing campaign. The malicious code triggers automatically: installing any of these versions executes a bundled install.js file that launches the node-gyp.dll malware on Windows systems. An attacker gains code execution with the privileges of the installing user or CI job, carrying high integrity impact per the CVSS score (ability to tamper with code, build outputs, and credentials); public write-ups describe the campaign as dropping malware via hijacked npm linter packages. Affected parties are developers, build/CI pipelines, and downstream projects that installed the compromised versions; CISA identifies the affected product as Prettier's eslint-config-prettier, with related npm packages (eslint-plugin-prettier, synckit, pkgr/core, got-fetch, napi-postinstall, homarr) listed as associated products. The flaw is being actively exploited: CISA added it to the Known Exploited Vulnerabilities catalog on 2026-01-22, and EPSS estimates a 4.3% probability of exploitation in the next 30 days (91st percentile).
What to do: Stop using the compromised versions (8.10.1, 9.1.1, 10.1.6, 10.1.7): reinstall a clean release and verify lockfiles and caches do not resolve to the malicious versions. Check any Windows developer machine or CI runner that installed them for a malicious node-gyp.dll payload and rotate credentials and tokens from those environments. Federal agencies must follow the KEV required action: apply vendor mitigations or BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
| prettier eslint-config-prettier | 8.10.1, 9.1.1, 10.1.6, 10.1.7 (embedded malicious code) |
| prettier eslint-plugin-prettier | — |
| un-ts synckit | — |
| un-ts pkgr/core | — |
| un-ts napi-postinstall | — |
| alexghr got-fetch | — |
| homarr | — |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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
- Prettier eslint-config-prettier
- 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.
- Due date
- Ransomware use
- Unknown