# CVE-2025-59143: color@5.0.1 contains malware after npm account takeover

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v4.0, CNA) `CVSS: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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: Low; Integrity impact: High; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None; Exploit maturity: Attacked; U: Red
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.72% (percentile 50, 2026-11-26)
- **CWE:** CWE-506
- **Aliases:** GHSA-j8fv-6x8p-p766, GHSA-qrmh-qg46-72pp, MAL-2025-46985
- **Published:** 2025-09-15T19:10:01.610Z
- **Modified:** 2026-06-17T09:45:37.030Z

## Who should check

- Projects that depend on npm package color (\>= 5.0.1, \< 5.0.2)
- Anyone running Qix- color = 5.0.1

## Description

color is a Javascript color conversion and manipulation library. On 8 September 2025, the npm publishing account for color was taken over after a phishing attack. Version 5.0.1 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 update 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 issues has been resolved in 5.0.2.

## Affected and fixed versions

- npm `color`: affected \>= 5.0.1, \< 5.0.2; fixed 5.0.2 (osv)
- Qix- color: = 5.0.1 (cvelist)

## Mitigation

- Upgrade color to 5.0.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-59143. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-59143.md
Affected: color >= 5.0.1, < 5.0.2
Fixed in: 5.0.2

Steps:
1. Search this machine and project for color (npm), Qix- color: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-59143 being exploited?

There is no confirmed exploitation: CVE-2025-59143 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.72% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-59143?

High: CVSS 8.8 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-59143?

color \>= 5.0.1, \< 5.0.2.

### Is there a fix for CVE-2025-59143?

Yes. Fixed in 5.0.2. Upgrade color to 5.0.2 or later.

### How do I check if I'm affected by CVE-2025-59143?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/Qix-/color/security/advisories/GHSA-qrmh-qg46-72pp>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-59143>
- other: <https://github.com/debug-js/debug/issues/1005>
- other: <https://socket.dev/blog/npm-author-qix-compromised-in-major-supply-chain-attack>
- other: <https://www.aikido.dev/blog/npm-debug-and-chalk-packages-compromised>
- other: <https://www.ox.security/blog/npm-packages-compromised>
- other: <https://github.com/Qix-/color>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-59143>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-qrmh-qg46-72pp> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-59143> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-59143>
