Abstract technical illustration on a dark navy field: a wide translucent boundary encloses a row of small geometric panels representing a server; a single thin request line enters the boundary without any credential token beside it, and where it crosses the boundary it turns amber and then continues straight into a small square doorway on one panel, through which a thin cyan filament escapes and runs off the right edge of the frame. A second, identical request line is stopped at the boundary by a short white bar. No text, people or organisation logos appear. The OrcaRouter logo is composited in the bottom-right corner.
AI Safety Incidents

AgentScope's MCP Workspace Starts Whatever Program You Name — CVE-2026-123022

Author

Alistair Wren

Date Published

Latest models · 20View all models →
Benchmarks: Artificial Analysis · updated daily
Back to all posts

On 5 November 2026 the VulDB CNA published CVE-2026-123022, an OS command-injection flaw (CWE-78) in the MCP Workspace API of AgentScope, the open-source multi-agent framework maintained by agentscope-ai — and as of 9 November 2026 no fixed release exists, because the newest version on PyPI is still 2.0.11, the last version the CVE lists as affected. A caller who can reach an exposed AgentScope agent service registers a stdio MCP whose command field names any local executable, and the server spawns that program as the user running the service; the reporter's proof of concept wrote a marker file on a Windows 11 host on 8 July 2026. No in-the-wild exploitation has been reported. This record is one entry in the AI incident archive, which holds it alongside the other agent-infrastructure and MCP vulnerabilities of the past year, each with its own sources, severity, confidence grade and disputed flag.

AgentScope is not a small side project. Its GitHub repository describes it as a framework to "build and run agents you can see, understand and trust", is licensed Apache-2.0, and carried roughly 35,600 stars when queried on 9 November 2026. The framework ships an agent service — a FastAPI application with the workspace, session, agent and credential routers — and, in the repository's own example deployment file examples/agent_service/main.py, binds it to 0.0.0.0 on port 8000. That is the surface the CVE is about: not the model, not the prompt, but the endpoint an operator exposes so that agents and their tools can be managed remotely.

What the flaw actually is

An MCP stdio server is not a URL. In the Model Context Protocol specification it is a program name plus an argument list, which the host is expected to start and then talk to over standard input and output. AgentScope lets a caller define one over HTTP: POST /workspace/mcp, implemented at src/agentscope/app/_router/_workspace.py, accepts a JSON body containing an mcp_config of type stdio_mcp. In the 2.0.11 source, StdioMCPConfig.command in src/agentscope/mcp/_config.py is declared as a plain string with no validator, no allowlist and no trusted-directory restriction, and caller-supplied args, env and cwd travel beside it.

The value is then handed to the MCP SDK. In 2.0.11, src/agentscope/mcp/_mcp_client.py passes config.command and config.args into StdioServerParameters and stdio_client, the SDK transport that spawns a child process with subprocess.Popen. The CVE description, written by VulDB, attributes that Popen call to _config.py; in the source the field is defined there and the spawn happens one layer down, in the SDK. Either way the effect is the same and the reporter states it without hedging: the string a remote caller puts in command becomes a process on the host.

Timing is what makes it a single request rather than a two-step setup. For a stateful MCP — and stdio clients are always stateful — LocalWorkspace.add_mcp calls mcp_client.connect() before the request returns. In 2.0.11 that is the is_stateful and not is_connected branch at src/agentscope/workspace/_local_workspace.py, which awaits connect() and only then saves the workspace file. The process is already running when the MCP handshake fails, which is why the reporter's evidence is an HTTP 500 alongside a file that exists.

What made the endpoint reachable without a credential is a separate design decision in the same application. get_current_user_id in src/agentscope/app/deps.py reads the X-User-ID request header, rejects only the empty string, and returns whatever the caller sent as the authenticated identity. Its own docstring calls it a "Temporary header-based identity; will be replaced by JWT auth." Every workspace route depends on it, so "unauthenticated" in the CVE description means what it sounds like: a non-empty header of the attacker's choosing is the whole of the authentication.

Established, and not established

