datefmt-pro (npm) · Malicious Code
Affects datefmt-proSource GCVE Database
Malicious package : remove datefmt-pro and rotate any secrets on hosts that installed it.
Data as of 5 Aug 2026, 15:41 UTC
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
| Product | Affected | Fixed in |
|---|---|---|
| npmdatefmt-pro | Affected
| 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.