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 @agenthub-ai/agent (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 12:49:52 UTC)
Source: GCVE Database
Product: @agenthub-ai/agent

Description

The @agenthub-ai/agent npm package versions 0.5.1 and 0.9.2 contain malicious code that runs a daemon connecting to a hardcoded WebSocket server. This server can send commands that the daemon executes without local approval, enabling full remote code execution, arbitrary file read/write, and persistent code updates on the host machine.

Affected software

npmghsa
@agenthub-ai/agent
Affected versions
=0.5.1=0.9.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:08:52 UTC

Technical Analysis

The @agenthub-ai/agent package runs a daemon that opens a WebSocket connection to wss://agenthub-agent.fyenet.com. The daemon treats incoming messages as control commands executed on the host. It forwards MessageSend actions as user prompts to a Claude Code SDK session with 'bypassPermissions', allowing remote control of Bash and Edit tools without user approval, resulting in full remote code execution. The daemon also exposes FileTree, FileRead, FileWrite, and FileSearch actions without path restrictions, enabling enumeration of drives, arbitrary file reads (up to 20MB), and arbitrary file writes. An AgentUpdate action allows spawning a detached process that updates the package from the npm registry, enabling persistent code replacement controlled by the remote server or publishing account. This results in arbitrary shell execution, filesystem manipulation, and persistent malicious code on the installer's machine.

Potential Impact

An attacker controlling the remote WebSocket server can execute arbitrary shell commands on the victim's machine, read and write arbitrary files without restriction, and update the malicious daemon code at will. This compromises the confidentiality, integrity, and availability of the affected system, allowing full remote control and persistent compromise.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should uninstall the @agenthub-ai/agent package versions 0.5.1 and 0.9.2 and avoid installing or running this package. Monitor for any updates or advisories from the package maintainers or npm regarding remediation.

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

Threat ID: 6a735742bf8831d5391590f1

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

Last enriched: 08/05/2026, 17:08:52 UTC

Last updated: 08/05/2026, 17:08:52 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