Skip to main content

Malicious code in web3-utils-crypto (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 15:39:42 UTC)
Source: GCVE Database
Product: web3-utils-crypto

Description

The npm package web3-utils-crypto impersonates the legitimate web3-utils library and includes stub wallet APIs that return non-functional values. When loaded, it collects extensive environment information including environment variables, system details, and package metadata, then exfiltrates this data via an HTTPS request to a Telegram bot controlled by the attacker. This can lead to leakage of sensitive credentials such as AWS keys, GitHub tokens, and database passwords from developer and CI environments. The malicious behavior is triggered on require(), and a temporary flag file prevents repeated data exfiltration. The affected version is 1.10.4.

Affected software

npmghsa
web3-utils-crypto
Affected versions
=1.10.4

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, 23:01:03 UTC

Technical Analysis

web3-utils-crypto is a malicious npm package that masquerades as a drop-in replacement for the legitimate web3-utils library. It provides stub implementations of wallet-related APIs that do not function correctly. Upon being required, the package serializes the full process environment variables along with system information such as hostname, username, home directory, platform, current working directory, package name/version, and a timestamp. This data is base64-encoded and sent via an HTTPS GET request to a Telegram bot endpoint controlled by the attacker. Because process.env often contains sensitive credentials in developer and CI environments, this results in the exfiltration of secrets to an attacker-controlled Telegram chat. A temporary flag file is used to suppress repeated transmissions. The only known affected version is 1.10.4.

Potential Impact

Sensitive environment variables and system information, including credentials like AWS keys, GitHub tokens, NPM tokens, and database passwords, can be exfiltrated to an attacker-controlled Telegram chat. This compromises the confidentiality of secrets in developer and continuous integration environments that install and load this package. The malicious code effectively leaks critical secrets, potentially enabling further compromise of systems and services.

Defensive Guidance

No official patch or remediation is currently documented. Users should immediately remove and avoid installing the web3-utils-crypto package, especially version 1.10.4. Verify dependencies to ensure this malicious package is not included transitively. Rotate any credentials that may have been exposed if this package was installed and loaded in your environment. Monitor for suspicious network traffic to Telegram endpoints. Patch status is not yet confirmed — check the vendor advisory or trusted sources 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-13354
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a738520bf8831d5394ef8ec

Added to database: 08/05/2026, 18:46:56 UTC

Last enriched: 08/05/2026, 23:01:03 UTC

Last updated: 09/07/2026, 22:30:50 UTC

Views: 16

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