eslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core, napi-postinstall have embedded malicious code
CISA confirms exploitation of this vulnerability in real attacks. Prioritise checking whether your application is affected. CISA KEV · CC0 1.0
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | eslint-config-prettier | >= 8.10.1, < 8.10.2, >= 9.1.1, < 9.1.2, >= 10.1.6, < 10.1.8 | 8.10.2, 9.1.2, 10.1.8 |
| npm package | eslint-plugin-prettier | >= 4.2.2, < 4.2.4 | 4.2.4 |
| npm package | got-fetch | >= 5.1.11, < 6.0.0 | 6.0.0 |
| npm package | napi-postinstall | >= 0.3.1, < 0.3.2 | 0.3.2 |
| npm package | @pkgr/core | >= 0.2.8, < 0.2.9 | 0.2.9 |
| npm package | synckit | >= 0.11.9, < 0.11.10 | 0.11.10 |
References
- 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/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
- https://www.stepsecurity.io/blog/supply-chain-security-alert-eslint-config-prettier-package-shows-signs-of-compromise
- https://www.npmjs.com/package/eslint-config-prettier?activeTab=versions
- 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://socket.dev/blog/npm-phishing-campaign-leads-to-prettier-tooling-packages-compromise
- https://secure.software/npm/packages/got-fetch
- https://news.ycombinator.com/item?id=44609732
- https://news.ycombinator.com/item?id=44608811
- https://github.com/prettier/eslint-config-prettier
- https://github.com/community-scripts/ProxmoxVE/discussions/6115
- https://checkmarx.com/zero-post/supply-chain-phishing-campaign-drops-more-malware-into-npm-got-fetch-5-1
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N- Weakness (CWE)
CWE-506- Platform
- npm
- Package
eslint-config-prettier, eslint-plugin-prettier, got-fetch- Disclosed
- 19.07.2025
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-f29h-pxvx-f335 - CC BY 4.0
Vulnerability history: got-fetch
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.