CRITICAL npm Malware

Malicious code in consumerweb-risk (npm)

MAL-2026-11269 · GHSA-5439-r8p8-2gmx

Published · Modified

Dependency scanning

Check whether consumerweb-risk is in your codebase

Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.

Description


__

Source: amazon-inspector (aa886e4b335d3fc76fa6bc8e50c2e428ac164165830705c0ab2847857c2b3aa7)

The package's preinstall lifecycle script runs automatically on npm install. It collects the installer's OS username (os.userInfo().username), hostname (os.hostname()), and current working directory (process.cwd()), serializes them to JSON, hex-encodes the payload, chunks it into DNS subdomain labels, and issues dns.lookup() queries against an attacker-controlled nameserver under jgl.red. The lookups themselves carry the encoded host identity out to the attacker's authoritative DNS server, forming a covert DNS-tunnel exfiltration channel that fires on every install regardless of whether the module is ever required.

Source: ghsa-malware (0e5f4efb70659109081158cdf1172001c3a589dbac63414af7c04485d40e42d0)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Ready to move

Start Securing

Free, no credit card | First findings in minutes