CVE-2025-54313
Prettier eslint-config-prettier Embedded Malicious Code Vulnerability
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.
Description as published by the source, in English.
Key facts
- Published
- 2025-07-19
- Last modified
- 2026-06-17
- Assigned by
- cve@mitre.org
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N- Scored by
- cve@mitre.org
- Probability of exploitation
-
4.1 %
higher than 90 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Actively exploited
CISA added this vulnerability to the Known Exploited Vulnerabilities catalogue on 2026-01-22, with a remediation deadline of 2026-02-12 for US federal agencies.
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.
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| eslint-config-prettier (npm) | ≥ 10.1.6, < 10.1.8 | Affected | |
| eslint-config-prettier (npm) | ≥ 8.10.1, < 8.10.2 | Affected | |
| eslint-config-prettier (npm) | ≥ 9.1.1, < 9.1.2 | Affected | |
| eslint-plugin-prettier (npm) | ≥ 4.2.2, < 4.2.4 | Affected | |
| got-fetch (npm) | ≥ 5.1.11, < 6.0.0 | Affected | |
| napi-postinstall (npm) | ≥ 0.3.1, < 0.3.2 | Affected | |
| synckit (npm) | ≥ 0.11.9, < 0.11.10 | Affected | |
| Alexghr | Got-fetch | 5.1.1 | Affected |
| Alexghr | Got-fetch | 5.1.2 | Affected |
| Homarr | Homarr | ≥ 1.29.0, < 1.30.0 | Affected |
| Microsoft | Windows | all versions listed | Not affected |
| pkgr | core (npm) | ≥ 0.2.8, < 0.2.9 | Affected |
| Prettier | Eslint-config-prettier | 10.1.6 | Affected |
| Prettier | Eslint-config-prettier | 10.1.7 | Affected |
| Prettier | Eslint-config-prettier | 8.10.1 | Affected |
| Prettier | Eslint-config-prettier | 9.1.1 | Affected |
| Prettier | Eslint-plugin-prettier | 4.2.2 | Affected |
| Prettier | Eslint-plugin-prettier | 4.2.3 | Affected |
| Un-ts | Napi-postinstall | 0.3.1 | Affected |
| Un-ts | Pkgr/core | 0.2.8 | Affected |
| Un-ts | Synckit | 0.11.9 | Affected |
Weakness type
-
CWE-506: Embedded Malicious Code
The product contains code that appears to be malicious in nature.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1001.002: Steganography
- T1027.003: Steganography
- T1027.004: Compile After Delivery
- T1027.009: Embedded Payloads
- T1195.001: Compromise Software Dependencies and Development Tools
- T1195.002: Compromise Software Supply Chain
- T1218.001: Compiled HTML File
- T1221: Template Injection
References
- https://github.com/prettier/eslint-config-prettier/issues/339
- https://news.ycombinator.com/item?id=44608811
- https://news.ycombinator.com/item?id=44609732
- https://socket.dev/blog/npm-phishing-campaign-leads-to-prettier-tooling-packages-compromi…
- https://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-p…
- https://www.npmjs.com/package/eslint-config-prettier?activeTab=versions
- https://www.stepsecurity.io/blog/supply-chain-security-alert-eslint-config-prettier-packa…
- https://github.com/community-scripts/ProxmoxVE/discussions/6115
- https://www.endorlabs.com/learn/cve-2025-54313-eslint-config-prettier-compromise----high-…
- https://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-p…
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-54313
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.