Malicious code in chai-chain-dom (npm)
The npm package chai-chain-dom versions 1.3.7, 1.3.8, and 1.3.9 impersonates the pino logger but acts as a remote code loader. When used, it spawns a detached subprocess that fetches and executes attacker-controlled JavaScript from a public paste service, granting full Node.js capabilities to the attacker. This allows arbitrary code execution with full system access. Any system with this package installed should be considered fully compromised, and all secrets should be rotated from a clean environment.
AI Analysis
Technical Summary
The malicious npm package chai-chain-dom (versions 1.3.7, 1.3.8, and 1.3.9) masquerades as the pino logger but executes a detached subprocess that retrieves and evaluates remote JavaScript code from jsonkeeper.com. This code is executed with full Node.js privileges, enabling arbitrary code execution including filesystem, network, and process control. The remote payload is mutable and controlled by the attacker, making the compromise ongoing and dynamic. The package's behavior is designed to evade detection by detaching the subprocess and ignoring stdio. This results in a full system compromise upon installation and use.
Potential Impact
Systems with the affected versions of chai-chain-dom installed or running are fully compromised, as the package executes attacker-controlled code with full Node.js capabilities. This can lead to theft or destruction of data, unauthorized network activity, and persistent backdoors. All secrets and keys stored on the compromised system are at risk and must be rotated from a secure environment. Removal of the package alone does not guarantee eradication of the attacker presence.
Mitigation Recommendations
No official patch or fix is currently available. Immediate removal of the affected chai-chain-dom package versions (1.3.7, 1.3.8, 1.3.9) is strongly recommended. Because the package grants full system control to an attacker, assume full compromise and rotate all secrets and keys from a different, uncompromised system. Conduct a thorough incident response to identify and remediate any persistent malicious activity beyond the package itself.
Malicious code in chai-chain-dom (npm)
Description
The npm package chai-chain-dom versions 1.3.7, 1.3.8, and 1.3.9 impersonates the pino logger but acts as a remote code loader. When used, it spawns a detached subprocess that fetches and executes attacker-controlled JavaScript from a public paste service, granting full Node.js capabilities to the attacker. This allows arbitrary code execution with full system access. Any system with this package installed should be considered fully compromised, and all secrets should be rotated from a clean environment.
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 malicious npm package chai-chain-dom (versions 1.3.7, 1.3.8, and 1.3.9) masquerades as the pino logger but executes a detached subprocess that retrieves and evaluates remote JavaScript code from jsonkeeper.com. This code is executed with full Node.js privileges, enabling arbitrary code execution including filesystem, network, and process control. The remote payload is mutable and controlled by the attacker, making the compromise ongoing and dynamic. The package's behavior is designed to evade detection by detaching the subprocess and ignoring stdio. This results in a full system compromise upon installation and use.
Potential Impact
Systems with the affected versions of chai-chain-dom installed or running are fully compromised, as the package executes attacker-controlled code with full Node.js capabilities. This can lead to theft or destruction of data, unauthorized network activity, and persistent backdoors. All secrets and keys stored on the compromised system are at risk and must be rotated from a secure environment. Removal of the package alone does not guarantee eradication of the attacker presence.
Mitigation Recommendations
No official patch or fix is currently available. Immediate removal of the affected chai-chain-dom package versions (1.3.7, 1.3.8, 1.3.9) is strongly recommended. Because the package grants full system control to an attacker, assume full compromise and rotate all secrets and keys from a different, uncompromised system. Conduct a thorough incident response to identify and remediate any persistent malicious activity beyond the package itself.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6919
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-2gcw-jv94-7mfq"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50ba9768715ace435825bd
Added to database: 07/10/2026, 09:25:43 UTC
Last enriched: 07/10/2026, 10:10:49 UTC
Last updated: 07/18/2026, 17:27:20 UTC
Views: 7
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.
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.