ZeroHour

CVE-2025-54313

KEV PoC ×2mass

Supply chain malware embedded in npm package eslint-config-prettier

CISA: Prettier eslint-config-prettier Embedded Malicious Code Vulnerability

CVSS 3.1
7.5 high
EPSS
4%p91
Published
()
KEV added
AI analysis

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.

Affected
prettier eslint-config-prettier8.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
Estimated exposure
masson the order of 10-20 million weekly npm downloads of eslint-config-prettier; unknown subset installed the 4 compromised versions during the brief compromise… — eslint-config-prettier is among the most-downloaded packages in the ESLint/Prettier ecosystem (tens of millions of weekly npm downloads), so potential exposure spans millions of projects, though actual execution of the malware was limited…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

CISA Known Exploited Vulnerability
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
Vendors
prettierun-tsalexghrhomarr
Products
eslint-config-prettier, eslint-plugin-prettier, synckit, pkgr\/core, got-fetch, napi-postinstall, homarr
Weakness
CWE-506
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N

In the news