HTML card titled 'What the record establishes — and what it does not', kicked 'Record 2026-11-05-agentscope-mcp-command-injection-cve-2026-123022' and subtitled with its source list: the VulDB CVE record and NVD's copy of CVE-2026-123022 dated 5 November 2026, OpenCVE, AgentScope issue #3312 and pull request #3448, the reporter's advisory, and Red Hat's CVE page. Two columns run side by side. The left column, headed 'Established' in cyan and subheaded 'Present in the source at tag 2.0.11, or stated by a cited source', lists six items: CWE-78 and CWE-77 OS command injection, with StdioMCPConfig.command in src/agentscope/mcp/_config.py a plain string with no validator or allowlist that is passed to the MCP SDK's subprocess.Popen spawn; versions 2.0.0 through 2.0.11 listed as affected in the CVE record and mirrored by NVD; POST /workspace/mcp resolving identity from the caller-supplied X-User-ID header, checked only for non-emptiness; the process starting on save for stateful stdio MCPs, before the handshake, because add_mcp() awaits connect() first; a marker-file proof of concept against 2.0.4 on Windows 11 on 8 July 2026 per the reporter, with an independent reproduction posted on the issue on 15 October 2026; and no fixed release, since 2.0.11 is still the newest version on PyPI as of 27 October 2026 and pull request #3448 is open, unreviewed and unmerged. The right column, headed 'Not established' in amber and subheaded 'Absent from every cited source as of 9 November 2026', lists six items: no in-the-wild exploitation, with NVD's SSVC block reading exploitation none and no CISA KEV entry; NVD's status still 'Deferred' four days after publication, with no NVD analysis of its own; no maintainer-written GitHub Security Advisory, since GHSA-m997-8g56-6phf is an unreviewed import of the CVE with severity 'medium'; no count of exposed deployments and no statement from the maintainers in the public thread; no fixed version to upgrade to and no security release scheduled; and severity that does not agree — 7.3 High, 6.9 Medium, 5.5 Medium, 7.5 High, and a Red Hat rating of Critical impact. A footer reads 'Facts as published by the VulDB CVE record and NVD, OpenCVE, GitHub issue #3312 and PR #3448, the reporter's advisory, Red Hat and PyPI. Card rendered by OrcaRouter.' The OrcaRouter logo is composited in the bottom-right corner.

The mechanics above are not a reading of one sentence in a database. They are in AgentScope's own source at the 2.0.11 tag, and they are described in the same terms by the person who found the flaw. GitHub issue #3312, opened on 14 October 2026 by the researcher posting as ybyu-ieu and labelled triage/confirmed by the maintainers, walks the path line by line: the unvalidated command field, the _initialize_client() hand-off, the endpoint that resolves identity from a header, and add_mcp() connecting immediately. The issue says the flaw was first reported privately through GitHub's private vulnerability reporting on 8 July 2026, and that the advisory it opened then — cited as GHSA-h4fc-fmm3-h8hg — was still in triage with no maintainer response when the researcher checked on 30 August 2026; that advisory identifier now returns 404 from GitHub's advisory API, so the claim cannot be checked from the outside.

The proof of concept is a marker file, not a breach. The researcher's write-up, linked from the CVE record as an exploit reference, says the test ran on 8 July 2026 against agentscope 2.0.4 installed from PyPI on a Windows 11 host, with the example agent service bound to 0.0.0.0:8000 in the default LocalWorkspace mode. The request registered an MCP whose command was cmd with arguments that echoed a marker string into a file; the HTTP response was a 500 or a timeout, the MCP handshake having failed, and the file containing the marker was on disk afterwards. A second commenter, posting as Koawa265Richard31 on 15 October 2026, said they had reproduced it independently against a live deployment on the main branch, registering calc with no arguments and observing the calculator process, then whoami with output redirected to a file. Two reproductions by two accounts on the same public thread is corroboration of the mechanism; it is not evidence that anyone used it against a system they did not control.

That last distinction is where the record's grading comes from, and it is worth stating plainly. Established: the code path exists in the published versions, the endpoint requires no real credential, the process is spawned before any handshake, and no fixed release is available. Not established: any in-the-wild exploitation, any count of exposed AgentScope deployments, any maintainer statement in the public thread, and any upstream advisory written by the maintainers rather than imported from the CVE. NVD's entry for CVE-2026-123022 carried the status "Deferred" on 9 November 2026, four days after publication, which means NVD has not produced its own analysis. The archive records this as confidence B for exactly that reason — documented, but from a single originating submission and the trackers that copy it.

