CVE-2026-1721
Last modified
CVE-2026-1721 is a medium-severity vulnerability rated 6.2/10 on the CVSS scale. 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.. EPSS estimates a 0.37% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-1721?
How severe is CVE-2026-1721?
How do I fix CVE-2026-1721?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-17199IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote attacker t…7.5
- CVE-2026-1720The WowOptin: Next-Gen Popup Maker – Create Stunning Popups …8.8
- CVE-2026-17203IBM Administration Runtime Expert for i 1R1M0 could allow a …7.5
- CVE-2026-17206IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote attacker t…9.8
- CVE-2026-17207IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote attacker t…9.1
- CVE-2026-17209IBM Db2 Mirror for i 7.4, 7.5, and 7.6 could allow a remote …5.4
- CVE-2026-17212IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote attacker t…5.3
- CVE-2026-17216IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote attacker t…5.3
- CVE-2026-17218IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote attacker t…9.8
- CVE-2026-1722The WCFM Marketplace – Multivendor Marketplace for WooCommer…5.3
- CVE-2026-17220IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote attacker t…8.2
- CVE-2026-17222IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote authentica…4.3
Are you affected by CVE-2026-1721?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
