Advisory

MAL-2026-10510

Also known as: GHSA-q9rm-w335-55w5

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

Summary

Malicious code in type-astr (npm)

Details

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

Source: amazon-inspector (89817054cec44ec8ba09dd26af025483096055c0a931172bd4a63910dceb87fc)
The package presents itself as a pino-compatible logger (exports a middleware aliased as pino, ships pino-like files such as proto.js, redaction.js, multistream.js, transport.js) but its actual runtime effect is to launch a remote code loader. Requiring the package invokes a middleware factory that spawns a detached Node child process running lib/caller.js. That script decodes a base64-encoded URL constant (DEV_API_KEY = "aHR0cHM6Ly9qc29ua2VlcGVyLmNvbS9iL1hSR0Yz" → https://jsonkeeper.com/b/XRGF3; additional endpoints include https://jsonkeeper.com/b/4NAKK and https://jsonhosting.com/api/json/f1a66ab0/raw), fetches the JSON document via axios, extracts a cookie field, and passes its contents to new Function.constructor("require", s)(require), executing attacker-controlled JavaScript in the installer's Node process with full require access. The remote endpoints are anonymous paste-style hosts whose content can be changed by whoever controls the paste at any time.

Source: ghsa-malware (b25d072087a2be4f11831e169658d1db0a6e11b04ae263f28bca9756f3c60288)
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-07-13 22:17 UTC
Modified
2026-07-13 22:46 UTC

Affected packages and fixes

type-astr

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