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-10676: Malicious code in commonjs-assert (npm)

0
Critical
Published: 07/15/2026 (07/15/2026, 10:42:17 UTC)
Source: GCVE Database
Product: commonjs-assert

Description

The npm package 'commonjs-assert' version 1.0.3 is a malicious package that impersonates Node.js's built-in 'assert' module. When required, it spawns a detached Node.js child process that fetches and executes remote code via an obfuscated payload, resulting in arbitrary remote code execution on the host system.

Affected software

npmghsa
commonjs-assert
Affected versions
=1.0.3

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/15/2026, 12:39:55 UTC

Technical Analysis

The 'commonjs-assert' package (version 1.0.3) contains malicious code that executes upon import. Its 'index.js' spawns a detached Node.js child process targeting an obfuscated bundled script ('lib/chai/utils/assertion.js'). This script reconstructs a hidden URL from an encoded string array, performs an HTTP GET request to fetch remote JavaScript code, and executes the fetched code using 'new Function' with Node's 'require' context. This behavior enables silent arbitrary remote code execution on any host that requires or imports this package, effectively compromising the host environment.

Potential Impact

Any project or system that installs or imports 'commonjs-assert' version 1.0.3 will silently execute arbitrary remote code fetched at runtime, leading to a full compromise of the host environment. This can result in unauthorized control, data theft, or further malware deployment.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should immediately remove and avoid using the 'commonjs-assert' package version 1.0.3. Verify dependencies to ensure this malicious package is not included transitively. Monitor for updates from trusted sources or advisories for any official fixes or 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-10676
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a577ecd68715ace43b3ef4a

Added to database: 07/15/2026, 12:36:29 UTC

Last enriched: 07/15/2026, 12:39:55 UTC

Last updated: 07/16/2026, 03:34:26 UTC

Views: 5

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