Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-59142— color-string@2.1.1 contains malware after npm account takeover

Quick assessment

Affected
Qix- color-string
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Color-String是Josh Junon个人开发者的一个解析和生成 CSS 颜色字符串的库。 color-string 2.1.1版本存在安全漏洞,该漏洞源于恶意软件有效载荷注入,可能导致浏览器环境中加密货币交易重定向。

AI Predicted 7.5 Difficulty: Trivial EPSS 0.41% · P33
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-59142

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
color-string@2.1.1 contains malware after npm account takeover
Source: CVE Program / CVE List V5
Vulnerability Description
color-string is a parser and generator for CSS color strings. On 8 September 2025, the npm publishing account for color-string was taken over after a phishing attack. Version 2.1.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. 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 issue has been resolved in 2.1.2.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
内嵌的恶意代码
Source: CVE Program / CVE List V5
Vulnerability Title
Color-String 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Color-String是Josh Junon个人开发者的一个解析和生成 CSS 颜色字符串的库。 color-string 2.1.1版本存在安全漏洞,该漏洞源于恶意软件有效载荷注入,可能导致浏览器环境中加密货币交易重定向。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Qix- color-string = 2.1.1 -

II. Public POCs for CVE-2025-59142

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-59142

请登录查看更多情报信息。

Vendor Advisories for CVE-2025-59142 (1)

Security Blog Posts for CVE-2025-59142 (1)

Same Patch Batch · Qix- · 2025-09-15 · 7 CVEs total

CVE-2025-59140 backslash@0.2.1 contains malware after npm account takeover
CVE-2025-59141 simple-swizzle@0.2.3 contains malware after npm account takeover
CVE-2025-59162 color-convert@3.1.1 contains malware after npm account takeover
CVE-2025-59331 is-arrayish@0.3.3 contains malware after npm account takeover
CVE-2025-59330 error-ex@1.3.3 contains malware after npm account takeover
CVE-2025-59143 color@5.0.1 contains malware after npm account takeover

IV. Related Vulnerabilities

V. Comments for CVE-2025-59142

No comments yet


Leave a comment