# CVE-2026-107858: Cross-Site WebSocket Hijacking and Permissive CORS in Google Agent Development Kit (ADK) for Java Development Server


- **Severity:** High 7.2 (`CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Fix available:** No
- **Published:** 23 Oct 2026
- **Updated:** 23 Oct 2026
- **Also known as:** GHSA-2pr8-78jh-mm95

## What is CVE-2026-107858?

CVE-2026-107858 is a high-severity vulnerability in Google Agent Development Kit (ADK) for Java, published on 23 Oct 2026. 

### Official description

Missing Origin Validation in WebSockets (CWE-1385) and Permissive Cross-domain Policy with Untrusted Domains (CWE-942) in the development web server (ADK Web) in Google Agent Development Kit (ADK) for Java (com.google.adk:google-adk-dev versions 0.1.0 before 1.13.0 and com.google.adk:google-adk-maven-plugin versions 0.3.0 before 1.13.0) allow a remote attacker to control a locally running agent and read its data via a malicious web page visited by a developer while the server is running. The /run_live WebSocket endpoint accepts connections from any origin by default (hardcoded via setAllowedOrigins("*") in versions 0.1.0 through 1.5.0, and defaulting to * via adk.web.cors.origins in versions 1.6.0 through 1.12.0), and since version 0.4.0 the REST API returns Access-Control-Allow-Origin: * by default. Because the server has no authentication and requests originate from the developer's browser (so binding to localhost does not prevent exploitation), a cross-origin page can send messages to the agent (triggering registered tools), stream agent responses, and list, read, create, or delete sessions and artifacts. In versions 1.6.0 through 1.12.0, users can mitigate the issue by setting the adk.web.cors.origins property to an explicit allowlist of trusted origins (such as http://localhost:8000). The vulnerability is fixed in version 1.13.0, which enforces a same-origin default for CORS and the /run_live WebSocket endpoint, and rejects DNS-rebinding requests over loopback.

Weakness: CWE-942 (Permissive Cross-domain Security Policy with Untrusted Domains), CWE-306 (Missing Authentication for Critical Functionality), CWE-1385 (Missing Origin Validation in WebSockets)

## Which versions are affected by CVE-2026-107858?


## How do I fix CVE-2026-107858?

No fix has been published for CVE-2026-107858 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-107858 being exploited?

There is no known exploitation of CVE-2026-107858 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-107858 and fix it if it is affected.

What it is: CVE-2026-107858 is a high-severity vulnerability in Google Agent Development Kit (ADK) for Java, published on 23 Oct 2026. 
Exploitation: There is no known exploitation of CVE-2026-107858 in the wild and no public exploit code.

Affected product: Google Agent Development Kit (ADK) for Java. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-107858/ (Markdown: https://insights.sbomify.com/CVE-2026-107858/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-107858
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-107858
- OSV: https://osv.dev/vulnerability/CVE-2026-107858

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-107858/
Summaries are generated and may contain mistakes; the official description above is the record.
