Advisory

MAL-2026-16307

Also known as: None

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

Summary

Malicious code in chai-testing (npm)

Details

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

Source: amazon-inspector (da6bebc82e500e38b0ab9c507b1d56c18a05a1ffd04fcee60f0dcad991c8944a)
The package's main entry (index.js) spawns a detached node lib/caller.js when the module is required. caller.js base64-decodes a hardcoded URL (https://ipcheck-hashed.vercel.app/api/auth/...) stored in a fake process.env.DEV_API_KEY constant, POSTs to that endpoint via axios, and executes the returned body by constructing a Function and invoking it with Node's require. The endpoint and header values are base64-encoded and decoded with atob at runtime to hide the destination from review. The package name and README metadata mimic legitimate chai/pino testing and logging libraries, but the shipped code is unrelated to any advertised functionality. Requiring the module — including via the exported middleware, which invokes the dropper as a side effect — triggers execution of attacker-controlled JavaScript with full Node privileges on the installer's host.

Severity

Not rated by the source.

Dates

Published
2026-09-21 03:20 UTC
Modified
2026-09-21 03:30 UTC

Affected packages and fixes

chai-testing

npm · All systems

Affected

  • Versions: 1.1.4

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