Skip to main content
Vulnerability Database/CVE-2026-101101

CVE-2026-101101: ag-ui-protocol ag-ui RCE Vulnerability

CVE-2026-101101 is a remote code execution flaw in ag-ui-protocol ag-ui affecting JSON.parse function in the Middleware component. Remote attackers can exploit this uncaught exception vulnerability. This post covers technical details, affected versions through 2026-09-07, impact assessment, and available mitigation strategies including upgrading to version 2026-09-08.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-101101 Overview

A vulnerability in the ag-ui-protocol/ag-ui project affects releases up to 2026-09-07. The flaw resides in the JSON.parse invocation inside legacy/convert.ts, part of the Middleware component. Malformed input triggers an uncaught exception, mapped to [CWE-248]. Remote attackers can exploit the issue without user interaction, causing availability impact on the affected middleware. Upgrading to release 2026-09-08 addresses the issue via commit 30f8c794d5b73df5c610153043db502b2cc106cc.

Critical Impact

Remote attackers can crash the middleware processing legacy AG-UI protocol messages by submitting malformed JSON, causing service disruption without authentication complexity.

Affected Products

  • ag-ui-protocol/ag-ui releases up to 2026-09-07
  • TypeScript client SDK (sdks/typescript/packages/client)
  • legacy/convert.ts Middleware component

Discovery Timeline

  • 2026-09-28 - CVE CVE-2026-101101 published to NVD
  • 2026-09-28 - Last updated in NVD database

Technical Details for CVE-2026-101101

Vulnerability Analysis

The defect lives in the legacy conversion path of the AG-UI TypeScript client. The convert.ts module calls JSON.parse on inbound data without wrapping the call in a try/catch block. When the middleware receives non-conforming JSON, the runtime raises a SyntaxError that propagates upward and terminates the processing loop. This behavior aligns with [CWE-248] Uncaught Exception. The impact is limited to availability of the middleware component; confidentiality and integrity are not affected.

Root Cause

The function invokes JSON.parse on attacker-controllable input while assuming well-formed payloads. Without exception handling, any invalid character or truncated message crashes the caller. The upstream fix, tracked under GitHub Issue #2444 and merged via Pull Request #2493, introduces a guard around the parser and cleanly imports the LegacyRunError type used to surface parsing failures.

Attack Vector

Exploitation requires network reach to an endpoint that funnels data through the legacy middleware. An attacker submits a crafted message with malformed JSON. The parser throws, the handler exits, and the processing pipeline becomes unavailable until restart. Authentication is required at a low level, but no user interaction is needed.

typescript
// Patch excerpt from sdks/typescript/packages/client/src/legacy/convert.ts
// Source: https://github.com/ag-ui-protocol/ag-ui/commit/30f8c794d5b73df5c610153043db502b2cc106cc
   LegacyActionExecutionMessage,
   LegacyResultMessage,
   LegacyActionExecutionResult,
-  LegacyRunError
+  LegacyRunError,
 } from "./types";
 import untruncateJson from "untruncate-json";

The committed change imports LegacyRunError for structured error propagation, part of the broader guard added around the JSON.parse call to convert parser failures into recoverable errors rather than uncaught exceptions.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-101101

Indicators of Compromise

  • Repeated SyntaxError: Unexpected token entries in Node.js runtime logs originating from legacy/convert.ts
  • Abrupt termination or restart cycles of processes hosting the AG-UI middleware
  • Inbound requests containing truncated or malformed JSON directed at legacy AG-UI endpoints

Detection Strategies

  • Monitor application logs for unhandled SyntaxError exceptions in the AG-UI TypeScript client call stack
  • Instrument middleware with structured logging to capture parser failure rates per source IP
  • Baseline normal request payload validity and alert on sudden spikes in invalid JSON bodies

Monitoring Recommendations

  • Track process uptime and restart counts for services embedding ag-ui-protocol versions at or below 2026-09-07
  • Correlate spikes in HTTP 5xx responses with parser exceptions in application telemetry
  • Forward middleware logs to a central analytics platform for anomaly review

How to Mitigate CVE-2026-101101

Immediate Actions Required

  • Upgrade ag-ui-protocol/ag-ui to release 2026-09-08 or later
  • Audit dependent projects for pinned versions of the TypeScript client SDK
  • Restart middleware services after upgrading to clear any cached vulnerable modules

Patch Information

The fix is committed as 30f8c794d5b73df5c610153043db502b2cc106cc and shipped in the GitHub Release 2026-09-08. Reference material is available in GitHub Issue #2444, GitHub Pull Request #2493, and the VulDB entry for CVE-2026-101101.

Workarounds

  • Wrap calls into the legacy middleware with an upstream validator that rejects malformed JSON before it reaches convert.ts
  • Deploy a reverse proxy or API gateway rule to enforce Content-Type: application/json and schema validation
  • Restrict network exposure of legacy AG-UI endpoints to trusted clients until the upgrade is applied
bash
# Update the TypeScript client SDK to the patched release
npm install @ag-ui-protocol/client@2026-09-08

# Verify the installed version references the patched commit
npm ls @ag-ui-protocol/client

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.