Malicious code in chain-chai-async (npm)
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.
AI Analysis
Technical Summary
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.
Malicious code in chain-chai-async (npm)
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
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.