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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N`
- **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
- **Exploited in the wild:** Yes: in CISA KEV since 2026-01-22; federal due date 2026-02-12
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.76% (percentile 78, 2026-11-26)
- **CWE:** CWE-506
- **Aliases:** GHSA-f29h-pxvx-f335
- **Published:** 2025-07-19T00:00:00.000Z
- **Modified:** 2026-06-17T09:39:49.897Z

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

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

- npm `eslint-config-prettier`: affected \>= 8.10.1, \< 8.10.2; fixed 8.10.2, 9.1.2, 10.1.8 (osv)
- npm `eslint-plugin-prettier`: affected \>= 4.2.2, \< 4.2.4; fixed 4.2.4 (osv)
- npm `synckit`: affected \>= 0.11.9, \< 0.11.10; fixed 0.11.10 (osv)
- npm `@pkgr/core`: affected \>= 0.2.8, \< 0.2.9; fixed 0.2.9 (osv)
- npm `napi-postinstall`: affected \>= 0.3.1, \< 0.3.2; fixed 0.3.2 (osv)
- npm `got-fetch`: affected \>= 5.1.11, \< 6.0.0; fixed 6.0.0 (osv)
- eslint-config-prettier: 8.10.1; 9.1.1; 10.1.6; 10.1.7 (cvelist)

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

## 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 a coding agent:

```text
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.
```

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

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-54313>
- patch: <https://github.com/prettier/eslint-config-prettier/commit/9b0b0a47ec28a7a83cf65e8436a8776910379385>
- patch: <https://github.com/prettier/eslint-plugin-prettier/commit/ec39dd4400f10c52d10cd991c10fa8de51ceb854>
- patch: <https://github.com/un-ts/napi-postinstall/commit/38b4e95cf554e2549b9e1e2c4ff6bff4da9a65f9>
- patch: <https://github.com/un-ts/pkgr/commit/e1420c99e44d8a2ae949381f9fbe1af5ba9cb1dd>
- patch: <https://github.com/un-ts/synckit/commit/8f2ee32d4f75736a1c8d7e1101190a71e48909e4>
- exploit: <https://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware/>
- exploit: <https://www.stepsecurity.io/blog/supply-chain-security-alert-eslint-config-prettier-package-shows-signs-of-compromise>
- other: <https://socket.dev/blog/npm-phishing-campaign-leads-to-prettier-tooling-packages-compromise>
- other: <https://github.com/prettier/eslint-config-prettier/issues/339>
- other: <https://www.npmjs.com/package/eslint-config-prettier?activeTab=versions>
- other: <https://news.ycombinator.com/item?id=44609732>
- other: <https://news.ycombinator.com/item?id=44608811>
- other: <https://github.com/community-scripts/ProxmoxVE/discussions/6115>
- other: <https://www.endorlabs.com/learn/cve-2025-54313-eslint-config-prettier-compromise----high-severity-but-windows-only>
- other: <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-54313>
- other: <https://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware>
- other: <https://secure.software/npm/packages/got-fetch>
- other: <https://github.com/prettier/eslint-config-prettier>
- other: <https://checkmarx.com/zero-post/supply-chain-phishing-campaign-drops-more-malware-into-npm-got-fetch-5-1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-54313>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-f29h-pxvx-f335> (license: <https://creativecommons.org/licenses/by/4.0/>)
- CISA KEV: CISA Known Exploited Vulnerabilities Catalog <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>

HTML: <https://flawdb.com/CVE-2025-54313> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-54313>
