On 8 September 2025 phishing emails from the lookalike domain npmjs.help captured npm maintainers' passwords and two-factor codes, and the attackers used the accounts to publish malicious versions of 18 widely used packages, including chalk 5.6.1 and debug 4.4.2, and later four DuckDB packages. The payload rewrote cryptocurrency wallet addresses in browsers; it did not steal developer secrets. Maintainers who entered credentials on a lookalike npm site should reset their password, 2FA and tokens; users should reinstall clean versions and rebuild browser bundles.
| Disclosed | September 8, 2025 |
|---|---|
| Earliest known activity | September 8, 2025 |
| Affected | chalk, debug, ansi-styles, strip-ansi, supports-color, duckdb, npm |
| Type | Supply chain |
| Status | Resolved |
| CVE | CVE-2025-59144, CVE-2025-59037 |
What was exposed
The maintainers' npm credentials: passwords and two-factor codes typed into a pixel-perfect copy of npmjs.com, which forwarded them to the real site so the attacker could change 2FA and create a publishing token. For people who installed the packages, the advisories describe a browser-side payload that hooked fetch, XMLHttpRequest and wallet APIs to swap cryptocurrency recipient addresses. The debug advisory says local, server and command-line environments were not affected, and no source reports theft of developer tokens or environment variables by this payload.
Am I affected?
Maintainers: you are affected if you followed a link in an email from an npmjs.help address (or any non-npmjs.com domain) and signed in. Users: check lockfiles for chalk 5.6.1, debug 4.4.2, ansi-styles 6.2.2, strip-ansi 7.1.1, supports-color 10.2.1, ansi-regex 6.2.1, wrap-ansi 9.0.1, color-convert 3.1.1, color-name 2.0.1, color-string 2.1.1, slice-ansi 7.1.1, is-arrayish 0.3.3, error-ex 1.3.3, simple-swizzle 0.2.3, has-ansi 6.0.1, supports-hyperlinks 4.1.1, chalk-template 1.1.1, backslash 0.2.1, or DuckDB's duckdb 1.3.3, @duckdb/node-api 1.3.3, @duckdb/node-bindings 1.3.3 and @duckdb/duckdb-wasm 1.29.2. Installs on 8 September 2025 are the risk window; the risk is to web apps that shipped a browser bundle built with one of those versions.
What to do now
- If you entered npm credentials on a lookalike site: reset your npm password, re-enroll 2FA, revoke every npm access token, and review recent publishes on your packages.
- Search lockfiles for the versions listed above, delete
node_modules, clear the package-manager cache and reinstall clean versions (fordebug, 4.4.3 or later). - Rebuild and redeploy any browser bundle built while an affected version was installed.
- Purge the affected versions from private registry mirrors and caches.
- Prefer phishing-resistant 2FA (a security key or passkey) for registry accounts, since a one-time code can be relayed by a proxy site.
Keys to rotate
Guides to the credentials this incident put at risk:
Timeline
- The phishing domain
npmjs.helpis registered, according to Aikido. Source - From 13:16 UTC Aikido's feed flags malicious releases of
debug,chalkand 16 related packages published from the maintainer's account. Source - GitHub publishes advisory GHSA-2v46-p5h4-248w for
chalk5.6.1 as malware. Source - DuckDB discloses that a maintainer entered the
duckdb_admincredentials and 2FA on the same phishing site, after which the attacker created an API token and published malicious DuckDB versions. DuckDB rotated passwords, tokens and keys. Source - Advisory GHSA-4x49-vf9v-38px (CVE-2025-59144) is published for
debug4.4.2, with 4.4.3 as the fixed release. Source
Indicators
From the advisories listed below. Use them to search your logs, lockfiles and workflow runs.
- Phishing sender domain
npmjs.help, registered 2025-09-05 according to Aikido. - Malicious versions:
chalk5.6.1,debug4.4.2,ansi-styles6.2.2,strip-ansi7.1.1,supports-color10.2.1 and the others listed above. - Malicious DuckDB versions:
duckdb,@duckdb/node-apiand@duckdb/node-bindings1.3.3,@duckdb/duckdb-wasm1.29.2.
What this changes for credential handling
- The DuckDB advisory notes the browser did not autofill the login on the fake domain, which should have been a warning. BotPassword fills credentials only on the exact domain they were saved for.
Frequently asked questions
Am I affected by the chalk incident?
Maintainers: you are affected if you followed a link in an email from an npmjs.help address (or any non-npmjs.com domain) and signed in. Users: check lockfiles for chalk 5.6.1, debug 4.4.2, ansi-styles 6.2.2, strip-ansi 7.1.1, supports-color 10.2.1, ansi-regex 6.2.1, wrap-ansi 9.0.1, color-convert 3.1.1, color-name 2.0.1, color-string 2.1.1, slice-ansi 7.1.1, is-arrayish 0.3.3, error-ex 1.3.3, simple-swizzle 0.2.3, has-ansi 6.0.1, supports-hyperlinks 4.1.1, chalk-template 1.1.1, backslash 0.2.1, or DuckDB's duckdb 1.3.3, @duckdb/node-api 1.3.3, @duckdb/node-bindings 1.3.3 and @duckdb/duckdb-wasm 1.29.2. Installs on 8 September 2025 are the risk window; the risk is to web apps that shipped a browser bundle built with one of those versions.
What was exposed in the chalk incident?
The maintainers' npm credentials: passwords and two-factor codes typed into a pixel-perfect copy of npmjs.com, which forwarded them to the real site so the attacker could change 2FA and create a publishing token. For people who installed the packages, the advisories describe a browser-side payload that hooked fetch, XMLHttpRequest and wallet APIs to swap cryptocurrency recipient addresses. The debug advisory says local, server and command-line environments were not affected, and no source reports theft of developer tokens or environment variables by this payload.
Which keys should I rotate?
Rotate any npm credentials that were reachable from affected systems, starting with the ones that can publish code or reach production.
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