Skip to main content

CVE-2026-51856: n/a

0
Critical
VulnerabilityCVE-2026-51856cvecve-2026-51856
Published: 09/30/2026 (09/30/2026, 00:00:00 UTC)
Source: CVE Database V5

Description

CVE-2026-51856 is a vulnerability in agentscope versions 1.0.18 and 1.0.19 where the RealtimeAgent session exposes an execute_python_code tool that can be invoked remotely via WebSocket. This allows a remote user to execute arbitrary Python code in the service environment without additional approval or isolation.

Affected software

agentscope
pkg:npm/agentscope
Affected versions
=1.0.18=1.0.19

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: 09/30/2026, 21:18:28 UTC

Technical Analysis

In agentscope versions 1.0.18 and 1.0.19, the RealtimeAgent session exposes execute_python_code as an available tool. A remote WebSocket user can prompt the agent to call this tool, leading to execution of arbitrary Python code in the service environment. The vulnerability arises because RealtimeAgent._acting forwards the model-produced tool call to Toolkit.call_tool_function, which invokes execute_python_code without any additional approval or isolation boundary on this path.

Potential Impact

A remote attacker with access to the WebSocket interface can execute arbitrary Python code on the affected system, potentially leading to full compromise of the service environment. This could allow unauthorized actions, data access, or system manipulation depending on the environment's privileges.

Mitigation Recommendations

No patch or official fix information is provided. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict or disable access to the RealtimeAgent session's execute_python_code tool over WebSocket to prevent remote code execution.

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

Technical Details

Data Version
5.2
Assigner Short Name
mitre
Date Reserved
2026-06-08T00:00:00.000Z
State
PUBLISHED

Threat ID: 6abd79352a4e24523d9783cf

Added to database: 09/30/2026, 21:03:49 UTC

Last enriched: 09/30/2026, 21:18:28 UTC

Last updated: 09/30/2026, 22:30:27 UTC

Views: 6

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