simple-date-formatter-new-12 (npm) · Malicious Code
Affects simple-date-formatter-new-12Source GCVE Database
Malicious package : remove simple-date-formatter-new-12 and rotate any secrets on hosts that installed it.
Data as of 29 Sep 2026, 04:59 UTC
Malicious package
Published to npm · OSV MAL-2026-17229
What to do
Remove simple-date-formatter-new-12 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 |
|---|---|---|
| npmsimple-date-formatter-new-12 | 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 simple-date-formatter-new-12@1.0.0 contains malicious code in its postinstall script that executes automatically during installation. This script fetches data from an internal Baidu host and exfiltrates the response to an attacker-controlled server. The package's stated functionality is a simple date formatter, but the embedded network activity is unrelated and indicative of a dependency confusion or typosquatting attack to probe internal network access and leak data.