Supply chain · September 8, 2025

npm maintainer phishing led to malicious releases of chalk, debug, DuckDB and other packages

ResolvedUpdated CVE-2025-59144CVE-2025-59037GHSA-2v46-p5h4-248wGHSA-4x49-vf9v-38pxGHSA-w62p-hx95-gf2c

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.

DisclosedSeptember 8, 2025
Earliest known activitySeptember 8, 2025
Affectedchalk, debug, ansi-styles, strip-ansi, supports-color, duckdb, npm
TypeSupply chain
StatusResolved
CVECVE-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

  1. 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.
  2. Search lockfiles for the versions listed above, delete node_modules, clear the package-manager cache and reinstall clean versions (for debug, 4.4.3 or later).
  3. Rebuild and redeploy any browser bundle built while an affected version was installed.
  4. Purge the affected versions from private registry mirrors and caches.
  5. 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

  1. The phishing domain npmjs.help is registered, according to Aikido. Source
  2. From 13:16 UTC Aikido's feed flags malicious releases of debug, chalk and 16 related packages published from the maintainer's account. Source
  3. GitHub publishes advisory GHSA-2v46-p5h4-248w for chalk 5.6.1 as malware. Source
  4. DuckDB discloses that a maintainer entered the duckdb_admin credentials 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
  5. Advisory GHSA-4x49-vf9v-38px (CVE-2025-59144) is published for debug 4.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: chalk 5.6.1, debug 4.4.2, ansi-styles 6.2.2, strip-ansi 7.1.1, supports-color 10.2.1 and the others listed above.
  • Malicious DuckDB versions: duckdb, @duckdb/node-api and @duckdb/node-bindings 1.3.3, @duckdb/duckdb-wasm 1.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.

Keep keys out of reach of the next compromised package

BotPassword is in early access. Request an invite and we'll email you when your spot opens.