CVE-2025-54313
CVE-2025-54313 is a high-severity vulnerability in Prettier Eslint-config-prettier with a CVSS 3.x base score of 7.5. It is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, confirming it has been exploited in the wild (added 2026-01-22). The underlying weakness is classified as CWE-506.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- EPSS exploit prediction: 4% (90th percentile)
- Actively exploited: Yes — listed in CISA KEV (added 2026-01-22)
- EU (EUVD) id: EUVD-2025-21972
- EU exploitation: Flagged exploited in the ENISA EU Vulnerability Database (since 2026-01-22)
- Weakness: CWE-506
- Affected product: Prettier Eslint-config-prettier
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2025-54313?
- 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.
- How severe is CVE-2025-54313?
- CVE-2025-54313 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is low, integrity high, and availability none.
- Is CVE-2025-54313 being actively exploited?
- Yes. CVE-2025-54313 is on CISA's Known Exploited Vulnerabilities (KEV) catalog, added on 2026-01-22, which means active exploitation has been confirmed. It should be prioritised for remediation.
- What products are affected by CVE-2025-54313?
- CVE-2025-54313 primarily affects Prettier Eslint-config-prettier. In total, 12 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2025-54313?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Because this CVE is known to be actively exploited, treat remediation as urgent — CISA KEV typically sets a short remediation deadline.
- Does CVE-2025-54313 have an EU (EUVD) identifier?
- Yes. CVE-2025-54313 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-21972. It is also flagged as exploited in the EUVD (since 2026-01-22).
- When was CVE-2025-54313 published?
- CVE-2025-54313 was published on 2025-07-19 and last updated on 2026-06-17.
References
- 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.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware/
- https://www.npmjs.com/package/eslint-config-prettier?activeTab=versions
- 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://www.endorlabs.com/learn/cve-2025-54313-eslint-config-prettier-compromise----high-severity-but-windows-only
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-54313
Affected products (12)
- cpe:2.3:a:prettier:eslint-config-prettier:8.10.1:*:*:*:*:node.js:*:*
- cpe:2.3:a:prettier:eslint-config-prettier:9.1.1:*:*:*:*:node.js:*:*
- cpe:2.3:a:prettier:eslint-config-prettier:10.1.6:*:*:*:*:node.js:*:*
- cpe:2.3:a:prettier:eslint-config-prettier:10.1.7:*:*:*:*:node.js:*:*
- cpe:2.3:a:prettier:eslint-plugin-prettier:4.2.2:*:*:*:*:node.js:*:*
- cpe:2.3:a:prettier:eslint-plugin-prettier:4.2.3:*:*:*:*:node.js:*:*
- cpe:2.3:a:un-ts:synckit:0.11.9:*:*:*:*:node.js:*:*
- cpe:2.3:a:un-ts:pkgr\/core:0.2.8:*:*:*:*:node.js:*:*
- cpe:2.3:a:alexghr:got-fetch:5.1.1:*:*:*:*:node.js:*:*
- cpe:2.3:a:alexghr:got-fetch:5.1.2:*:*:*:*:node.js:*:*
- cpe:2.3:a:un-ts:napi-postinstall:0.3.1:*:*:*:*:node.js:*:*
- cpe:2.3:a:homarr:homarr:*:*:*:*:*:*:*:*
Other CWE-506 vulnerabilities
- CVE-2026-28353 — Critical (CVSS 10.0): Trivy Vulnerability Scanner is a VS Code extension that helps find vulnerabilities. In Trivy VSCode Extension version…
- CVE-2024-3094 — Critical (CVSS 10.0): Malicious code was discovered in the upstream tarballs of xz, starting with version 5.6.0. Through a series of…
- CVE-2026-48027 — Critical (CVSS 9.8): Nx Console is the user interface for Nx & Lerna. On 19 May 2026, a malicious version of Nx Console, 18.95.0, was…
- CVE-2026-8398 — Critical (CVSS 9.8): A supply chain attack compromised the official installation packages of DAEMON Tools Lite (Windows versions 12.5.0.2421…
- CVE-2026-44484 — Critical (CVSS 9.8): PyTorch Lightning is a deep learning framework to pretrain and finetune AI models. Versions 2.6.2 and 2.6.2 have…
- CVE-2026-6443 — Critical (CVSS 9.8): All plugins by Essentialplugin for WordPress are vulnerable to an injected backdoor in various versions. This is due to…