CVE-2025-54313
eslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core, napi-postinstall have embedded malicious code
Also known as GHSA-f29h-pxvx-f335
Mitigation
- Upgrade eslint-config-prettier to one of 8.10.2, 9.1.2, 10.1.8 (or later in the same release line).
- Upgrade eslint-plugin-prettier to 4.2.4 or later.
- Upgrade synckit to 0.11.10 or later.
- Upgrade @pkgr/core to 0.2.9 or later.
- Upgrade napi-postinstall to 0.3.2 or later.
- Upgrade got-fetch to 6.0.0 or later.
Who should check
- Projects that depend on npm package eslint-config-prettier (>= 8.10.1, < 8.10.2)
- Projects that depend on npm package eslint-plugin-prettier (>= 4.2.2, < 4.2.4)
- Projects that depend on npm package synckit (>= 0.11.9, < 0.11.10)
- Projects that depend on npm package @pkgr/core (>= 0.2.8, < 0.2.9)
- Projects that depend on npm package napi-postinstall (>= 0.3.1, < 0.3.2)
- Projects that depend on npm package got-fetch (>= 5.1.11, < 6.0.0)
- Anyone running eslint-config-prettier 8.10.1; 9.1.1; 10.1.6; 10.1.7
Vulnerability facts
- Affected
- eslint-config-prettier >= 8.10.1, < 8.10.2; eslint-plugin-prettier >= 4.2.2, < 4.2.4; synckit >= 0.11.9, < 0.11.10; @pkgr/core >= 0.2.8, < 0.2.9; napi-postinstall >= 0.3.1, < 0.3.2; got-fetch >= 5.1.11, < 6.0.0
- Fixed in
- 8.10.2, 9.1.2, 10.1.8, 4.2.4, 0.11.10, 0.2.9, 0.3.2, 6.0.0
- Exploited in the wild
- Yes: in CISA KEV since 2026-01-22; federal due date 2026-02-12
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: Low
- Integrity impact: High
- Availability impact: None
- EPSS
- 1.76% chance of exploitation in 30 days (percentile 78, 2026-11-26)
- CWE
- CWE-506
- 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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm eslint-config-prettier | >= 8.10.1, < 8.10.2 | 8.10.2, 9.1.2, 10.1.8 | osv |
| npm eslint-plugin-prettier | >= 4.2.2, < 4.2.4 | 4.2.4 | osv |
| npm synckit | >= 0.11.9, < 0.11.10 | 0.11.10 | osv |
| npm @pkgr/core | >= 0.2.8, < 0.2.9 | 0.2.9 | osv |
| npm napi-postinstall | >= 0.3.1, < 0.3.2 | 0.3.2 | osv |
| npm got-fetch | >= 5.1.11, < 6.0.0 | 6.0.0 | osv |
| eslint-config-prettier | 8.10.1; 9.1.1; 10.1.6; 10.1.7 | — | cvelist |
Timeline
- 2025-07-19 Published
- 2026-01-22 Added to CISA KEV (exploited in the wild)
- 2026-02-12 CISA remediation due date for US federal agencies
- 2026-06-17 Last modified
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-54313. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-54313.md Affected: eslint-config-prettier >= 8.10.1, < 8.10.2; eslint-plugin-prettier >= 4.2.2, < 4.2.4; synckit >= 0.11.9, < 0.11.10; @pkgr/core >= 0.2.8, < 0.2.9; napi-postinstall >= 0.3.1, < 0.3.2; got-fetch >= 5.1.11, < 6.0.0 Fixed in: 8.10.2, 9.1.2, 10.1.8, 4.2.4, 0.11.10, 0.2.9, 0.3.2, 6.0.0 Steps: 1. Search this machine and project for eslint-config-prettier (npm), eslint-plugin-prettier (npm), synckit (npm), @pkgr/core (npm), napi-postinstall (npm), got-fetch (npm): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/prettier/eslint-config-prettier/commit/9b0b0a47ec28a7a83cf65e8436a8776910379385
- https://github.com/prettier/eslint-plugin-prettier/commit/ec39dd4400f10c52d10cd991c10fa8de51ceb854
- https://github.com/un-ts/napi-postinstall/commit/38b4e95cf554e2549b9e1e2c4ff6bff4da9a65f9
- https://github.com/un-ts/pkgr/commit/e1420c99e44d8a2ae949381f9fbe1af5ba9cb1dd
- https://github.com/un-ts/synckit/commit/8f2ee32d4f75736a1c8d7e1101190a71e48909e4
Exploits and PoCs
Other
- https://socket.dev/blog/npm-phishing-campaign-leads-to-prettier-tooling-packages-compromise
- https://github.com/prettier/eslint-config-prettier/issues/339
- https://www.npmjs.com/package/eslint-config-prettier?activeTab=versions
- https://news.ycombinator.com/item?id=44609732
- https://news.ycombinator.com/item?id=44608811
- 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
- https://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware
- https://secure.software/npm/packages/got-fetch
- https://github.com/prettier/eslint-config-prettier
- https://checkmarx.com/zero-post/supply-chain-phishing-campaign-drops-more-malware-into-npm-got-fetch-5-1
FAQ
Is CVE-2025-54313 being exploited?
Yes. CISA lists CVE-2025-54313 in its Known Exploited Vulnerabilities catalog since 2026-01-22, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 1.76% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-54313?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2025-54313?
eslint-config-prettier >= 8.10.1, < 8.10.2; eslint-plugin-prettier >= 4.2.2, < 4.2.4; synckit >= 0.11.9, < 0.11.10; @pkgr/core >= 0.2.8, < 0.2.9; napi-postinstall >= 0.3.1, < 0.3.2; got-fetch >= 5.1.11, < 6.0.0.
Is there a fix for CVE-2025-54313?
Yes. Fixed in 8.10.2, 9.1.2, 10.1.8, 4.2.4, 0.11.10, 0.2.9, 0.3.2, 6.0.0. Upgrade eslint-config-prettier to one of 8.10.2, 9.1.2, 10.1.8 (or later in the same release line). Upgrade eslint-plugin-prettier to 4.2.4 or later. Upgrade synckit to 0.11.10 or later. Upgrade @pkgr/core to 0.2.9 or later. Upgrade napi-postinstall to 0.3.2 or later. Upgrade got-fetch to 6.0.0 or later.
How do I check if I'm affected by CVE-2025-54313?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.