CVE-2025-59144
JSON

8.8high

debug@4.4.2 contains malware after npm account takeover

Severity
8.8high CVSS:4.0 by GitHub_M
Exploit likelihood
0.50% (higher than 44% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-4x49-vf9v-38pxGHSA-8mgj-vmr8-frr6MAL-2025-46974

Description

debug is a JavaScript debugging utility. On 8 September 2025, the npm publishing account for debug was taken over after a phishing attack. Version 4.4.2 was published, functionally identical to the previous patch version, but with a malware payload added attempting to redirect cryptocurrency transactions to the attacker's own addresses from within browser environments. Local environments, server environments, command line applications, etc. are not affected. If the package was used in a browser context (e.g. a direct <script> inclusion, or via a bundling tool such as Babel, Rollup, Vite, Next.js, etc.) there is a chance the malware still exists and such bundles will need to be rebuilt. The malware seemingly only targets cryptocurrency transactions and wallets such as MetaMask. npm removed the offending package from the registry over the course of the day on 8 September, preventing further downloads from npm proper. On 13 September, the package owner published new patch versions to help cache-bust those using private registries who might still have the compromised version cached. Users should upgrade to the latest patch version, completely remove their node_modules directory, clean their package manager's global cache, and rebuild any browser bundles from scratch. Those operating private registries or registry mirrors should purge the offending versions from any caches. This issue has been resolved in 4.4.3.

Affected

Product or packageVersionsReported by
debug-js debug= 4.4.2CVE List
debug (npm)from 4.4.2 before 4.4.3GitHub Advisory Database

All scores

GitHub_M8.8high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/E:A/U:Red
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/E:A/U:Red

Classification

CWE-506

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

debug is a JavaScript debugging utility. On 8 September 2025, the npm publishing account for debug was taken over after a phishing attack. Version 4.4.2 was published, functionally identical to the previous patch version, but with a malware payload added attempting to redirect cryptocurrency transactions to the attacker's own addresses from within browser environments. Local environments, server environments, command line applications, etc. are not affected. If the package was used in a browser context (e.g. a direct <script> inclusion, or via a bundling tool such as Babel, Rollup, Vite, Next.js, etc.) there is a chance the malware still exists and such bundles will need to be rebuilt. The malware seemingly only targets cryptocurrency transactions and wallets such as MetaMask. npm removed the offending package from the registry over the course of the day on 8 September, preventing further downloads from npm proper. On 13 September, the package owner published new patch versions to help cache-bust those using private registries who might still have the compromised version cached. Users should upgrade to the latest patch version, completely remove their node_modules directory, clean their package manager's global cache, and rebuild any browser bundles from scratch. Those operating private registries or registry mirrors should purge the offending versions from any caches. This issue has been resolved in 4.4.3.

GitHub Advisory Database
Impact

On 8 September 2025, the npm publishing account for debug was taken over after a phishing attack. Version 4.4.2 was published, functionally identical to the previous patch version, but with a malware payload added attempting to redirect cryptocurrency transactions to the attacker's own addresses from within browser environments.

Local environments, server environments, command line applications, etc. are not affected. If the package was used in a browser context (e.g. a direct <script> inclusion, or via a bundling tool such as Babel, Rollup, Vite, Next.js, etc.) there is a chance the malware still exists and such bundles will need to be rebuilt.

The malware seemingly only targets cryptocurrency transactions and wallets such as MetaMask. See references below for more information on the payload.

Patches

npm removed the offending package from the registry over the course of the day on 8 September, preventing further downloads from npm proper.

On 13 September, the package owner published new patch versions to help cache-bust those using private registries who might still have the compromised version cached. This version is functionally identical to the previously known-good version, published as a patch version bump above the compromised version.

Users should upgrade to the latest patch version, completely remove their node_modules directory, clean their package manager's global cache, and rebuild any browser bundles from scratch.

Those operating private registries or registry mirrors should purge the offending versions from any caches.

References
Point of Contact

In the event suspicious behavior is still observed for the package listed in this security advisory after performing all of the above cleaning operations (see Patches above), please reach out via one of the following channels of communication:

NVD (es)

debug es una utilidad de depuración de JavaScript. El 8 de septiembre de 2025, la cuenta de publicación de npm para debug fue comprometida después de un ataque de phishing. La versión 4.4.2 fue publicada, funcionalmente idéntica a la versión de parche anterior, pero con una carga útil de malware añadida que intentaba redirigir transacciones de criptomonedas a las propias direcciones del atacante desde entornos de navegador. Los entornos locales, entornos de servidor, aplicaciones de línea de comandos, etc. no están afectados. Si el paquete fue utilizado en un contexto de navegador (p. ej., una inclusión directa de <script>, o a través de una herramienta de empaquetado como Babel, Rollup, Vite, Next.js, etc.) existe la posibilidad de que el malware aún exista y dichos paquetes deberán ser reconstruidos. El malware aparentemente solo apunta a transacciones de criptomonedas y billeteras como MetaMask. npm eliminó el paquete ofensivo del registro a lo largo del día el 8 de septiembre, impidiendo descargas adicionales desde npm propiamente dicho. El 13 de septiembre, el propietario del paquete publicó nuevas versiones de parche para ayudar a invalidar la caché de aquellos que usan registros privados y que aún podrían tener la versión comprometida en caché. Los usuarios deben actualizar a la última versión de parche, eliminar completamente su directorio node_modules, limpiar la caché global de su gestor de paquetes y reconstruir cualquier paquete de navegador desde cero. Aquellos que operan registros privados o espejos de registro deben purgar las versiones ofensivas de cualquier caché. Este problema ha sido resuelto en 4.4.3.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-59144 changed 2026-09-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-4x49-vf9v-38px changed 2025-09-16CC-BY-4.0
NVDCVE-2025-59144 changed 2026-10-19Public domain