# CVE-2026-1721: Reflected Cross-Site Scripting (XSS) vulnerability in AI Playground site

- Severity: Medium 6.2 (CVSS:4.0, scored by cloudflare) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-02-13T01:46:48.674Z
- Modified: 2026-06-17T10:16:23.767Z
- Also known as: GHSA-cvhv-6xm6-c3v4
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: cloudflare

## 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.

(As written by CVE List.)

## Affected

- agents: before 0.3.10
- agents (npm): before 0.3.10

## Every score

- cloudflare: CVSS:4.0 6.2 Medium `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: CVSS:4.0 Medium `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`

## References

- <https://github.com/cloudflare/agents/pull/841> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-1721> (advisory)
- <https://github.com/cloudflare/agents/commit/3f490d045844e4884db741afbb66ca1fe65d4093> (web)
- <https://github.com/cloudflare/agents> (package)

## Sources

- CVE List: [CVE-2026-1721](https://www.cve.org/CVERecord?id=CVE-2026-1721), CVE Terms of Use, modified 2026-02-27
- GitHub Advisory Database: [GHSA-cvhv-6xm6-c3v4](https://github.com/advisories/GHSA-cvhv-6xm6-c3v4), CC-BY-4.0, modified 2026-02-13
- NVD: [CVE-2026-1721](https://nvd.nist.gov/vuln/detail/CVE-2026-1721), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-1721 · Whole record: https://cve.day/CVE-2026-1721.json · Rebuilt by cve.day 2026-11-25T22:59:13.840Z
