Skip to main content
MalwarePublished

datetime-format-xutil (npm) · Malicious Code

Affects datetime-format-xutilSource GCVE Database

0

Malicious package : remove datetime-format-xutil and rotate any secrets on hosts that installed it.

Data as of 13 Aug 2026, 18:08 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-13936

What to do

Remove datetime-format-xutil 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
npmdatetime-format-xutilAffected
  • =1.0.0
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 datetime-format-xutil version 1.0.0 contains malicious code that executes automatically upon installation. The postinstall.js script opens a reverse shell connection to a hardcoded IP address, allowing remote command execution on the installer's host. The package's legitimate date-format functionality is a cover for this backdoor behavior.

References

Community reviews

Loading reviews…