CVE-2025-54313
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.
Severity
HIGH
CVSS v3
7.5
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N · source cna
Exploit chance (EPSS)
5.125%
chance of exploitation in the next 30 days
higher than 92.5% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2026-01-22
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-506: Embedded Malicious Code
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Prettier eslint-config-prettier Embedded Malicious Code Vulnerability |
|---|---|
| Vendor / product | Prettier / eslint-config-prettier |
| Date added | 2026-01-22 |
| Federal remediation due date | 2026-02-12 |
| 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. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-01-23 |
Timeline
- 2025-07-19Published by the CNA00:00 UTC
- 2025-07-19GitHub advisory published (GHSA-f29h-pxvx-f335)same day
- 2026-01-22Added to the CISA KEV catalog187 days after publication
- 2026-01-23CISA SSVC decision recorded188 days after publication
Exploit and advisory records
GitHub advisory GHSA-f29h-pxvx-f335, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm @pkgr/core | from 0.2.8 before 0.2.9 | 0.2.9 |
| npm eslint-config-prettier | from 10.1.6 before 10.1.8 | 10.1.8 |
| npm eslint-config-prettier | from 8.10.1 before 8.10.2 | 8.10.2 |
| npm eslint-config-prettier | from 9.1.1 before 9.1.2 | 9.1.2 |
| npm eslint-plugin-prettier | from 4.2.2 before 4.2.4 | 4.2.4 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| prettier eslint-config-prettier | 10.1.6no fix listed10.1.7no fix listed8.10.1no fix listed9.1.1no fix listed | not listednot listednot listednot listed |
| alexghr got-fetch | 5.1.1no fix listed5.1.2no fix listed | not listednot listed |
| homarr homarr | from 1.29.0 before 1.30.0fixed in 1.30.0 | 1.30.0 |
| prettier eslint-plugin-prettier | 4.2.2no fix listed4.2.3no fix listed | not listednot listed |
| un-ts napi-postinstall | 0.3.1no fix listed | not listed |
| un-ts pkgr/core | 0.2.8no fix listed | not listed |
| un-ts synckit | 0.11.9no fix listed | not listed |
References
- https://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware/
- https://www.stepsecurity.io/blog/supply-chain-security-alert-eslint-config-prettier-package-shows-signs-of-compromise
- https://github.com/community-scripts/ProxmoxVE/discussions/6115
- https://github.com/prettier/eslint-config-prettier/issues/339
- https://news.ycombinator.com/item?id=44608811
- https://news.ycombinator.com/item?id=44609732
- https://socket.dev/blog/npm-phishing-campaign-leads-to-prettier-tooling-packages-compromise
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-54313
- https://www.endorlabs.com/learn/cve-2025-54313-eslint-config-prettier-compromise----high-severity-but-windows-only
- https://www.npmjs.com/package/eslint-config-prettier?activeTab=versions
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2025-54313'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2025-54313'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2025-54313'curl 'https://api.contrastcyber.com/cve_products/CVE-2025-54313'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2025-54313'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).