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-10053: Malicious code in chai-secure (npm)

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

Description

The npm package chai-secure versions 1.2.3 and 1.2.5 contains malicious code that executes attacker-controlled JavaScript on the host machine. Upon import, it silently spawns a detached Node.js child process that fetches code from a remote HTTP server and executes it with full privileges. This behavior is hidden from the README and uses evasion techniques such as delivering payload via a 404 response. The package masquerades as a Chai plugin providing assertion helpers but instead performs unauthorized remote code execution.

Affected software

npmghsa
chai-secure
Affected versions
=1.2.3=1.2.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:11:34 UTC

Technical Analysis

chai-secure (npm) versions 1.2.3 and 1.2.5 include malicious functionality where requiring or importing the package triggers a detached Node.js child process that makes an HTTP GET request to a remote server. If the server responds with a 404 status containing a 'token' field, the package dynamically constructs and executes JavaScript code from this token with full privileges on the host. The package uses this covert channel to execute arbitrary attacker-supplied code, bypassing casual inspection by hiding the payload delivery in a 404 response and using plain HTTP. Additional files in the package are included to inflate its apparent legitimacy. This results in silent remote code execution on any system that installs and imports the package as documented.

Potential Impact

Any developer or system that installs and imports chai-secure versions 1.2.3 or 1.2.5 will unknowingly execute arbitrary attacker-controlled JavaScript code with full privileges on their machine. This can lead to complete compromise of the host environment, data theft, persistence, or further malicious activity. The malicious code runs silently in a detached background process, making detection difficult without specialized inspection.

Mitigation Recommendations

No official patch or remediation is currently available for chai-secure. Users should immediately avoid installing or importing this package. Remove any existing installations of chai-secure versions 1.2.3 and 1.2.5 from projects and systems. Monitor for any unexpected child processes or network connections to suspicious domains. Check the vendor advisory or trusted security sources for updates regarding remediation or safe alternatives. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.

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

Threat ID: 6a50ba9f68715ace43584cdf

Added to database: 07/10/2026, 09:25:51 UTC

Last enriched: 07/10/2026, 10:11:34 UTC

Last updated: 07/10/2026, 10:11:34 UTC

Views: 2

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