Skip to main content
MalwarePublished

formatters.ts (npm) · Malicious Code

Affects formatters.tsSource GCVE Database

0

Malicious package : remove formatters.ts and rotate any secrets on hosts that installed it.

Data as of 16 Jul 2026, 14:31 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-10683

What to do

Remove formatters.ts 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
npmformatters.tsAffected
  • =14.2.1
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 'formatters.ts' version 14.2.1 contains malicious code that executes during installation. It runs a preinstall hook executing index.js, which collects detailed host and user system information and sends it to a hardcoded external server. The package appears to be a dependency-confusion typosquat with empty metadata, designed solely to perform reconnaissance on the victim's environment.

References

Community reviews

Loading reviews…