Skip to main content
MalwarePublished

type-unique (npm) · Malicious Code

Affects type-uniqueSource GCVE Database

0

Malicious package : remove type-unique 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-10512

What to do

Remove type-unique 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-uniqueAffected
  • =3.1.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-unique version 3.1.3 is malicious. It impersonates the pino logger but executes a detached child process that fetches and runs remote JavaScript code with full Node.js privileges. This remote code execution allows an attacker to run arbitrary code on any system that loads this package. The malicious payload is fetched from unauthenticated third-party JSON hosting services controlled by the attacker. Systems with this package installed should be considered fully compromised, and secrets should be rotated. Removal of the package alone may not eliminate all malicious artifacts.

References

Community reviews

Loading reviews…