# CVE-2025-54313: eslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core, napi-postinstall have embedded malicious code

- Severity: High 7.5 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N`
- Known to be exploited: yes. In CISA's catalogue since 2026-01-22. Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- Likelihood of exploitation in the next 30 days (EPSS): 5.13%, higher than 92% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-07-19T00:00:00.000Z
- Modified: 2026-06-17T09:39:49.897Z
- Also known as: GHSA-f29h-pxvx-f335
- Weaknesses: CWE-506
- SSVC (CISA-ADP): exploitation active, automatable no, technical impact partial
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- prettier eslint-config-prettier: 8.10.1; 9.1.1; 10.1.6; 10.1.7
- eslint-config-prettier (npm): from 8.10.1 before 8.10.2; from 9.1.1 before 9.1.2; from 10.1.6 before 10.1.8
- eslint-plugin-prettier (npm): from 4.2.2 before 4.2.4
- synckit (npm): from 0.11.9 before 0.11.10
- @pkgr/core (npm): from 0.2.8 before 0.2.9
- napi-postinstall (npm): from 0.3.1 before 0.3.2
- got-fetch (npm): from 5.1.11 before 6.0.0
- prettier eslint-plugin-prettier: 4.2.2; 4.2.3
- un-ts synckit: 0.11.9
- un-ts pkgr/core: 0.2.8
- alexghr got-fetch: 5.1.1; 5.1.2
- un-ts napi-postinstall: 0.3.1
- homarr homarr: from 1.29.0 before 1.30.0

## Every score

- mitre: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N`

## References

- <https://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware/> (exploit, third-party-advisory)
- <https://www.stepsecurity.io/blog/supply-chain-security-alert-eslint-config-prettier-package-shows-signs-of-compromise> (exploit, third-party-advisory, web)
- <https://socket.dev/blog/npm-phishing-campaign-leads-to-prettier-tooling-packages-compromise> (third-party-advisory, web)
- <https://github.com/prettier/eslint-config-prettier/issues/339> (issue-tracking, web)
- <https://www.npmjs.com/package/eslint-config-prettier?activeTab=versions> (kev, product, web)
- <https://news.ycombinator.com/item?id=44609732> (issue-tracking, web)
- <https://news.ycombinator.com/item?id=44608811> (issue-tracking, 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> (government-resource, us-government-resource, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54313> (advisory, kev)
- <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://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware> (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)
- <https://github.com/prettier/eslint-config-prettier/issues/339#issuecomment-3090304490> (kev)

## Sources

- CVE List: [CVE-2025-54313](https://www.cve.org/CVERecord?id=CVE-2025-54313), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-f29h-pxvx-f335](https://github.com/advisories/GHSA-f29h-pxvx-f335), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2025-54313](https://nvd.nist.gov/vuln/detail/CVE-2025-54313), Public domain, modified 2026-06-17
- CISA KEV: [CVE-2025-54313](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2025-54313), CC0-1.0, modified 2026-01-22

---

Page: https://cve.day/CVE-2025-54313 · Whole record: https://cve.day/CVE-2025-54313.json · Rebuilt by cve.day 2026-11-25T22:59:01.449Z
