Skip to main content

Malicious code in chai-await-dom (npm)

0
Critical
Published: 07/09/2026 (07/09/2026, 15:34:20 UTC)
Source: GCVE Database
Product: chai-await-dom

Description

The npm package chai-await-dom impersonates a pino-style logger but contains malicious code that executes a remote JavaScript payload. It spawns a detached Node child process running a script that fetches and executes code from an anonymous paste host, enabling arbitrary code execution with the installer's privileges. The package name and API surface are deceptive, indicating namespace abuse to lure users into installing it.

Affected software

npmghsa
chai-await-dom
Affected versions
=1.3.7

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:45 UTC

Technical Analysis

The npm package chai-await-dom version 1.3.7 exports middleware that spawns a detached Node.js child process executing lib/caller.js. This script retrieves a JavaScript payload from https://jsonkeeper.com/b/BPB86 and executes it in-process using a dynamic Function constructor, allowing arbitrary code execution with the installer's Node.js privileges. The command-and-control URL is obfuscated in base64 within lib/const.js, pointing to https://jsonkeeper.com/b/ZK45J. The package name and API do not reflect its true behavior, consistent with malicious namespace abuse to deliver remote code execution payloads.

Potential Impact

Installation of chai-await-dom version 1.3.7 results in arbitrary code execution on the host system with the privileges of the Node.js process installer. This can lead to full system compromise, data theft, or further malware deployment. The malicious payload is fetched dynamically from a remote anonymous host, making detection and prevention more difficult.

Mitigation Recommendations

No official patch or remediation is currently available. Users should immediately uninstall chai-await-dom version 1.3.7 and avoid using this package. Review and audit systems where this package was installed for signs of compromise. Use trusted package sources and verify package authenticity before installation.

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

Threat ID: 6a50bab068715ace43585920

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

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

Last updated: 09/14/2026, 01:22:59 UTC

Views: 68

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