Skip to main content
MalwarePublished

type-astr (npm) · Malicious Code

Affects type-astrSource GCVE Database

0

Malicious package : remove type-astr and rotate any secrets on hosts that installed it.

Data as of 14 Jul 2026, 09:46 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-10510

What to do

Remove type-astr from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmtype-astrAffected
  • =3.2.3
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package 'type-astr' version 3.2.3 is a malicious package masquerading as a pino-compatible logger. When required, it launches a detached Node.js child process that fetches attacker-controlled JavaScript code from remote anonymous paste-style hosting services and executes it with full Node.js require access. This results in full compromise of any system running or having installed this package. Immediate removal and secret/key rotation are strongly advised, though full remediation may require rebuilding the affected system due to potential persistent compromise.

References

Community reviews

Loading reviews…