GHSA-9RHM-2H4X-JWMX

Vulnerability from github – Published: 2026-10-20 21:04 – Updated: 2026-10-20 21:04
VLAI
Summary
A2A Java SDK send client credentials under server-controlled HTTP header name, enabling leakage via redirect
Details

Impact.* A malicious or compromised A2A agent can cause the client's API key credential to be forwarded to an arbitrary third-party server. The agent serves an AgentCard with an APIKeySecurityScheme specifying a custom header name, then responds with an HTTP redirect. The JDK HttpClient follows the redirect and forwards the custom header containing the credential, since only the standard Authorization header may be stripped on cross-origin redirects.

Where. client/transport/spi/src/main/java/org/a2aproject/sdk/client/transport/spi/interceptors/auth/AuthInterceptor.java:69 in intercept

What. The apiKeySecurityScheme.name() field from the remote agent's AgentCard (untrusted, server-controlled data) is used directly as the HTTP header name when placing client credentials. Combined with JdkA2AHttpClient's followRedirects(NORMAL) policy, credentials under custom header names survive cross-origin redirects (only Authorization is stripped on newer JDKs), allowing a malicious agent to leak client credentials to third-party servers. Additionally, AuthInterceptor does not check that location==HEADER before placing the credential as a header.

Exploit scenario. Client configures an API key credential for agent's security scheme myAuth. The malicious agent returns an AgentCard where securitySchemes includes myAuth as APIKeySecurityScheme with name='X-Leaked-Cred' and location=HEADER. AuthInterceptor places the credential in the X-Leaked-Cred header. The agent responds with HTTP 302 redirect to https://evil.com/collect. JdkA2AHttpClient follows the redirect, forwarding all custom headers including X-Leaked-Cred to evil.com. The attacker captures the client's credential.

Preconditions. - Client application has configured API key credentials via CredentialService for the agent's security scheme - The agent is malicious or compromised (controls its own AgentCard response) - The default JdkA2AHttpClient is used (with followRedirects=NORMAL) - The JDK version does not strip custom headers on cross-origin redirects (all current versions)

Fix. Validate the APIKeySecurityScheme.name() field against a whitelist of safe header names. Check that apiKeySecurityScheme.location() equals Location.HEADER before placing the credential as a header. Consider using followRedirects(NEVER) and implementing manual redirect handling that strips all authentication headers on cross-origin redirects.

Verification. 2/3 lens verifiers confirmed.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "Maven",
        "name": "org.a2aproject.sdk:a2a-java-sdk-parent"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.3.0.Final"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2026-111763"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-522"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-10-20T21:04:16Z",
    "nvd_published_at": "2026-10-20T16:17:00Z",
    "severity": "MODERATE"
  },
  "details": "*Impact.** A malicious or compromised A2A agent can cause the client\u0027s API key credential to be forwarded to an arbitrary third-party server. The agent serves an AgentCard with an `APIKeySecurityScheme` specifying a custom header name, then responds with an HTTP redirect. The JDK HttpClient follows the redirect and forwards the custom header containing the credential, since only the standard `Authorization` header may be stripped on cross-origin redirects.\n\n**Where.** `client/transport/spi/src/main/java/org/a2aproject/sdk/client/transport/spi/interceptors/auth/AuthInterceptor.java:69` in `intercept`\n\n**What.** The `apiKeySecurityScheme.name()` field from the remote agent\u0027s AgentCard (untrusted, server-controlled data) is used directly as the HTTP header name when placing client credentials. Combined with `JdkA2AHttpClient`\u0027s `followRedirects(NORMAL)` policy, credentials under custom header names survive cross-origin redirects (only `Authorization` is stripped on newer JDKs), allowing a malicious agent to leak client credentials to third-party servers. Additionally, `AuthInterceptor` does not check that `location==HEADER` before placing the credential as a header.\n\n**Exploit scenario.** Client configures an API key credential for agent\u0027s security scheme `myAuth`. The malicious agent returns an AgentCard where `securitySchemes` includes `myAuth` as `APIKeySecurityScheme` with `name=\u0027X-Leaked-Cred\u0027` and `location=HEADER`. `AuthInterceptor` places the credential in the `X-Leaked-Cred` header. The agent responds with HTTP 302 redirect to `https://evil.com/collect`. `JdkA2AHttpClient` follows the redirect, forwarding all custom headers including `X-Leaked-Cred` to `evil.com`. The attacker captures the client\u0027s credential.\n\n**Preconditions.**\n- Client application has configured API key credentials via `CredentialService` for the agent\u0027s security scheme\n- The agent is malicious or compromised (controls its own AgentCard response)\n- The default `JdkA2AHttpClient` is used (with `followRedirects=NORMAL`)\n- The JDK version does not strip custom headers on cross-origin redirects (all current versions)\n\n**Fix.** Validate the `APIKeySecurityScheme.name()` field against a whitelist of safe header names. Check that `apiKeySecurityScheme.location()` equals `Location.HEADER` before placing the credential as a header. Consider using `followRedirects(NEVER)` and implementing manual redirect handling that strips all authentication headers on cross-origin redirects.\n\n**Verification.** 2/3 lens verifiers confirmed.",
  "id": "GHSA-9rhm-2h4x-jwmx",
  "modified": "2026-10-20T21:04:16Z",
  "published": "2026-10-20T21:04:16Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/a2aproject/a2a-java/security/advisories/GHSA-4fpj-g9jf-9rgg"
    },
    {
      "type": "WEB",
      "url": "https://github.com/a2aproject/a2a-java/security/advisories/GHSA-9rhm-2h4x-jwmx"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-111763"
    },
    {
      "type": "WEB",
      "url": "https://github.com/a2aproject/a2a-java/pull/1097"
    },
    {
      "type": "WEB",
      "url": "https://github.com/a2aproject/a2a-java/commit/2a36530d75e11bcf9b81f543464dbe193ca6478e"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/a2aproject/a2a-java"
    },
    {
      "type": "WEB",
      "url": "https://github.com/a2aproject/a2a-java/releases/tag/v1.3.0.Final"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "A2A Java SDK send client credentials under server-controlled HTTP header name, enabling leakage via redirect"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.