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
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 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-1717An input validation vulnerability was reported in the Lenovo…6.8
- CVE-2026-1718IBM Db2 11.5.0 through 11.5.9, and 12.1.0 through 12.1.4 is …7.5
- CVE-2026-1719The Gravity Bookings Premium plugin for WordPress is vulnera…7.5
- CVE-2026-17191An input validation vulnerability exists in an API component…9.1
- CVE-2026-17192A VCO feature does not sufficiently validate caller-supplied…8.5
- CVE-2026-1720The WowOptin: Next-Gen Popup Maker – Create Stunning Popups …8.8
- 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-17222IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote authentica…4.3
- CVE-2026-1723Improper Neutralization of Special Elements used in an OS Co…9.2
- CVE-2026-1724GitLab has remediated an issue in GitLab EE affecting all ve…7.5
- CVE-2026-17248IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote authentica…7.1
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
