CVE-2025-54313
HIGH 7.5CVSS 3.1known exploitedeslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core, napi-postinstall have embedded malicious code
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.
- Published
- 19 Jul 2025
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-506
- Also known as
- GHSA-f29h-pxvx-f335
- Sources
- NVDJSONCISA KEVJSONOSV GHSA-f29h-pxvx-f335JSON
In CISA's Known Exploited Vulnerabilities catalog since 22 Jan 2026; US federal agencies must fix it by 12 Feb 2026.
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cve@mitre.org (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | prettier | eslint-config-prettiercpe:2.3:a:prettier:eslint-config-prettier:8.10.1:*:*:*:*:node.js:*:* |
= 8.10.1 | |
| NVD | prettier | eslint-config-prettiercpe:2.3:a:prettier:eslint-config-prettier:9.1.1:*:*:*:*:node.js:*:* |
= 9.1.1 | |
| NVD | prettier | eslint-config-prettiercpe:2.3:a:prettier:eslint-config-prettier:10.1.6:*:*:*:*:node.js:*:* |
= 10.1.6 | |
| NVD | prettier | eslint-config-prettiercpe:2.3:a:prettier:eslint-config-prettier:10.1.7:*:*:*:*:node.js:*:* |
= 10.1.7 | |
| NVD | prettier | eslint-plugin-prettiercpe:2.3:a:prettier:eslint-plugin-prettier:4.2.2:*:*:*:*:node.js:*:* |
= 4.2.2 | |
| NVD | prettier | eslint-plugin-prettiercpe:2.3:a:prettier:eslint-plugin-prettier:4.2.3:*:*:*:*:node.js:*:* |
= 4.2.3 | |
| NVD | un-ts | synckitcpe:2.3:a:un-ts:synckit:0.11.9:*:*:*:*:node.js:*:* |
= 0.11.9 | |
| NVD | un-ts | pkgr/corecpe:2.3:a:un-ts:pkgr\/core:0.2.8:*:*:*:*:node.js:*:* |
= 0.2.8 | |
| NVD | alexghr | got-fetchcpe:2.3:a:alexghr:got-fetch:5.1.1:*:*:*:*:node.js:*:* |
= 5.1.1 | |
| NVD | alexghr | got-fetchcpe:2.3:a:alexghr:got-fetch:5.1.2:*:*:*:*:node.js:*:* |
= 5.1.2 | |
| NVD | un-ts | napi-postinstallcpe:2.3:a:un-ts:napi-postinstall:0.3.1:*:*:*:*:node.js:*:* |
= 0.3.1 | |
| NVD | homarr | homarrcpe:2.3:a:homarr:homarr:*:*:*:*:*:*:*:* |
>= 1.29.0, < 1.30.0 | 1.30.0 |
| OSV | npm | eslint-config-prettier | >= 8.10.1, < 8.10.2 | 8.10.2 |
| OSV | npm | eslint-config-prettier | >= 9.1.1, < 9.1.2 | 9.1.2 |
| OSV | npm | eslint-config-prettier | >= 10.1.6, < 10.1.8 | 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 |
References
- https://github.com/prettier/eslint-config-prettier/issues/339 · Issue Tracking, WEB
- https://news.ycombinator.com/item?id=44608811 · Issue Tracking, WEB
- https://news.ycombinator.com/item?id=44609732 · Issue Tracking, WEB
- https://socket.dev/blog/npm-phishing-campaign-leads-to-prettier-tooling-packages-compromise · Third Party Advisory, WEB
- https://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware/ · Exploit, Third Party Advisory, WEB
- https://www.npmjs.com/package/eslint-config-prettier?activeTab=versions · Product, WEB
- https://www.stepsecurity.io/blog/supply-chain-security-alert-eslint-config-prettier-package-shows-signs-of-compromise · Exploit, Third Party Advisory, WEB
- https://github.com/community-scripts/ProxmoxVE/discussions/6115 · Third Party Advisory, WEB
- https://www.endorlabs.com/learn/cve-2025-54313-eslint-config-prettier-compromise----high-severity-but-windows-only · Third Party Advisory, WEB
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-54313 · US Government Resource, WEB
- https://github.com/prettier/eslint-config-prettier/issues/339#issuecomment-3090304490
- https://nvd.nist.gov/vuln/detail/CVE-2025-54313 · ADVISORY
- https://github.com/prettier/eslint-config-prettier/commit/9b0b0a47ec28a7a83cf65e8436a8776910379385 · WEB
- https://github.com/prettier/eslint-plugin-prettier/commit/ec39dd4400f10c52d10cd991c10fa8de51ceb854 · WEB
- https://github.com/un-ts/napi-postinstall/commit/38b4e95cf554e2549b9e1e2c4ff6bff4da9a65f9 · WEB
- https://github.com/un-ts/pkgr/commit/e1420c99e44d8a2ae949381f9fbe1af5ba9cb1dd · WEB
- https://github.com/un-ts/synckit/commit/8f2ee32d4f75736a1c8d7e1101190a71e48909e4 · WEB
- https://secure.software/npm/packages/got-fetch · WEB
- https://github.com/prettier/eslint-config-prettier · PACKAGE
- https://checkmarx.com/zero-post/supply-chain-phishing-campaign-drops-more-malware-into-npm-got-fetch-5-1 · WEB
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 19 Jul 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 19 Jul 2025)
- 25 Nov 2026 20:10 UTC · CISA KEV: first stored (published 22 Jan 2026)
- 22 Jan 2026 00:00 UTC · Listed as known exploited