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

CVE-2026-101100: ag-ui Middleware RCE Vulnerability

CVE-2026-101100 is a remote code execution vulnerability in ag-ui middleware affecting FilterToolCallsMiddleware. The flaw allows attackers to exploit incomplete cleanup. This article covers technical details, affected versions, and patches.

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-101100 Overview

A flaw exists in the ag-ui-protocol/ag-ui project affecting releases up to 2026-09-07. The vulnerability resides in the FilterToolCallsMiddleware function within sdks/typescript/packages/client/src/middleware/filter-tool-calls.ts. Manipulation of the middleware can trigger incomplete cleanup [CWE-459], leaving residual state that an attacker can exploit remotely with low privileges. The maintainers resolved the issue in release 2026-09-08 through commit c346119fe870b70f5c19738ee5119f3e1456e59d.

Critical Impact

Remote attackers with low privileges can manipulate the client-side middleware to leave residual tool-call state, producing limited integrity and availability impact on downstream agent workflows.

Affected Products

  • ag-ui-protocol/ag-ui TypeScript client SDK releases up to 2026-09-07
  • FilterToolCallsMiddleware component in sdks/typescript/packages/client/src/middleware/filter-tool-calls.ts
  • Applications embedding the vulnerable middleware in agent-user interaction flows

Discovery Timeline

  • 2026-09-28 - CVE-2026-101100 published to the National Vulnerability Database (NVD)
  • 2026-09-28 - Last updated in NVD database

Technical Details for CVE-2026-101100

Vulnerability Analysis

The vulnerability affects the FilterToolCallsMiddleware handler responsible for filtering tool-call messages exchanged between an agent and its client. According to the maintainer advisory, manipulation of the middleware leads to incomplete cleanup of internal state after filtering completes. Residual objects or references remain accessible to subsequent processing.

Incomplete cleanup weaknesses [CWE-459] allow leftover state to influence later requests. In agent-oriented protocols, this can mean partially filtered tool calls persist across sessions or requests. The attack vector is network-based and requires low privileges without user interaction.

Root Cause

The root cause is the failure of FilterToolCallsMiddleware to fully release or reset internal data structures after handling filtered tool calls. Refer to the GitHub Issue #2443 and the GitHub Commit c346119 for the code-level fix that addresses the cleanup path.

Attack Vector

An attacker with authenticated low-privilege access to an application consuming the middleware can craft tool-call sequences that trigger the incomplete cleanup path. Because the middleware runs in the TypeScript client SDK, exploitation is possible over the network without user interaction. The impact is limited to integrity and availability of downstream tool-call processing. Technical details are described in GitHub Pull Request #2494 and VulDB CVE-2026-101100.

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-101100

Indicators of Compromise

  • Unexpected tool-call payloads appearing in agent responses after filtering operations complete
  • Residual state referencing prior tool-call identifiers across independent client sessions
  • Anomalous middleware log entries showing repeated invocations of FilterToolCallsMiddleware without corresponding cleanup traces

Detection Strategies

  • Inventory application dependencies to identify use of ag-ui-protocol/ag-ui TypeScript client versions up to 2026-09-07
  • Review application logs for tool-call processing anomalies correlated with client sessions
  • Compare deployed package hashes against the fixed GitHub Release 2026-09-08

Monitoring Recommendations

  • Enable verbose logging on middleware pipelines to capture pre- and post-filter state
  • Alert on abnormal message volumes or malformed tool-call structures targeting agent endpoints
  • Track upstream advisories from the GitHub Project Repository for related regressions

How to Mitigate CVE-2026-101100

Immediate Actions Required

  • Upgrade ag-ui-protocol/ag-ui to release 2026-09-08 or later to apply commit c346119fe870b70f5c19738ee5119f3e1456e59d
  • Audit applications and services that embed the TypeScript client SDK and enumerate exposed endpoints
  • Restrict access to agent interaction endpoints to authenticated, trusted principals only

Patch Information

The maintainers released the fix in tag release/2026-09-08. The patch commit c346119fe870b70f5c19738ee5119f3e1456e59d corrects the cleanup path in FilterToolCallsMiddleware. Details are available in GitHub Pull Request #2494 and the VulDB Vulnerability #410975 entry.

Workarounds

  • Where immediate upgrade is not feasible, disable or bypass the FilterToolCallsMiddleware and enforce equivalent filtering upstream
  • Rate-limit tool-call requests to reduce the exploitability window for repeated middleware invocations
  • Sanitize and validate tool-call payloads before they reach the vulnerable middleware
bash
# Configuration example
npm install @ag-ui-protocol/client@2026-09-08

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.