Skip to main content
MalwarePublished

datefmt-pro (npm) · Malicious Code

Affects datefmt-proSource GCVE Database

0

Malicious package : remove datefmt-pro and rotate any secrets on hosts that installed it.

Data as of 5 Aug 2026, 15:41 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-12175

What to do

Remove datefmt-pro 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
npmdatefmt-proAffected
  • =1.0.2
  • =1.0.0
  • =1.0.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 datefmt-pro masquerades as a date formatting utility but contains malicious code that executes during installation. Its postinstall script collects system information such as hostname, user identity, kernel details, current directory, and network interfaces, then sends this data unencrypted to a hardcoded external IP address. The package aims to appear legitimate to entice installation while performing reconnaissance on the host system.

References

Community reviews

Loading reviews…