Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in json-validator-utils (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 09:09:29 UTC)
Source: GCVE Database
Product: json-validator-utils

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.

Affected software

npmghsa
json-validator-utils
Affected versions
=1.1.0=1.0.1=1.0.0=1.1.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/05/2026, 17:04:58 UTC

Technical Analysis

The json-validator-utils package versions 1.0.0, 1.0.1, 1.1.0, and 1.1.2 include a malicious multi-stage dropper embedded in lib/core.js. The dropper triggers on calls to validateJson or validateXml functions, decoding an XOR-encrypted C2 URL that points to a GitHub-hosted manifest. This manifest provides platform- and architecture-specific payload URLs, which are downloaded to temporary directories and executed (using cscript on Windows, shell scripts on Linux/macOS). The malware delays execution until the system uptime exceeds 300 seconds to avoid detection in ephemeral environments. On Linux, it achieves persistence by writing a randomly named systemd user unit and enabling it; on macOS, it writes a LaunchAgents plist and loads it, ensuring the attacker-controlled code runs on startup.

Potential Impact

This malicious package can execute arbitrary attacker-controlled code on the host system with persistence mechanisms, potentially leading to full system compromise. The delayed execution evades sandbox detection, increasing the risk of undetected infection. The persistence methods allow the malware to survive reboots on Linux and macOS systems. There is no indication of known exploits in the wild at this time.

Mitigation Recommendations

No official patch or remediation is currently documented for this malicious package. Users should immediately remove json-validator-utils versions 1.0.0, 1.0.1, 1.1.0, and 1.1.2 from their environments. Avoid using this package and audit systems for any signs of the described persistence mechanisms (random systemd user units or LaunchAgents plists). Monitor for unexpected network connections to the indicated C2 domains. Consider using trusted package sources and verifying package integrity before installation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-12182
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a735741bf8831d539157606

Added to database: 08/05/2026, 15:31:13 UTC

Last enriched: 08/05/2026, 17:04:58 UTC

Last updated: 08/05/2026, 17:04:58 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses