# CVE-2025-54313: Prettier eslint-config-prettier Embedded Malicious Code Vulnerability

> CVE-2025-54313: Prettier eslint-config-prettier Embedded Malicious Code Vulnerability. CVSS 7.5 (CVSS 3.1), in CISA KEV.

Canonical: https://rewindex.com/cve/CVE-2025-54313
Last updated: 2026-06-17T09:39:49Z

- Published: 2025-07-19 00:00 UTC · Updated: 2026-06-17 09:39 UTC · Assigner: mitre
- CVSS: 7.5 (CVSS 3.1) · Severity: High · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N
- EPSS: 5.1%, 92th percentile (scored 2026-10-25)
- CISA KEV: yes, added 2026-01-22, federal due date 2026-02-12, ransomware use: Unknown
- CWE: CWE-506

## 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 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.

## Affected vendors and products

- prettier: eslint-config-prettier

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-54313)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-54313)
- [https://github.com/prettier/eslint-config-prettier/issues/339](https://github.com/prettier/eslint-config-prettier/issues/339)
- [https://news.ycombinator.com/item?id=44608811](https://news.ycombinator.com/item?id=44608811)
- [https://news.ycombinator.com/item?id=44609732](https://news.ycombinator.com/item?id=44609732)
- [https://socket.dev/blog/npm-phishing-campaign-leads-to-prettier-tooling-packages-compromise](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.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.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://www.stepsecurity.io/blog/supply-chain-security-alert-eslint-config-prettier-package-shows-signs-of-compromise)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-54313 · Markdown: https://rewindex.com/cve/CVE-2025-54313.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-54313 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:15:53.743Z
