Prevent continuation forgery in tool confirmation
fix: Prevent continuation forgery in tool confirmation
Prevent continuation forgery in tool confirmationc03f33-fix-prevent-continuation-forgery-in-tool-confirmation-cve-2026-18236fixprevent continuation forgery tool confirmation
Committed by wukath
commit message
fix: Prevent continuation forgery in tool confirmation
An attacker who could manipulate or inject events into the session history could execute unauthorized tools by forging a tool confirmation response. This fixes the vulnerability by:
- When resolving confirmation targets, the processor verifies if the tool is registered in the executing agent's tools_dict
- Validate that the tool actually requires confirmation, supporting both static definitions and dynamic confirmation requests
- Verify that the original tool call event exists in the session history with the matching ID, and that its name and arguments match the confirmation request's originalFunctionCall exactly to prevent argument tampering.
Co-authored-by: Kathy Wu <[email protected]>
PiperOrigin-RevId: 949112553Editor assessment
This commit patches CVE-2026-18236. The subject names the precise flaw, continuation forgery in tool confirmation, and the body explains the attacker model of manipulated or injected session events leading to forged confirmations and unauthorized tool execution. It then walks through the three verification steps: tool registry membership, required-confirmation checks for static and dynamic definitions, and exact matching of the original call's ID, name, and arguments. That is genuinely instructive and ties the fix to the threat. Only a capitalized verb and the lack of a scope are minor blemishes, and the co-author and PiperOriginRevId trailers are correctly formed. A strong, publishable explanation.