6.2medium
Reflected Cross-Site Scripting (XSS) vulnerability in AI Playground site
- Severity
- 6.2medium CVSS:4.0 by cloudflare
- Exploit likelihood
- 0.41% (higher than 37% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- cloudflare
- Also known as
- GHSA-cvhv-6xm6-c3v4
Description
Summary A Reflected Cross-Site Scripting (XSS) vulnerability was discovered in the AI Playground's OAuth callback handler. The `error_description` query parameter was directly interpolated into an HTML script tag without proper escaping, allowing attackers to execute arbitrary JavaScript in the context of the victim's session. Root cause The OAuth callback handler in `site/ai-playground/src/server.ts` directly interpolated the `authError` value, sourced from the `error_description` query parameter, into an inline `<script>` tag. Impact An attacker could craft a malicious link that, when clicked by a victim, would: * Steal user chat message history - Access all LLM interactions stored in the user's session. * Access connected MCP Servers - Interact with any MCP servers connected to the victim's session (public or authenticated/private), potentially allowing the attacker to perform actions on the victim's behalf Mitigation: * PR: https://github.com/cloudflare/agents/pull/841 https://github.com/cloudflare/agents/pull/841 * Agents-sdk users should upgrade to agents@0.3.10 * Developers using configureOAuthCallback with custom error handling in their own applications should ensure all user-controlled input is escaped before interpolation.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| agents | before 0.3.10 | CVE List |
| agents (npm) | before 0.3.10 | GitHub Advisory Database |
All scores
| cloudflare | 6.2medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Summary A Reflected Cross-Site Scripting (XSS) vulnerability was discovered in the AI Playground's OAuth callback handler. The `error_description` query parameter was directly interpolated into an HTML script tag without proper escaping, allowing attackers to execute arbitrary JavaScript in the context of the victim's session. Root cause The OAuth callback handler in `site/ai-playground/src/server.ts` directly interpolated the `authError` value, sourced from the `error_description` query parameter, into an inline `<script>` tag. Impact An attacker could craft a malicious link that, when clicked by a victim, would: * Steal user chat message history - Access all LLM interactions stored in the user's session. * Access connected MCP Servers - Interact with any MCP servers connected to the victim's session (public or authenticated/private), potentially allowing the attacker to perform actions on the victim's behalf Mitigation: * PR: https://github.com/cloudflare/agents/pull/841 https://github.com/cloudflare/agents/pull/841 * Agents-sdk users should upgrade to agents@0.3.10 * Developers using configureOAuthCallback with custom error handling in their own applications should ensure all user-controlled input is escaped before interpolation.
NVD (es)
Resumen Una vulnerabilidad de Cross-Site Scripting Reflejado (XSS) fue descubierta en el manejador de callback de OAuth del AI Playground. El parámetro de consulta `error_description` fue directamente interpolado en una etiqueta de script HTML sin el escape adecuado, permitiendo a los atacantes ejecutar JavaScript arbitrario en el contexto de la sesión de la víctima. Causa raíz El manejador de callback de OAuth en `site/ai-playground/src/server.ts` interpoló directamente el valor `authError`, obtenido del parámetro de consulta `error_description`, en una etiqueta `
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-1721 changed 2026-02-27 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-cvhv-6xm6-c3v4 changed 2026-02-13 | CC-BY-4.0 |
| NVD | CVE-2026-1721 changed 2026-06-17 | Public domain |