On 18 July 2025 a phishing email from the typosquatted domain npnjs.com obtained a maintainer's npm token, and the attacker used it to publish malicious versions of eslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core and napi-postinstall straight to npm, with no matching commits on GitHub. On Windows the install script loaded a DLL (node-gyp.dll) with rundll32. If a Windows machine or CI runner installed an affected version, treat it as compromised and rotate its credentials.
| Disclosed | July 18, 2025 |
|---|---|
| Earliest known activity | July 18, 2025 |
| Affected | eslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core, napi-postinstall, npm |
| Type | Supply chain |
| Status | Resolved |
| CVE | CVE-2025-54313 |
What was exposed
Two sets of credentials. First, the maintainer's npm token, captured by a lookalike npm site and used to publish without touching the GitHub repositories, which is why the releases lacked the npm provenance earlier versions had. Second, anything on Windows machines that installed an affected version: the install script ran rundll32 on a bundled node-gyp.dll, giving the attacker code execution. A commenter on the maintainer's issue identified the DLL as the "Scavenger" information stealer, which targets browser data; that identification is a third-party claim. Code execution on a developer workstation or Windows CI runner exposes saved browser passwords and sessions, npm and GitHub tokens and cloud credentials.
Am I affected?
You are affected if a Windows machine or runner installed any of these versions on or after 18 July 2025: eslint-config-prettier 8.10.1, 9.1.1, 10.1.6 or 10.1.7; eslint-plugin-prettier 4.2.2 or 4.2.3; synckit 0.11.9; @pkgr/core 0.2.8; napi-postinstall 0.3.1. These are development dependencies, so look in lockfiles rather than production bundles. Because eslint-config-prettier is pulled in by many lint presets, also check transitive dependencies. The payload targeted Windows; the sources do not describe any effect on macOS or Linux installs.
What to do now
- Search lockfiles for the versions above and upgrade to clean releases; clear package-manager caches and remove the versions from internal mirrors.
- On Windows machines that installed them: look for
node-gyp.dllin the package folder, run an endpoint scan, and reimage if the DLL ran. - From a clean device, rotate credentials the Windows machine held, including browser-saved passwords and sessions, npm and GitHub tokens, and cloud keys.
- If you maintain packages: never sign in through a link in an email, use phishing-resistant 2FA, and publish through trusted publishing so releases carry provenance.
Keys to rotate
Guides to the credentials this incident put at risk:
Timeline
- Users notice malicious code in the diff from
eslint-config-prettier10.1.5 to 10.1.7. The maintainer says the token came from a phishing email, deletes it and starts deprecating the versions. Source - Socket publishes the full list of affected packages and ties the compromise to a phishing campaign using
npnjs.com. Source - CVE-2025-54313 is published for
eslint-config-prettier8.10.1, 9.1.1, 10.1.6 and 10.1.7. Source - NVD records that CISA added CVE-2025-54313 to its Known Exploited Vulnerabilities catalog. Source
Indicators
From the advisories listed below. Use them to search your logs, lockfiles and workflow runs.
- Phishing domain
npnjs.com. - A file
node-gyp.dllin an affected package, loaded throughrundll32from an install script. - Releases of the affected packages without npm provenance and without matching commits in the GitHub repository.
What this changes for credential handling
- A password manager that fills only on the saved domain would not have offered the npm login on
npnjs.com. BotPassword fills credentials only on the exact domain they belong to.
Frequently asked questions
Am I affected by the eslint-config-prettier incident?
You are affected if a Windows machine or runner installed any of these versions on or after 18 July 2025: eslint-config-prettier 8.10.1, 9.1.1, 10.1.6 or 10.1.7; eslint-plugin-prettier 4.2.2 or 4.2.3; synckit 0.11.9; @pkgr/core 0.2.8; napi-postinstall 0.3.1. These are development dependencies, so look in lockfiles rather than production bundles. Because eslint-config-prettier is pulled in by many lint presets, also check transitive dependencies. The payload targeted Windows; the sources do not describe any effect on macOS or Linux installs.
What was exposed in the eslint-config-prettier incident?
Two sets of credentials. First, the maintainer's npm token, captured by a lookalike npm site and used to publish without touching the GitHub repositories, which is why the releases lacked the npm provenance earlier versions had. Second, anything on Windows machines that installed an affected version: the install script ran rundll32 on a bundled node-gyp.dll, giving the attacker code execution. A commenter on the maintainer's issue identified the DLL as the "Scavenger" information stealer, which targets browser data; that identification is a third-party claim. Code execution on a developer workstation or Windows CI runner exposes saved browser passwords and sessions, npm and GitHub tokens and cloud credentials.
Other supply-chain compromises
- LiteLLM 1.107.0 on PyPI and Docker carried a credential stealer after a leaked master key 2026-10-21
- tensorlake 0.5.144 on npm shipped a Shai-Hulud variant with a wipe-on-revoke dead-man's switch 2026-10-08
- keyv, flat-cache and cache-manager npm releases carried a CI-secret stealer with a revocation trap 2026-08-04
- 32 @redhat-cloud-services npm packages compromised after a VS Code extension hijacked a GitHub account 2026-06-01
- 14 typosquatted OpenSearch and DevOps npm packages stole AWS, Vault, GitHub Actions and npm secrets 2026-05-28
- Nx Console 18.95.0 VS Code extension shipped a credential stealer after a TanStack infection 2026-05-18