CVE-2025-54313
JSON

7.5highExploited

eslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core, napi-postinstall have embedded malicious code

Severity
7.5high CVSS:3.1 by mitre
Exploit likelihood
5.13% (higher than 92% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-f29h-pxvx-f335

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

Product or packageVersionsReported by
prettier eslint-config-prettier8.10.1, 9.1.1, 10.1.6, 10.1.7CVE List, NVD, CISA KEV
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.8GitHub Advisory Database
eslint-plugin-prettier (npm)from 4.2.2 before 4.2.4GitHub Advisory Database
synckit (npm)from 0.11.9 before 0.11.10GitHub Advisory Database
@pkgr/core (npm)from 0.2.8 before 0.2.9GitHub Advisory Database
napi-postinstall (npm)from 0.3.1 before 0.3.2GitHub Advisory Database
got-fetch (npm)from 5.1.11 before 6.0.0GitHub Advisory Database
prettier eslint-plugin-prettier4.2.2, 4.2.3NVD
un-ts synckit0.11.9NVD
un-ts pkgr/core0.2.8NVD
alexghr got-fetch5.1.1, 5.1.2NVD
un-ts napi-postinstall0.3.1NVD

All scores

mitre7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N

Classification

CWE-506

SSVC (CISA-ADP): exploitation active, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

eslint-config-prettier 8.10.1, 9.1.1, 10.1.6 y 10.1.7 contiene código malicioso que compromete la cadena de suministro. Al instalar un paquete afectado, se ejecuta un archivo install.js que lanza el malware node-gyp.dll en Windows.

CISA KEV

Prettier eslint-config-prettier contains an embedded malicious code vulnerability. Installing an affected package executes an install.js file that launches the node-gyp.dll malware on Windows.

References

https://socket.dev/blog/npm-phishing-campaign-leads-to-prettier-tooling-packages-compromisethird-party-advisory, web
https://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware/exploit, third-party-advisory
https://github.com/prettier/eslint-config-prettier/issues/339issue-tracking, web
https://www.npmjs.com/package/eslint-config-prettier?activeTab=versionskev, product, web
https://www.stepsecurity.io/blog/supply-chain-security-alert-eslint-config-prettier-package-shows-signs-of-compromiseexploit, third-party-advisory, web
https://news.ycombinator.com/item?id=44609732issue-tracking, web
https://news.ycombinator.com/item?id=44608811issue-tracking, web
https://github.com/community-scripts/ProxmoxVE/discussions/6115third-party-advisory, web
https://www.endorlabs.com/learn/cve-2025-54313-eslint-config-prettier-compromise----high-severity-but-windows-onlythird-party-advisory, web
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-54313government-resource, us-government-resource, web
https://nvd.nist.gov/vuln/detail/CVE-2025-54313advisory, kev
https://github.com/prettier/eslint-config-prettier/commit/9b0b0a47ec28a7a83cf65e8436a8776910379385web

Sources

SourceRecordLicence
CVE ListCVE-2025-54313 changed 2026-02-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-f29h-pxvx-f335 changed 2026-02-03CC-BY-4.0
NVDCVE-2025-54313 changed 2026-06-17Public domain
CISA KEVCVE-2025-54313 changed 2026-01-22CC0-1.0