Advisory

MAL-2026-13719

Also known as: GHSA-mfjj-4625-mpvr

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in commonjs-assertion (npm)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (29c3fd028dc7e2493e59a3f81bb26702030dac0a64a42d845bd23ea116352f94)
Package presents itself as a chai-like assertion library. index.js uses hex-encoded strings to hide the identifiers 'child_process' and 'node' and, on require, unconditionally invokes child_process.spawn to launch a detached, stdio-ignored node child running lib/chai/utils/assertion.js. That file is a heavily obfuscated loader (obfuscator.io rotated string array plus a custom base64/URI decoder) whose decoded logic performs an HTTP GET to a URL reconstructed from the encoded string array and passes the response body to new Function(..., body)(require), granting the fetched remote code full Node access. The assertion.js file is not referenced by chai's real code and is only reachable via the hex-hidden spawn in index.js. Importing the package causes remote code execution on the installer's host at load time.

Source: ghsa-malware (0d9cb8e89c50d78130775904af2df0dc68d2fa17454fcd0c042e273c51e40855)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Severity

Not rated by the source.

Dates

Published
2026-08-10 15:52 UTC
Modified
2026-08-11 12:30 UTC

Affected packages and fixes

commonjs-assertion

npm · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences