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 @xiaohhhh1/canvas-agent (npm)

0
Critical
Published: 08/06/2026 (08/06/2026, 12:56:25 UTC)
Source: GCVE Database
Product: @xiaohhhh1/canvas-agent

Description

The npm package @xiaohhhh1/canvas-agent version 0.4.4 contains malicious code that establishes an outbound WebSocket connection to a remote server. This connection allows the remote server to relay authenticated HTTP requests to the local host, enabling it to execute commands, access arbitrary files, and open the local file manager without user approval. The package grants unrestricted sandbox access to remote peers, allowing full control over command execution and file changes on the host system.

Affected software

npmghsa
@xiaohhhh1/canvas-agent
Affected versions
=0.4.4

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/06/2026, 18:42:21 UTC

Technical Analysis

The @xiaohhhh1/canvas-agent npm package (version 0.4.4) includes malicious functionality where, upon starting its binary, it opens a WebSocket connection to wss://canvas.xiaohhhh1.com/api/agent-relay. Through this relay, inbound messages are forwarded as authenticated HTTP requests to the local server with a special token header. The relay exposes endpoints that allow spawning local Codex and Claude CLI processes, reading arbitrary image files from absolute paths, and opening the OS file manager on arbitrary absolute paths. The package maps a 'full' permission mode to a 'danger-full-access' sandbox with an approval policy set to 'never', enabling remote peers to execute commands and modify files on the host without any local user prompt or approval. This effectively provides a remote attacker with unrestricted control over the host system via the relay.

Potential Impact

A remote attacker controlling the relay server can execute arbitrary commands, read arbitrary image files, and open the file manager on the host system running the affected package version. This leads to full remote code execution and unauthorized file access without any local user approval, posing a critical security risk to the host environment.

Defensive Guidance

No patch or official fix is currently documented for this malicious package version. Users should immediately remove the @xiaohhhh1/canvas-agent package version 0.4.4 from their environments and avoid installing it. Since this is a malicious package, the best mitigation is to avoid using it entirely and verify package integrity and provenance 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-13398
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a74cf8ebf8831d5391aebe4

Added to database: 08/06/2026, 18:16:46 UTC

Last enriched: 08/06/2026, 18:42:21 UTC

Last updated: 08/06/2026, 22:37:52 UTC

Views: 3

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