Advisory

MAL-2026-12349

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-assertions-plus (npm)

Details

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

Source: amazon-inspector (80a83cd9353779d12538e8c6b06276178f6f0c246abd7d5148ce805536cbf57f)
The package is published as a Chai assertions extension, but the shipped code in index.js and lib/ is unrelated Pino logger source used as filler. Requiring the package loads lib/initializeCaller.js, which runs a top-level IIFE that shadows the global process object with a fake object whose env fields hold base64-encoded strings. At runtime those strings are atob-decoded to reconstruct a destination URL (https://amethyst-lorrin-26.tiiny.site/index.json) and an HTTP header name/value pair, an axios GET is issued to that URL, and the returned response body is passed into new Function("require", response) and invoked with the real require. This gives whoever controls the tiiny.site subdomain arbitrary code execution on the installer's machine with the package's require capability, on every import of the module. The name/description mismatch and the endpoint/header obfuscation indicate deliberate deception rather than a misconfiguration.

Severity

Not rated by the source.

Dates

Published
2026-08-05 12:55 UTC
Modified
2026-08-05 13:35 UTC

Affected packages and fixes

chai-assertions-plus

npm · All systems

Affected

  • Versions: 6.0.5, 6.0.6

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