Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in colorpicker-ui (npm)

0
Critical
Published: 06/25/2026 (06/25/2026, 20:16:17 UTC)
Source: GCVE Database
Product: colorpicker-ui

Description

The npm package colorpicker-ui versions 1.2.4, 1.2.5, and 1.2.6 contains malicious code in its postinstall script. This script steals sensitive credentials and system information, including Kubernetes service-account tokens, AWS instance metadata, and local system files. It then writes this data into files designed to be auto-imported by AI coding-agent sandbox workspaces, enabling arbitrary code execution and exfiltration of secrets. The package's advertised color-picker functionality is a cover for this malicious behavior.

Affected software

npmghsa
colorpicker-ui
Affected versions
=1.2.4=1.2.5=1.2.6

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/19/2026, 14:58:02 UTC

Technical Analysis

The colorpicker-ui npm package includes a postinstall hook that executes a setup.js script during installation. This script reads sensitive credentials such as Kubernetes service-account tokens from /var/run/secrets/kubernetes.io/serviceaccount/token, AWS instance metadata from the IMDS endpoint, and local system files like /etc/passwd, /etc/resolv.conf, and /etc/hosts. It collects environment variables and system information (id, uname -a), recursively lists the /app directory, and writes the harvested data into files named _rce.ts and rce.json placed in paths intended to be imported by AI coding-agent sandbox workspaces. This mechanism enables arbitrary code execution in subsequent agent runs and exfiltrates secrets to attacker-controlled processes. The legitimate color-picker API is functional but serves only as a facade to conceal the malicious payload.

Potential Impact

Compromise of Kubernetes cluster credentials, cloud instance credentials, and local system information can lead to unauthorized access, lateral movement, and persistent control over affected environments. The malicious files created enable arbitrary code execution within AI coding-agent sandbox environments, increasing the risk of further compromise and data exfiltration. This threat affects any environment where the vulnerable package versions are installed, potentially exposing sensitive infrastructure and application secrets.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should immediately avoid installing or remove versions 1.2.4, 1.2.5, and 1.2.6 of colorpicker-ui. Audit existing environments for the presence of the malicious files (_rce.ts, rce.json) and any suspicious postinstall activity. Consider using trusted package sources and verifying package integrity before installation. Monitor for any unexpected code execution within AI coding-agent or similar sandbox environments. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-6473
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a85b4cbacd9273b49252ef6

Added to database: 08/19/2026, 13:51:07 UTC

Last enriched: 08/19/2026, 14:58:02 UTC

Last updated: 08/19/2026, 17:44:32 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses