CVE-2025-54313: Prettier eslint-config-prettier Embedded Malicious Code Vulnerability
Prettier eslint-config-prettier contains an embedded malicious code vulnerability. Installing an affected package executes an install.js file that launches the node-gyp.dll malware on Windows.
Why it matters
CISA added CVE-2025-54313 to its Known Exploited Vulnerabilities (KEV) catalog on 2026-01-22 — meaning it is confirmed to be exploited in the wild, not just theoretically risky. US federal agencies had to remediate it by 2026-02-12, and it is a high priority for everyone else too.
How to fix it
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Details
- Affected: Prettier eslint-config-prettier
- Added to CISA KEV: 2026-01-22
- Federal remediation due: 2026-02-12
- Weakness: CWE-506
- EPSS: 5.1% chance of exploitation in the next 30 days, higher than 93% of all CVEs
- Reference: NVD entry for CVE-2025-54313
Affected open-source packages
The GitHub Advisory Database links CVE-2025-54313 to these packages. Each page lists every advisory for the package, the affected versions and the fixed release:
- @pkgr/core npm
- eslint-config-prettier npm
- eslint-plugin-prettier npm
- got-fetch npm
- napi-postinstall npm
- synckit npm
Is CVE-2025-54313 in your fleet?
SkyShield scans your servers, containers and cloud for vulnerable packages and images (Trivy), ranks them by whether they're on CISA KEV and their EPSS exploit probability, and shows the fix per machine. Start free.