Skip to main content

Malicious code in chain-chai-async (npm)

0
Critical
Published: 07/09/2026 (07/09/2026, 15:33:49 UTC)
Source: GCVE Database
Product: chain-chai-async

Description

The npm package [email protected] impersonates the legitimate pino logging library and contains malicious code that executes attacker-controlled JavaScript remotely. When its exported middleware is invoked, it spawns a detached child process that fetches and executes code from an unauthenticated remote source, enabling arbitrary remote code execution on the host.

Affected software

npmghsa
chain-chai-async
Affected versions
=1.3.5

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/12/2026, 19:16:33 UTC

Technical Analysis

The chain-chai-async package version 1.3.5 masquerades as the pino logging library by copying files from pino and exporting a similarly named middleware. Its middleware factory spawns a detached child Node.js process that ignores stdio, which fetches JSON data from a mutable, unauthenticated paste service at https://jsonkeeper.com/b/EXSIF. It extracts a 'cookie' field from the JSON response and executes it as JavaScript code with full Node.js require access, allowing an attacker to run arbitrary code on any system that installs and invokes this package. Because the remote code source is mutable and unauthenticated, the attacker can change the payload at any time without republishing the package.

Potential Impact

Any user who installs [email protected] and calls its exported middleware risks arbitrary remote code execution on their host system. This can lead to full system compromise, data theft, or further malicious activity. The attack is triggered by invoking the middleware, and the malicious payload is controlled remotely, making it highly flexible and dangerous.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should immediately cease using [email protected] and remove it from their projects. Avoid invoking its middleware. Verify dependencies to ensure no malicious impersonation packages are included. Monitor vendor advisories for any updates or official fixes.

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

Threat ID: 6a50bab068715ace43585926

Added to database: 07/10/2026, 09:26:08 UTC

Last enriched: 09/12/2026, 19:16:33 UTC

Last updated: 09/13/2026, 07:49:31 UTC

Views: 89

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