Skip to main content

Malicious code in eth-pino (npm)

0
Critical
Published: 08/29/2026 (08/29/2026, 02:13:50 UTC)
Source: GCVE Database
Product: eth-pino

Description

The npm package eth-pino version 2.0.3 contains malicious code that executes upon requiring the package. It decodes a base64-encoded URL and sends environment variables to a remote server, then executes code returned from that server, enabling arbitrary code execution. The package mimics the legitimate pino logger but acts as a typosquatting malicious package.

Affected software

npmghsa
eth-pino
Affected versions
=2.0.3

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: 09/09/2026, 21:23:59 UTC

Technical Analysis

The eth-pino npm package version 2.0.3 includes a top-level asynchronous immediately-invoked function expression (IIFE) in lib/initializeCaller.js that decodes a base64-obfuscated URL and sends a shallow copy of the process environment variables to this remote endpoint via a POST request with a secret header. The response body is then executed as JavaScript code using new Function, passing the real require function, which allows the remote operator to execute arbitrary code within the Node.js process of the installer. The package is designed to evade static URL scanners by encoding the URL and mimics the legitimate pino logger package, exporting a no-op middleware consistent with typosquatting tactics.

Potential Impact

This malicious package allows remote attackers to execute arbitrary code on systems that install or require eth-pino version 2.0.3, potentially leading to full compromise of the Node.js environment and exposure of environment variables. This can result in unauthorized access, data leakage, or further system compromise.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing or using the eth-pino package version 2.0.3. Verify package authenticity before installation, prefer official packages, and remove any instances of eth-pino from projects. Monitor for updates from the package repository or vendor advisories for remediation guidance. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.

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

Threat ID: 6a92f7d9acd9273b49e75aa0

Added to database: 08/29/2026, 15:16:41 UTC

Last enriched: 09/09/2026, 21:23:59 UTC

Last updated: 10/01/2026, 22:26:59 UTC

Views: 25

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