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 express-chai (npm)

0
Critical
Published: 08/06/2026 (08/06/2026, 19:11:04 UTC)
Source: GCVE Database
Product: express-chai

Description

The express-chai npm package version 3.7.9 contains malicious code that impersonates an Express logger middleware. It fetches a remote JSON payload from a base64-obfuscated URL and executes code from the payload with full access to the Node.js require function and application context, enabling arbitrary code execution during middleware setup.

Affected software

npmghsa
express-chai
Affected versions
=3.7.9

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: 08/07/2026, 06:12:21 UTC

Technical Analysis

The express-chai package (version 3.7.9) masquerades as a legitimate Express logger middleware but includes a malicious component that decodes a base64-obfuscated URL to fetch a JSON payload from a remote server. It sends a base64-encoded secret key in the request header and extracts a 'cookie' field from the response, which it executes as code using the Function constructor with access to the local require function. This allows the remote operator to execute arbitrary code within the Node.js process that installs the middleware, compromising the host environment. The package uses naming and keywords to disguise itself as a known logging library, facilitating its distribution and installation.

Potential Impact

Successful installation and use of express-chai version 3.7.9 results in arbitrary code execution within the Node.js process, granting an attacker full access to the require function and the surrounding application context. This can lead to complete compromise of the application and potentially the host system running the Node.js process.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should immediately avoid installing or using express-chai version 3.7.9. Remove the package from any projects and replace it with a trusted alternative. Monitor for any unexpected network connections or code execution related to this package. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for updates.

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

Threat ID: 6a75744dbf8831d539d9b059

Added to database: 08/07/2026, 05:59:41 UTC

Last enriched: 08/07/2026, 06:12:21 UTC

Last updated: 08/07/2026, 06:12:21 UTC

Views: 4

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