Skip to main content
MalwarePublished

json-validator-utils (npm) · Malicious Code

Affects json-validator-utilsSource GCVE Database

0

Malicious package : remove json-validator-utils and rotate any secrets on hosts that installed it.

Data as of 5 Aug 2026, 17:04 UTC

Classification

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

ProductAffectedFixed in
npmjson-validator-utilsAffected
  • 1.0.0 – 1.1.2
4 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 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.

References

Community reviews

Loading reviews…