Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in chai-chain-dom (npm)

0
Critical
Published: 07/07/2026 (07/07/2026, 15:13:22 UTC)
Source: GCVE Database
Product: chai-chain-dom

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

npmghsa
chai-chain-dom
Affected versions
=1.3.9=1.3.7=1.3.8

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: 07/10/2026, 10:10:49 UTC

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.

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-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 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