json-validator-utils (npm) · Malicious Code
Affects json-validator-utilsSource GCVE Database
Malicious package : remove json-validator-utils and rotate any secrets on hosts that installed it.
Data as of 5 Aug 2026, 17:04 UTC
Malicious package
Published to npm · OSV MAL-2026-12182
What to do
Remove json-validator-utils 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 |
|---|---|---|
| npmjson-validator-utils | 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 json-validator-utils npm package contains malicious code that acts as a multi-stage dropper. When its public API (validateJson/validateXml) is called, it decodes a hardcoded command-and-control URL and downloads a platform-specific payload. This payload is executed on the host system and establishes persistence by creating and enabling systemd units on Linux or LaunchAgents plists on macOS. The execution is delayed by checking the system uptime to evade short-lived sandbox analysis.