Skip to main content

Malicious code in umber-root (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 13:15:05 UTC)
Source: GCVE Database
Product: umber-root

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (a16b80d2c76699beaf0773da7233c1e136a951a8edd0ba84b073ea78590c23e1) The npm postinstall lifecycle hook runs dist/config.js, which fetches JSON from https://my-api.trade-api.workers.dev?id=3 and then invokes `globalThis[data.success](data.id)`, letting the remote endpoint choose which global (eval, Function, require, etc.) to call and with what argument. The package reassigns `globalThis.require = require` earlier in the same file to make `require` reachable through this indirection. The result is arbitrary code execution on every installer machine during `npm install`, with both the executor and its argument supplied by an attacker-controlled Cloudflare Workers endpoint. The package advertises itself as a color toolkit; there is no build or configuration purpose served by a network-dispatched global invocation, and the string-indexed global lookup is an evasion pattern that hides the sink from static scanners.

Affected software

npmghsa
umber-root
Affected versions
=1.1.0=1.1.2

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/05/2026, 15:36:44 UTC

Technical Analysis

The 'umber-root' npm package versions 1.1.0 and 1.1.2 includes a postinstall script that runs dist/config.js. This script fetches JSON data from a Cloudflare Workers endpoint controlled by an attacker. It then dynamically invokes a global function specified by the fetched data, passing attacker-controlled arguments. The package reassigns 'globalThis.require' to allow indirect access to 'require', facilitating arbitrary code execution. This design enables an attacker to execute arbitrary code on any machine installing the package, leveraging a runtime network call and obfuscated invocation to evade detection by static scanners.

Potential Impact

Arbitrary code execution occurs on every machine running 'npm install' for the affected versions of the 'umber-root' package. This can lead to full compromise of the build or development environment where the package is installed. The malicious behavior is triggered during installation without user interaction beyond installing the package.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing 'umber-root' versions 1.1.0 and 1.1.2. Review dependency trees for this package and remove or replace it with a trusted alternative. Monitor for updates from the package maintainer or npm advisories for any forthcoming fixes. Until a fix is available, do not run 'npm install' on these versions in untrusted environments.

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-12814
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a73572fbf8831d53913cd26

Added to database: 08/05/2026, 15:30:55 UTC

Last enriched: 08/05/2026, 15:36:44 UTC

Last updated: 09/16/2026, 23:49:29 UTC

Views: 21

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