Vulnerabilities / CVE-2025-54313
CVE-2025-54313
Published 2025-07-19 · Analyzed
CVE-2025-54313
Prettier eslint-config-prettier Embedded Malicious Code Vulnerability
Exploited in the wild: CISA added it to the Known Exploited Vulnerabilities catalog on 2026-01-22, with a fix-by date of 2026-02-12. Patch it first.
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
7.5 HIGH
CVSS 3.1 · CNA · mitre.org
CVSS 3.1 · CNA · mitre.org
5.1%
chance of exploitation in the next 30 days (EPSS; higher than 92% of CVEs)
chance of exploitation in the next 30 days (EPSS; higher than 92% of CVEs)
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.
Scores
Affected packages and fixed versions
| Package | Ecosystem | Fixed in |
|---|---|---|
| eslint-config-prettier | npm | 8.10.2, 9.1.2, 10.1.8 |
| eslint-plugin-prettier | npm | 4.2.4 |
| synckit | npm | 0.11.10 |
| @pkgr/core | npm | 0.2.9 |
| napi-postinstall | npm | 0.3.2 |
| got-fetch | npm | 6.0.0 |
Affected products
- prettier eslint-config-prettier: 8.10.1; 9.1.1; 10.1.6; 10.1.7
- prettier eslint-plugin-prettier: 4.2.2; 4.2.3
- un-ts synckit: 0.11.9
- un-ts pkgr\/core: 0.2.8
- alexghr got-fetch: 5.1.1; 5.1.2
- un-ts napi-postinstall: 0.3.1
- homarr homarr: ≥ 1.29.0, < 1.30.0
Weakness: CWE-506
Also known as: GHSA-f29h-pxvx-f335
10 references (advisories, patches, write-ups)
- 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: NVD, CVE.org, OSV.dev, FIRST EPSS. Missing ones did not answer or have no record yet.