Prettier eslint-config-prettier Embedded Malicious Code
CVE-2025-54313 is a high-severity embedded malicious code vulnerability in eslint-config-prettier from Prettier, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected eslint-config-prettier versions: 8.10.1; 9.1.1; 10.1.6, and others listed below. The record does not name a fixed version, so check the vendor advisory. CISA added it to the Known Exploited Vulnerabilities catalogue on January 22, 2026, which means attacks have been observed in the wild.
Attackers are already exploiting this vulnerability, according to CISA.
What to do
- Update Homarr to 1.30.0 or a later version.
- CISA's 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.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Prettier | eslint-config-prettier | 8.10.1; 9.1.1; 10.1.6; 10.1.7 | Not stated |
| Prettier | Eslint-plugin-prettier | 4.2.2; 4.2.3 | Not stated |
| Un-ts | Synckit | 0.11.9 | Not stated |
| Un-ts | Pkgr/core | 0.2.8 | Not stated |
| Alexghr | Got-fetch | 5.1.1; 5.1.2 | Not stated |
| Un-ts | Napi-postinstall | 0.3.1 | Not stated |
| Homarr | Homarr | 1.29.0 up to, but not including, 1.30.0 | 1.30.0 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- HighSuccess depends on conditions outside the attacker's control.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- ChangedThe attack can reach beyond the vulnerable component into other systems.
- Confidentiality
- LowSome restricted data can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- NoneAvailability is not affected.
Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N. Scored by CNA (mitre.org).
Official 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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Embedded Malicious Code
The product contains code that appears to be malicious in nature.
How developers prevent this class of flaw
- Remove the malicious code and start an effort to ensure that no more malicious code exists. This may require a detailed review of all code, as it is possible to hide a serious attack in only one or two lines of code. These lines may be located almost anywhere in an application and may have been intentionally obfuscated by the attacker.
Timeline
- CVE record published.
- Added to CISA's Known Exploited Vulnerabilities catalogue.
- CISA published its SSVC assessment (exploitation: active, automatable: no, technical impact: partial).
- Deadline for US federal agencies to remediate, set by CISA.
- Record last changed materially (score, affected products, status or references).
References
Third-party and government advisories
- socket.dev/blog/npm-phishing-campaign-leads-to-prettier-tooling-packages-compromiseThird Party Advisory
- github.com/community-scripts/ProxmoxVE/discussions/6115Third Party Advisory
- endorlabs.com/learn/cve-2025-54313-eslint-config-prettier-compromise----high-severity-but-windows-onlyThird Party Advisory
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-54313US Government Resource
Technical write-ups (may include proof of concept)
- bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware/Exploit, Third Party Advisory
- stepsecurity.io/blog/supply-chain-security-alert-eslint-config-prettier-package-shows-signs-of-compromiseExploit, Third Party Advisory
Other references
- github.com/prettier/eslint-config-prettier/issues/339Issue Tracking
- news.ycombinator.com/item?id=44608811Issue Tracking
- news.ycombinator.com/item?id=44609732Issue Tracking
- npmjs.com/package/eslint-config-prettier?activeTab=versionsProduct
Recent Embedded Malicious Code vulnerabilities
- 9.3 Critical severity
- 8.6 High severity
- 8.6 High severity
- 8.4 High severity
- 10.0 Critical severity
- 9.8 Critical severity
Spotted an error? Tell us.