Description
A2A Java SDK is the official Java SDK for the Agent2Agent (A2A) Protocol. Prior to 1.3.0.Final, a malicious or compromised remote agent can cause the default JDK-based client to forward a configured API key to a third-party server. When a client application configures credentials through `CredentialService`, `AuthInterceptor.intercept` in `client/transport/spi/src/main/java/org/a2aproject/sdk/client/transport/spi/interceptors/auth/AuthInterceptor.java` uses `APIKeySecurityScheme.name()` from the remote AgentCard directly as the HTTP header name containing the credential, without checking that the declared location is HEADER. JdkA2AHttpClient uses followRedirects(NORMAL), so an agent-controlled cross-origin redirect forwards the custom credential-bearing header even when the standard Authorization header is stripped. The attack requires configured API key credentials for the agent's security scheme and control of the agent's AgentCard and redirect response, but no additional client privileges. This issue is fixed in version 1.3.0.Final.
Published: 2026-10-20
Score: 5.7 Medium
EPSS: n/a
KEV: No
Impact: Credential leakage via indirect HTTP header exposure
Action: Immediate Patch
AI Analysis

Impact

A2A Java SDK inadvertently uses a header name derived from the remote AgentCard to transport an API key when the client is configured through CredentialService. The header name is not validated for location, so a malicious or compromised agent can trick the SDK into forwarding the key to a third‑party server. This is a credential exposure flaw, identified as CWE‑522. The exposed key can be used by any party that receives the redirected request, potentially allowing unauthorized access to the target system.

Affected Systems

The vulnerability exists in all releases of the A2A Project A2A Java SDK before version 1.3.0.Final. Users of the SDK who compile or distribute earlier versions are at risk unless they take mitigations. There is no other affected product listed.

Risk and Exploitability

The CVSS score of 5.7 indicates moderate severity. No EPSS score is available and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires the attacker to control the remote agent’s AgentCard and craft a redirect response; no additional client privileges are needed. If an attacker can achieve this, they may redirect the request to a malicious server and obtain the API key. Because the conditions are specific and control of the remote agent is required, the likelihood of widespread exploitation is low, but the impact is significant once achieved.

Generated by OpenCVE AI on October 20, 2026 at 16:51 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the A2A Java SDK to version 1.3.0.Final or later where the header name validation bug is fixed.
  • Ensure that only trusted agents are allowed to modify the AgentCard and do not expose the SDK to untrusted networks.
  • Verify that your HTTP client configuration disables or sanitizes server‑controlled redirects, or block redirects to external domains until you have applied the patch.

Generated by OpenCVE AI on October 20, 2026 at 16:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 20 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Description A2A Java SDK is the official Java SDK for the Agent2Agent (A2A) Protocol. Prior to 1.3.0.Final, a malicious or compromised remote agent can cause the default JDK-based client to forward a configured API key to a third-party server. When a client application configures credentials through `CredentialService`, `AuthInterceptor.intercept` in `client/transport/spi/src/main/java/org/a2aproject/sdk/client/transport/spi/interceptors/auth/AuthInterceptor.java` uses `APIKeySecurityScheme.name()` from the remote AgentCard directly as the HTTP header name containing the credential, without checking that the declared location is HEADER. JdkA2AHttpClient uses followRedirects(NORMAL), so an agent-controlled cross-origin redirect forwards the custom credential-bearing header even when the standard Authorization header is stripped. The attack requires configured API key credentials for the agent's security scheme and control of the agent's AgentCard and redirect response, but no additional client privileges. This issue is fixed in version 1.3.0.Final.
Title A2A Java SDK send client credentials under server-controlled HTTP header name, enabling leakage via redirect
Weaknesses CWE-522
References
Metrics cvssV4_0

{'score': 5.7, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-20T15:03:28.034Z

Reserved: 2026-10-16T17:52:09.082Z

Link: CVE-2026-111763

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-20T16:17:00.550

Modified: 2026-10-20T16:17:00.550

Link: CVE-2026-111763

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-20T17:00:18Z

Weaknesses
  • CWE-522

    Insufficiently Protected Credentials