CVE-2025-54313: Embedded Malicious Code in eslint-config-prettier
- Vendors
- PrettierAlexghrHomarrUn-Ts
CVE-2025-54313 is a software supply-chain compromise affecting the npm package eslint-config-prettier. Malicious versions 8.10.1, 9.1.1, 10.1.6, and 10.1.7 were published to npm after attacker compromise of maintainer credentials. The trojanized packages introduced an install.js script that executes during npm installation via package lifecycle hooks. On Windows systems, the script checks for the win32 platform and then launches a bundled malicious DLL, node-gyp.dll, reportedly via rundll32. The embedded payload has been described as Scavenger Loader and as a malware component intended to deliver an information stealer and steal npm authentication tokens. The issue is not a conventional coding flaw in package functionality, but an intentional malicious-code insertion into distributed package artifacts.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Installing an affected package version can result in automatic execution of attacker-supplied code on Windows developer or CI/CD systems during dependency installation. This can lead to host compromise, theft of npm authentication tokens and other credentials, malware staging or delivery of secondary payloads, reconnaissance, persistence, and potential downstream software supply-chain exposure if compromised build environments publish or sign additional artifacts. Because eslint-config-prettier is widely used, the blast radius can include developer workstations, build runners, and any projects that resolved the malicious versions through direct or transitive dependencies.
Mitigation
If you can’t patch tonight, do this now.
Prevent installation of the known-bad versions 8.10.1, 9.1.1, 10.1.6, and 10.1.7 through dependency pinning, registry blocking, and software composition analysis policies. Prefer lockfile enforcement and trusted internal package proxies to reduce exposure to malicious upstream releases. Restrict or monitor npm lifecycle script execution where operationally feasible, especially in CI environments. Harden maintainer and registry accounts with phishing-resistant MFA and token hygiene. On Windows development and build systems, monitor for suspicious npm install activity, unexpected install.js execution, rundll32 spawning from Node/npm processes, and loading of node-gyp.dll or similarly named DLL payloads.
Remediation
Patch, then assume compromise.
Remove affected versions of eslint-config-prettier from all environments and dependency trees, and upgrade to a non-malicious release such as 8.10.2 or later. Rebuild dependencies from trusted sources after clearing package caches and lockfiles as appropriate. Review whether permissive version ranges or automated dependency tooling introduced the malicious versions. If any affected version was installed, especially on Windows, treat the system as potentially compromised: isolate affected hosts, perform forensic review, remove malicious artifacts, and reimage if necessary. Rotate npm tokens, registry credentials, CI/CD secrets, and any other credentials accessible from the affected host. Review package provenance and verify that only trusted releases are present in internal mirrors and artifact repositories.
Exploits
No validated public exploits yet. Hidden: 3 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-54313 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jan 22, 2026.
- Is there a public exploit for CVE-2025-54313?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2025-54313.
- Is there a patch for CVE-2025-54313?
- Remove affected versions of eslint-config-prettier from all environments and dependency trees, and upgrade to a non-malicious release such as 8.10.2 or later. Rebuild dependencies from trusted sources after clearing package caches and lockfiles as appropriate.
- What products are affected by CVE-2025-54313?
- Prettier Eslint-Config-Prettier, Prettier Eslint-Plugin-Prettier, Alexghr Got-Fetch, Homarr, Un-Ts Napi-Postinstall, and 2 more.
- How severe is CVE-2025-54313?
- CVE-2025-54313 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 5.1% (93rd percentile) as of Oct 16, 2026.
Recent activity
24 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.