Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-54313

HIGH 7.5ExploitedPoCEPSS 78%

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
Published
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 / productAffectedFixedSource
npm eslint-config-prettier>= 8.10.1, < 8.10.28.10.2, 9.1.2, 10.1.8osv
npm eslint-plugin-prettier>= 4.2.2, < 4.2.44.2.4osv
npm synckit>= 0.11.9, < 0.11.100.11.10osv
npm @pkgr/core>= 0.2.8, < 0.2.90.2.9osv
npm napi-postinstall>= 0.3.1, < 0.3.20.3.2osv
npm got-fetch>= 5.1.11, < 6.0.06.0.0osv
eslint-config-prettier8.10.1; 9.1.1; 10.1.6; 10.1.7—cvelist

Timeline

  1. 2025-07-19 Published
  2. 2026-01-22 Added to CISA KEV (exploited in the wild)
  3. 2026-02-12 CISA remediation due date for US federal agencies
  4. 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

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.

Sponsors