date-format-utils-xz (npm) · Malicious Code
Affects date-format-utils-xzSource GCVE Database
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
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
| Product | Affected | Fixed in |
|---|---|---|
| npmdate-format-utils-xz | 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 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
- npmjs.com/package/date-format-utils-xz/v/1.0.3 (opens in a new tab)
- npmjs.com/package/date-format-utils-xz/v/1.0.4 (opens in a new tab)
- research.codelake.dev/advisories/clr-2026-3039-date-format-utils-xz (opens in a new tab)
- npmjs.com/package/date-format-utils-xz/v/1.0.2 (opens in a new tab)
- npmjs.com/package/date-format-utils-xz/v/1.0.1 (opens in a new tab)
- npmjs.com/package/date-format-utils-xz/v/1.0.0 (opens in a new tab)