← AI agent vulnerabilities

CVE-2026-1721

6.2
Severity
Medium
Published
February 13, 2026
Last modified
June 17, 2026

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.

CVSS vector 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Weakness

References

CVE-2026-1721 on NVD

Listed in

MediumMCP servers

Related CVEs

Dec 4
CVE-2026-1453598.1

MCPJungle 0.1.11 through 0.4.7 contains a missing authentication vulnerability in the POST /init endpoint that allows unauthenticated attackers to initialize uninitialized enterprise-mode servers.

Dec 4
CVE-2026-1453586.5

markdownify-mcp before 2.0.0 contains an uncontrolled resource consumption vulnerability that allows attackers to exhaust server memory or hang requests by supplying URLs to slow or oversized responses.

Dec 4
CVE-2026-1450559.8

PraisonAI pip praisonai before 4.8.0, praisonaiagents and npm praisonai before 1.8.0, and praisonai-bot, praisonai-browser, praisonai-code, praisonai-deploy, praisonai-mcp and praisonai-sandbox before 0.2.0…

Dec 4
CVE-2026-1449605.4

n8n-mcp before 2.98.1 contains a prototype pollution vulnerability that allows MCP clients to modify Object.prototype by supplying reserved keys like __proto__ as node names, connection types, or parameter…

Dec 4
CVE-2026-1444536.5

AgentCrew before 0.25.1 contains a server-side request forgery and local file read vulnerability that allows malicious MCP servers to fetch internal URLs and local files by supplying crafted $ref values in…

Dec 4
CVE-2026-1414889.2

The AIDB MCP endpoint (edb-endpoints) in AIDB 7.7.0 through 7.8.0 authenticates HTTP Basic credentials by opening a Postgres connection with them, always from the database host over the local Unix socket as…