Apache Camel: Camel-A2A nested agent route shares control headers between the consumer and producer, letting a remote caller alter the outbound request and the reply identity
Unintended Proxy or Intermediary ('Confused Deputy') vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0 before 4.22.3, from 4.23.0 before 4.24.0. Apache Camel's camel-a2a component provides both an A2A agent-server consumer and an A2A agent-client producer, which before the fix shared a single CamelA2A* message-header namespace. In a nested orchestrator route that consumes an A2A request and then calls a downstream A2A agent on the same exchange, metadata the consumer parsed from the incoming (untrusted) request reused the same header names the producer reads as its control inputs, so a remote caller could influence the operation and context of the downstream request and the task identity reflected back in the reply. The fix separates the consumer's request/reply metadata into distinct header names from the producer's control headers, so the two legs of a nested route no longer collide. Upgrade to Apache Camel 4.24.0, which fixes the issue. Users on the 4.22.x LTS release stream should upgrade to 4.22.3.