Four scores and one rating, all for the same flaw

HTML card titled 'Six dates and five scores, none of them a consensus', kicked 'CVE-2026-123022 · the record in dates' and subtitled 'Dates as published by GitHub issue #3312, PR #3448, PR #3329, PyPI and the CVE record. Scores are what each body assigned; no source in the record reconciles them.' Two columns run side by side. The left column, headed 'The dates' in cyan and subheaded 'Disclosure, reproduction, publication, and the fix that has not landed', carries six dated rows. 8 July 2026: the reporter says the flaw went to the maintainers through GitHub private vulnerability reporting as GHSA-h4fc-fmm3-h8hg, an identifier that now returns 404. 8 July 2026: proof of concept run against agentscope 2.0.4 on Windows 11 with the service on 0.0.0.0:8000, creating a marker file. 14 October 2026: GitHub issue #3312 opened publicly and labelled triage/confirmed, still open on 9 November. 23 October 2026: pull request #3448 opened — an opt-in stdio allowlist, default unchanged, no authentication, no sandbox — using 'Refs', not 'Fixes'. 27 October 2026: AgentScope 2.0.11 published on PyPI, still the newest version and the last one the CVE lists as affected. 5 November 2026: CVE-2026-123022 published by the VulDB CNA at 13:15 UTC and mirrored by NVD at 14:17 UTC with status Deferred. The right column, headed 'The scores' in amber and subheaded 'One flaw, five published numbers', lists six rows: CVSS 3.1 — 7.3 High, from the CVE record, NVD and GitHub's advisory database; CVSS 4.0 — 6.9 Medium, per the CVE record and OpenCVE; CVSS 4.0 — 5.5 Medium, as stored in NVD's own copy of the record; CVSS 2.0 — 7.5 High, a secondary score in the CVE record; Red Hat impact — Critical, with the note that AgentScope is not shipped in Red Hat Enterprise Linux; and the reporter's own vector — 9.8, proposed in the advisory and not adopted. A footer reads 'Dates and scores as published by the VulDB CVE record, NVD, OpenCVE, GitHub's advisory database, Red Hat, PyPI, AgentScope issue #3312 and PR #3448. Card rendered by OrcaRouter.' The OrcaRouter logo is composited in the bottom-right corner.

The scores do not agree, and the disagreement is not a rounding difference. The CVE record assigns CVSS 3.1 a base score of 7.3, High, on the vector AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L — network reachable, no privileges, no user interaction, but only low impact on confidentiality, integrity and availability. The same record assigns CVSS 4.0 a base score of 6.9, Medium. NVD's copy of the record stores 5.5, Medium, for CVSS 4.0. Red Hat's page for the CVE goes the other way and rates it Critical impact, explaining that "unauthenticated network users can execute arbitrary commands with the privileges of the running application, resulting in complete compromise of host confidentiality, integrity, and availability", while adding that AgentScope is not included in Red Hat Enterprise Linux or other supported Red Hat distributions, so default Red Hat deployments are not exposed unless someone deployed the framework themselves.

The low-impact side of the disagreement is not unreasonable if you read the CVSS 3.1 vector literally: the injection lets an attacker name a program and its arguments, but the confidentiality, integrity and availability impacts are scored Low rather than High, which is what pulls 7.3 down from the 9.8 the reporter proposed. The reporter's own advisory anticipates the other reading, noting that if maintainers decided affected deployments require prior administrative access, the privileges-required metric should move and the same vector would score 8.8. Nobody in the record has adjudicated the difference. The archive's own severity field is high, and it is a separate judgement again: the record explains that its severity grades what has already happened, so an unauthenticated-RCE-class flaw with no known exploitation is recorded high rather than critical.

The fix is a pull request that has not been merged

