Advisory

MAL-2026-12358

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 croft-node (npm)

Details

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

Source: amazon-inspector (8a1686ccd2fe10f98a3bf6144a0ad556b15b0f788e2395fe4808d708446ba722)
package.json declares scripts.postinstall = 'node dist/config.js'. On npm install, dist/config.js performs an outbound fetch to https://my-api.trade-api.workers.dev?id=1 and executes globalThis[data.success](data.id) using the function name and argument returned by that endpoint. The script also assigns createRequire onto globalThis prior to the dispatch, broadening the set of callable capabilities. The advertised purpose of the package is an in-memory keyed cache with TTL/LRU, which has no need for install-time network I/O; the postinstall behavior is unrelated to the documented library API. The result is remote-controlled code execution on the installer's host at install time, driven by an attacker-controlled Cloudflare Workers endpoint.

Severity

Not rated by the source.

Dates

Published
2026-08-05 13:05 UTC
Modified
2026-08-19 04:30 UTC

Affected packages and fixes

croft-node

npm · All systems

Affected

  • Versions: 1.1.1, 1.1.2, 1.1.3

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