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 vanexa-agent (npm)

0
Critical
Published: 07/16/2026 (07/16/2026, 18:39:20 UTC)
Source: GCVE Database
Product: vanexa-agent

Description

The vanexa-agent npm package contains malicious code that establishes a persistent WebSocket connection to a hardcoded external relay controlled by an attacker. This connection allows the attacker to send commands that the agent executes on the host system with shell access, enabling arbitrary command execution. The authentication mechanism relies solely on a user-typed 6-digit code with no cryptographic protections, making it vulnerable to guessing or interception. Sensitive information, including the hostname and encrypted API keys, is transmitted to the relay. This vulnerability affects multiple specific versions of vanexa-agent and poses a critical risk of remote code execution.

Affected software

npmghsa
vanexa-agent
Affected versions
=1.1.10=1.1.9=1.1.23=1.1.46=1.1.34=1.1.39=1.1.27=1.1.18=1.1.22=1.1.28=1.1.13=1.1.45=1.1.31=1.1.41=1.1.35=1.1.33=1.1.16=1.1.11=1.1.42=1.1.8=1.1.30=1.1.36=1.1.38=1.1.17=1.1.25=1.1.37=1.1.48=1.1.26=1.1.15=1.1.24

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/07/2026, 07:43:13 UTC

Technical Analysis

The vanexa-agent package, when started, opens a persistent WebSocket connection to a hardcoded Cloudflare Workers relay URL. It processes incoming 'task_request' messages by executing shell commands on the host via spawn('/bin/bash', ['-c', command]) or equivalent on Windows. The only authentication is a 6-digit pairing code used as a session ID, with no JWT or message signing, allowing anyone controlling the relay or guessing the code to execute arbitrary commands. Configuration updates and sensitive data, including encrypted API keys and hostname, are sent to the relay. The package's README misleadingly advertises LAN-only communication, but the code forces WAN relay usage. This design constitutes a malicious backdoor enabling remote code execution on affected hosts.

Potential Impact

An attacker controlling the relay server or guessing the 6-digit session code can execute arbitrary shell commands on any host running the vulnerable vanexa-agent versions. This leads to full remote code execution, potential data exfiltration, system compromise, and lateral movement within affected environments. Sensitive configuration and encrypted API keys are also exposed to the attacker. The vulnerability effectively creates a backdoor with minimal authentication and no cryptographic protections.

Mitigation Recommendations

No official patch or fix is currently documented. Users should immediately stop running the vanexa-agent daemon and remove the package from their systems. Avoid connecting to the hardcoded relay URL and do not use the package until a vendor advisory or update is available. Monitor for any unauthorized activity on affected hosts. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.

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-10751
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a7573b5bf8831d539d93ab8

Added to database: 08/07/2026, 05:57:09 UTC

Last enriched: 08/07/2026, 07:43:13 UTC

Last updated: 08/07/2026, 07:43:13 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