The remedy the CVE points to is pull request #3448 on agentscope-ai/agentscope, opened on 23 October 2026 by Deepak-Khimavath and still open, unreviewed and unmerged when checked on 9 November 2026. Its own description is careful about what it does and does not do. It adds an opt-in allowlist — create_app(..., allowed_stdio_commands=["npx", "uvx"]) — and when the list is set, a stdio MCP whose command is not on it is rejected with a 403 before the workspace starts it. Matching is exact, so a path-prefixed or differently-cased variant of an allowed name does not pass. The default is None, which leaves behaviour unchanged, and the author says so explicitly: with the default, "this endpoint is exactly as exposed as before". It does not add authentication, does not sandbox the spawned process, and uses Refs rather than Fixes on the issue for that reason.

The authentication half is a second pull request, #3329, also open and unmerged, adding an opt-in shared-key gate driven by an AGENTSCOPE_API_KEY environment variable. Between the two, the shipped state as of 9 November 2026 is a framework whose newest release, 2.0.11, contains the vulnerable field and whose two mitigations both wait on a human decision to merge and release. The pattern is not unusual for a project this size, and it is the reason the CVE description ends with the flat sentence that "the pull request to fix this issue awaits acceptance".

What an operator can do in the meantime comes from the reporter rather than from the vendor, and it is all exposure reduction rather than a patch. Bind the agent service to 127.0.0.1 instead of 0.0.0.0. Block POST /workspace/mcp at the network or reverse-proxy layer. Disable or restrict external access to the MCP Workspace API entirely. If stdio MCPs must stay available, put the service where a spawned process cannot reach anything valuable, because Docker and E2B workspace backends contain the process inside their sandbox — the reporter notes the command still executes there, it just executes contained. Red Hat's page records no mitigation meeting its own product-security criteria, which is a statement about Red Hat's packaging rather than about the fix.

Why a public exploit and an empty news cycle can both be true

Abstract technical illustration on a dark navy field with a faint slate grid: on the left third a single small warm amber rectangular plane stands at a slight angle, glowing softly, with three thin concentric rings around it like emitted signal. From it, one thin pale beam travels horizontally to the right across a wide empty gap. On the right two thirds, a large regular array of identical flat panels recedes in perspective, all of them dark, matte, unlit and blank; the beam reaches them without brightening them, and a very faint pool of light sits on the nearest two panels only. No text, people or organisation logos appear. The OrcaRouter logo is composited in the bottom-right corner.

VulDB's description says "the exploit is now public and may be used", and that is a statement about disclosure, not about attacks. The exploit that is public is the reporter's own write-up with a copy-paste reproduction, published alongside the issue; OpenCVE's enrichment page restates this as "exploits are actively available" and scores exploitation likelihood with FIRST's EPSS at 0.01638 — 1.6%, with a percentile of 76.5% — as of 8 November 2026. CISA's SSVC decision points in NVD's copy of the record read exploitation: none, automatable: yes, technical impact: total. There is no KEV entry. The archive records real_harm: false on that basis: a working exploit anyone can read, and no evidence anyone has used it against a system they did not own.

Independent reporting is the part that does not exist. Searches on 8 and 9 November 2026 for the CVE identifier and for the AgentScope workspace flaw returned no news coverage, no security-vendor blog and no mailing-list thread. GitHub's own search returns the issue and the pull request, and nothing else beyond other projects that keep daily advisory sweeps. Every database entry — NVD's deferred record, OpenCVE's page, GitHub's GHSA-m997-8g56-6phf, Red Hat's assessment — either copies the VulDB text or restates it; none of them adds an independent test. GitHub's advisory entry is worth naming precisely, because it looks like the vendor advisory the record says is missing: GHSA-m997-8g56-6phf was created on 5 November 2026, carries the same VulDB description, lists severity "medium" while quoting a CVSS 3.1 score of 7.3, and has an empty github_reviewed_at field, meaning GitHub has not reviewed it. It is an import of the CVE, not a maintainer statement.

That is the gap this record sits in, and it is the honest shape of most vulnerability disclosures in fast-moving agent infrastructure. The code is public and readable, the flaw is demonstrated twice on a public thread, a CVE number and four disagreeing scores exist, and the thing that would settle it — a maintainer advisory, a fixed release, an NVD analysis, a single independent news report — has not arrived. Anyone running AgentScope's agent service on a reachable interface should treat the exposure as real now rather than waiting for the paperwork, because the paperwork is what is missing, not the bug.