{"id":"CVE-2026-1721","published":"2026-02-13T01:46:48Z","modified":"2026-02-27T14:51:31Z","title":"Reflected Cross-Site Scripting (XSS) vulnerability in AI Playground site","vendor":null,"product":null,"tier":"tail","description":{"text":"Summary\n\nA 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.\n\n\n\n\nRoot cause\n\nThe 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.\n\n\nImpact\n\nAn attacker could craft a malicious link that, when clicked by a victim, would:\n\n  *  Steal user chat message history - Access all LLM interactions stored in the user's session.\n\n\n  *  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\n\n\n\n\n\nMitigation:\n\n  *  PR:  https://github.com/cloudflare/agents/pull/841 https://github.com/cloudflare/agents/pull/841 \n\n\n\n\n  *  Agents-sdk users should upgrade to agents@0.3.10\n\n\n\n\n  *  Developers using configureOAuthCallback with custom error handling in their own applications should ensure all user-controlled input is escaped before interpolation.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.2,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00411,"percentile":0.36285,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/cloudflare/agents/pull/841","tags":[]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":7.26},{"name":"CVSS severity","points":4.34}]},"affectedVersions":[{"vendor":null,"product":null,"versions":["< 0.3.10"]}],"solutions":{"items":["* 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."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-13T13:10:24.218273Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"agents","vulnerableRanges":["<0.3.10"],"patched":["0.3.10"],"from":["GHSA-cvhv-6xm6-c3v4"],"provenance":"source"}],"summary":{"text":"The flaw is a reflected cross-site scripting issue in the OAuth callback handler of the AI Playground site, where the error_description query parameter is inserted unescaped into an inline script tag. An attacker can get arbitrary JavaScript to run in a victim's session by having them open a crafted link, which requires user interaction and no authentication or network access beyond delivering that link; once run, the script can read the victim's chat history and interact with any MCP servers connected to that session.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:41Z"},"euvd":{"id":"EUVD-2026-6173","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-1664","published":"2026-02-03","fixed":"0.3.7","kev":false,"link":{"from":"CVE-2026-1664","to":"CVE-2026-1721","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:agents","fromFixed":"0.3.7","toFixed":"0.3.10","daysApart":10},{"kind":"similar","provenance":"machine","score":0.21,"basis":"same package + description similarity"}]}},{"cve":"CVE-2026-1721","published":"2026-02-13","fixed":"0.3.10","kev":false}],"package":"npm:agents"}}