Skip to main content
MalwarePublished Updated

date-format-utils-xz (npm) · Malicious Code

Affects date-format-utils-xzSource GCVE Database

0

Malicious package : remove date-format-utils-xz and rotate any secrets on hosts that installed it.

Data as of 26 Oct 2026, 16:10 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-11001

What to do

Remove date-format-utils-xz 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
npmdate-format-utils-xzAffected
  • 1.0.0 – 1.0.4
5 affected builds
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 date-format-utils-xz versions 1.0.3 and 1.0.4 contains malicious code that executes automatically upon installation. The postinstall.js script performs host reconnaissance commands and collects environment variables, including potential CI/build secrets. It also queries cloud instance metadata endpoints for AWS, Aliyun, and Tencent Cloud to harvest temporary IAM/role credentials. The collected data is sent unencrypted to a hardcoded external IP address. The package is disguised as a legitimate date-formatting utility but is confirmed malicious by internal comments.

References

Community reviews

Loading reviews…