The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-1721

CVE-2026-1721: AI Playground OAuth XSS Vulnerability

CVE-2026-1721 is a reflected cross-site scripting flaw in AI Playground's OAuth callback handler that allows attackers to execute arbitrary JavaScript and steal chat history. This post covers technical details, impact, and mitigation.

Published: February 20, 2026

CVE-2026-1721 Overview

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. This vulnerability affects the Cloudflare Agents SDK and specifically impacts applications using the configureOAuthCallback function.

Critical Impact

Attackers can craft malicious links that, when clicked by victims, steal user chat message history and access connected MCP servers, potentially allowing unauthorized actions on the victim's behalf.

Affected Products

  • Cloudflare Agents SDK (versions prior to agents@0.3.10)
  • AI Playground OAuth callback handler
  • Applications using configureOAuthCallback with custom error handling

Discovery Timeline

  • 2026-02-13 - CVE CVE-2026-1721 published to NVD
  • 2026-02-13 - Last updated in NVD database

Technical Details for CVE-2026-1721

Vulnerability Analysis

This Reflected XSS vulnerability exists in the OAuth callback handler implementation within site/ai-playground/src/server.ts. The vulnerability allows attackers to inject arbitrary JavaScript code that executes within the security context of an authenticated user's browser session.

When exploited, an attacker gains the ability to steal all LLM interactions stored in the user's session through access to chat message history. Additionally, the attacker can interact with any MCP (Model Context Protocol) servers connected to the victim's session, including both public and authenticated/private servers. This level of access enables the attacker to perform actions on the victim's behalf, potentially leading to data exfiltration or unauthorized operations within connected services.

Root Cause

The OAuth callback handler directly interpolated the authError value, sourced from the error_description query parameter, into an inline <script> tag without proper input sanitization or encoding. This implementation flaw allows user-controlled input to be rendered as executable JavaScript code rather than being treated as text content.

The vulnerable code path processes OAuth error responses by embedding the error description directly into client-side JavaScript, bypassing any output encoding that would prevent script injection.

Attack Vector

The attack is network-based and requires user interaction. An attacker must craft a malicious OAuth callback URL containing JavaScript code within the error_description parameter. When a victim clicks this link, typically delivered through phishing emails, social engineering, or compromised websites, the malicious JavaScript executes within the victim's authenticated session context.

The attack flow involves crafting a URL targeting the OAuth callback endpoint with a payload injected into the error_description parameter. When processed, the backend interpolates this value directly into a <script> tag, causing the browser to execute the attacker's JavaScript with full access to the victim's session data and connected services.

Detection Methods for CVE-2026-1721

Indicators of Compromise

  • Suspicious OAuth callback requests containing JavaScript syntax in the error_description parameter
  • Unusual patterns in URL parameters including <script>, javascript:, or encoded equivalents
  • Unexpected outbound connections following OAuth error callbacks
  • Anomalous access patterns to MCP server endpoints from user sessions

Detection Strategies

  • Implement web application firewall (WAF) rules to detect XSS payloads in OAuth callback parameters
  • Monitor application logs for OAuth error callbacks containing HTML/JavaScript special characters
  • Deploy client-side XSS detection mechanisms to identify DOM manipulation attempts
  • Review network traffic for data exfiltration patterns following OAuth callback processing

Monitoring Recommendations

  • Enable verbose logging for the OAuth callback handler to capture all parameter values
  • Implement Content Security Policy (CSP) violation reporting to detect injection attempts
  • Monitor for unusual session activity following OAuth error states
  • Track access patterns to chat history and MCP server endpoints for anomalies

How to Mitigate CVE-2026-1721

Immediate Actions Required

  • Upgrade to agents@0.3.10 or later immediately
  • Review any custom implementations using configureOAuthCallback for similar vulnerabilities
  • Implement input validation and output encoding for all user-controlled parameters
  • Deploy Content Security Policy headers to mitigate XSS impact

Patch Information

Cloudflare has released a security fix addressing this vulnerability. The patch is available in GitHub Pull Request #841. Users of the agents-sdk should upgrade to version agents@0.3.10 or later to remediate this vulnerability.

Developers who have implemented custom error handling using configureOAuthCallback in their own applications should review their code to ensure all user-controlled input is properly escaped before interpolation into HTML or JavaScript contexts.

Workarounds

  • Implement server-side validation to reject OAuth callback requests containing suspicious characters in query parameters
  • Deploy a WAF rule to block requests with potential XSS payloads targeting the OAuth callback endpoint
  • Add Content Security Policy headers with script-src restrictions to prevent inline script execution
  • Consider temporarily disabling custom OAuth error messaging until the patch can be applied
bash
# Upgrade agents-sdk to patched version
npm update agents@0.3.10

# Or install specific version
npm install agents@0.3.10 --save

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechCloudflare

  • SeverityMEDIUM

  • CVSS Score6.2

  • EPSS Probability0.02%

  • Known ExploitedNo
  • 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
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • GitHub Pull Request
  • Related CVEs
  • CVE-2026-3125: OpenNext Cloudflare SSRF Vulnerability

  • CVE-2026-1664: Cloudflare Agents SDK Auth Bypass Flaw

  • CVE-2025-6087: Cloudflare Create-cloudflare SSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English