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…

MAL-2026-10054: Malicious code in chai-smart (npm)

0
Critical
Published: 07/09/2026 (07/09/2026, 15:31:31 UTC)
Source: GCVE Database
Product: chai-smart

Description

The npm package 'chai-smart' version 2.3.5 is a malicious package masquerading as a vulnerability management tool with a pino-like logger API. It spawns a detached Node.js child process that decodes a hardcoded URL and sends the full environment variables of the consumer process to an attacker-controlled endpoint. The package then executes arbitrary code returned from that endpoint within the consumer's Node process. This results in exfiltration of sensitive environment data and remote code execution.

Affected software

npmghsa
chai-smart
Affected versions
=2.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: 07/10/2026, 10:21:38 UTC

Technical Analysis

The 'chai-smart' npm package (version 2.3.5) contains malicious code that, upon use, spawns a detached Node.js child process running a script that base64-decodes a hardcoded URL. This script posts the entire environment variables of the host process to an attacker-controlled endpoint and executes arbitrary code returned by that endpoint using a dynamic Function constructor. The package's API mimics the pino logger but serves as a cover for this background malicious activity, enabling bulk exfiltration of sensitive environment variables (such as cloud credentials, tokens, and database passwords) and arbitrary code execution within the consumer's Node.js environment.

Potential Impact

This malicious package enables attackers to exfiltrate all environment variables from the consumer process, potentially leaking sensitive credentials and secrets. Additionally, it allows arbitrary code execution in the consumer's Node.js process, which can lead to full system compromise or further malicious activities. The impact is severe due to the combination of credential theft and remote code execution.

Mitigation Recommendations

No official patch or remediation is currently available for this malicious package. Users should immediately remove version 2.3.5 of 'chai-smart' from their dependencies and avoid using this package. Verify your environment for any signs of compromise if this package was used. Consider replacing it with a trusted and verified logging package. Monitor for any suspicious activity related to environment variable exposure or unauthorized code execution.

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-10054
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a50bac068715ace4358774a

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

Last enriched: 07/10/2026, 10:21:38 UTC

Last updated: 07/10/2026, 10:21:38 UTC

Views: 3

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