Home / prettier / eslint-config-prettier / CVE-2025-54313
CVE-2025-54313: is it exploited, and which versions of eslint-config-prettier are affected and fixed?
CVE-2025-54313 is an embedded Malicious Code vulnerability in eslint-config-prettier, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on January 22, 2026, with a federal due date of February 12, 2026. Affected: eslint-config-prettier from 8.10.1 before 8.10.2, eslint-config-prettier from 9.1.1 before 9.1.2, eslint-config-prettier from 10.1.6 before 10.1.8 and 5 more (GitHub advisory GHSA-f29h-pxvx-f335). Fixed in 8.10.2, 9.1.2, 10.1.8, 4.2.4 and 2 more (GitHub advisory GHSA-f29h-pxvx-f335). Severity: High (7.5, CVSS 3.1, from mitre).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:18 UTC.
What is CVE-2025-54313?
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.
From the CVE record by mitre, last updated February 26, 2026, 17:50 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| prettier | eslint-config-prettier | 8.10.1 9.1.1 10.1.6 10.1.7 |
As the CVE record by mitre states it, last updated February 26, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | eslint-config-prettier | >= 8.10.1, < 8.10.2 | 8.10.2 | GHSA-f29h-pxvx-f335 |
| npm | eslint-config-prettier | >= 9.1.1, < 9.1.2 | 9.1.2 | GHSA-f29h-pxvx-f335 |
| npm | eslint-config-prettier | >= 10.1.6, < 10.1.8 | 10.1.8 | GHSA-f29h-pxvx-f335 |
| npm | eslint-plugin-prettier | >= 4.2.2, < 4.2.4 | 4.2.4 | GHSA-f29h-pxvx-f335 |
| npm | synckit | >= 0.11.9, < 0.11.10 | 0.11.10 | GHSA-f29h-pxvx-f335 |
| npm | @pkgr/core | >= 0.2.8, < 0.2.9 | 0.2.9 | GHSA-f29h-pxvx-f335 |
| npm | napi-postinstall | >= 0.3.1, < 0.3.2 | 0.3.2 | GHSA-f29h-pxvx-f335 |
| npm | got-fetch | >= 5.1.11, < 6.0.0 | 6.0.0 | GHSA-f29h-pxvx-f335 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated January 22, 2026. Summary: eslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core, napi-postinstall have embedded malicious code.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| prettier | eslint-config-prettier | 8.10.1 | application |
| prettier | eslint-config-prettier | 9.1.1 | application |
| prettier | eslint-config-prettier | 10.1.6 | application |
| prettier | eslint-config-prettier | 10.1.7 | application |
| prettier | eslint-plugin-prettier | 4.2.2 | application |
| prettier | eslint-plugin-prettier | 4.2.3 | application |
| un-ts | synckit | 0.11.9 | application |
| un-ts | pkgr\/core | 0.2.8 | application |
| alexghr | got-fetch | 5.1.1 | application |
| alexghr | got-fetch | 5.1.2 | application |
| un-ts | napi-postinstall | 0.3.1 | application |
| homarr | homarr | from 1.29.0 before 1.30.0 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 09:39 UTC.
How severe is CVE-2025-54313?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N | mitre |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-54313 exploited in the wild?
- CISA KEV
- Listed as Prettier eslint-config-prettier Embedded Malicious Code Vulnerability, added January 22, 2026; federal agencies must act by February 12, 2026
- Required action
- Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- Ransomware use
- Unknown
- CISA's summary
- 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.
- CISA SSVC
- Exploitation: active; automatable: no; technical impact: partial (CISA ADP, January 23, 2026)
- EPSS
- 5.12% probability of exploitation activity in the next 30 days, percentile 92.6 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-506 Embedded Malicious Code
Where are the vendor advisories and references?
- https://socket.dev/blog/npm-phishing-campaign-leads-to-prettier-tooling-packages-compromise
- https://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware/
- https://github.com/prettier/eslint-config-prettier/issues/339
- https://www.npmjs.com/package/eslint-config-prettier?activeTab=versions
- https://www.stepsecurity.io/blog/supply-chain-security-alert-eslint-config-prettier-package-shows-signs-of-compromise
- https://news.ycombinator.com/item?id=44609732
- https://news.ycombinator.com/item?id=44608811
- https://github.com/community-scripts/ProxmoxVE/discussions/6115
- https://www.endorlabs.com/learn/cve-2025-54313-eslint-config-prettier-compromise----high-severity-but-windows-only
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-54313 government-resource
When was it published, and where is the official record?
- Reserved
- July 19, 2025
- Published
- July 19, 2025, 00:00 UTC
- CVE record updated
- February 26, 2026, 17:50 UTC by mitre
- NVD
- Analyzed, last modified June 17, 2026, 09:39 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:18 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD · CISA KEV
Questions about CVE-2025-54313
Is CVE-2025-54313 exploited in the wild?
Yes. CISA added CVE-2025-54313 to its Known Exploited Vulnerabilities catalog on January 22, 2026 and set federal agencies a due date of February 12, 2026. FIRST's EPSS gives it a 5.12% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of eslint-config-prettier are affected by CVE-2025-54313?
eslint-config-prettier from 8.10.1 before 8.10.2, eslint-config-prettier from 9.1.1 before 9.1.2, eslint-config-prettier from 10.1.6 before 10.1.8, eslint-plugin-prettier from 4.2.2 before 4.2.4, synckit from 0.11.9 before 0.11.10, @pkgr/core from 0.2.8 before 0.2.9 and 2 more, per the GitHub advisory GHSA-f29h-pxvx-f335. The tables above give every range the sources list.
Which version fixes CVE-2025-54313?
8.10.2, 9.1.2, 10.1.8, 4.2.4, 0.11.10 and 0.2.9, per the GitHub advisory GHSA-f29h-pxvx-f335. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-54313?
High (7.5, CVSS 3.1, from mitre). The severity table above shows each score with its source.
Where is the official record of CVE-2025-54313?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.