Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
HighCISA KEVExploited in the wildPublic exploit

Embedded Malicious Code in eslint-config-prettier

IdentifiersCVE-2025-54313CWE-506· Embedded Malicious Code

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.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, 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.
PUBLIC EXPLOITS

Exploits

No valid public exploits. Mallory filtered out 3 candidates as fakes, detection scripts, or README-only repos.

VALID 0 / 3 TOTALView more in app

All candidate exploits were filtered out by Mallory's validation.

EXPOSURE SURFACE

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.

VendorProductType
AlexghrGot-Fetchapplication
HomarrHomarrapplication
npm, Inc.@Pkgr/Coreapplication
npm, Inc.Eslint-Config-Prettierapplication
npm, Inc.Eslint-Plugin-Prettierapplication
npm, Inc.Got-Fetchapplication
npm, Inc.Napi-Postinstallapplication
npm, Inc.Synckitapplication
PrettierEslint-Config-Prettierapplication
PrettierEslint-Plugin-Prettierapplication
SindresorhusGot-Fetchapplication
Un-TsNapi-Postinstallapplication
Un-TsPkgr/Coreapplication
Un-TsSynckitapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware2

Malware families riding this exploit, with evidence and IOCs.

Detection signatures1

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity14

Community discussion across Reddit, Mastodon, and other social sources.