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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-45028

CVE-2026-45028: Astro Framework XSS Vulnerability

CVE-2026-45028 is a cross-site scripting flaw in Astro framework affecting server islands that allows attackers to inject malicious scripts. This article covers technical details, affected versions, and mitigation steps.

Published: May 17, 2026

CVE-2026-45028 Overview

CVE-2026-45028 affects the Astro web framework in versions prior to 6.1.10. The framework uses AES-GCM encryption to protect the confidentiality and integrity of server island props and slots parameters. The implementation did not bind ciphertext to its intended component or parameter type. An attacker can replay one component's encrypted props (p) value as another component's slots (s) value, or the reverse. Because slot values are rendered as raw unescaped HTML, this confusion enables Cross-Site Scripting (XSS) [CWE-79] in applications that meet specific conditions. The flaw is tracked as [CWE-323] (reusing a nonce/key in encryption) and is patched in Astro 6.1.10.

Critical Impact

Attackers with control over a prop value can swap encrypted parameters between server island components to inject unescaped HTML, producing reflected or stored XSS in dynamically rendered pages.

Affected Products

  • Astro framework versions prior to 6.1.10
  • Node.js-based deployments using server islands
  • Applications with dynamically rendered pages sharing key names between props and slots

Discovery Timeline

  • 2026-05-13 - CVE-2026-45028 published to NVD
  • 2026-05-14 - Last updated in NVD database

Technical Details for CVE-2026-45028

Vulnerability Analysis

Astro server islands serialize component inputs into two encrypted payloads: props (p), containing structured values that Astro escapes during rendering, and slots (s), containing raw HTML that is rendered without escaping. Both payloads are encrypted with the same site-wide AES-GCM key. The original encryptString function called crypto.subtle.encrypt with only a name and IV, omitting Additional Authenticated Data (AAD). Without AAD binding, a valid ciphertext is interchangeable across any field protected by the same key.

An attacker who controls a prop value on one server island component can capture its encrypted p value and submit it as the s value on a second component. The server decrypts the ciphertext successfully because the key matches, then renders the attacker-controlled string as raw HTML.

Root Cause

The root cause is missing authenticated context binding in the encryption routine. AES-GCM supports AAD that is verified during decryption but not stored in the ciphertext. Astro did not pass any context describing whether the ciphertext represented a prop, a slot, a component export, or which specific component owned it. Reused key material across semantically distinct fields produced a confused deputy condition.

Attack Vector

Exploitation requires four conditions: the application uses server islands, two different server island components share the same key name for a prop and a slot, the attacker controls the value of the overlapping prop, and the page is dynamically rendered. The attacker requests a page that encrypts the controlled prop, extracts the p ciphertext, then issues a server island request substituting that value as the s parameter for a different component.

typescript
// Patch in packages/astro/src/core/encryption.ts
/**
 * Using a CryptoKey, encrypt a string into a base64 string.
 * @param additionalData Optional authenticated context (e.g. "props:ComponentName") that is
 *   verified during decryption but not included in the ciphertext. Both sides must agree on
 *   the same value or decryption will fail.
 */
export async function encryptString(key: CryptoKey, raw: string, additionalData?: string) {
	const iv = crypto.getRandomValues(new Uint8Array(IV_LENGTH / 2));
	const data = encoder.encode(raw);
	const params: AesGcmParams = { name: ALGORITHM, iv };
	if (additionalData) {
		params.additionalData = encoder.encode(additionalData);
	}
	const buffer = await crypto.subtle.encrypt(params, key, data);
	// iv is 12, hex brings it to 24
	return encodeHexUpperCase(iv) + encodeBase64(new Uint8Array(buffer));
}

Source: GitHub Commit 3d82220

The fix adds an additionalData parameter that callers populate with contextual strings such as export:${componentId}, props:${componentId}, or slots:${componentId}. Decryption now fails when ciphertext from one context is replayed into another.

typescript
// Patch in packages/astro/src/core/server-islands/endpoint.ts
// Decrypt componentExport
let componentExport: string;
try {
	componentExport = await decryptString(key, data.encryptedComponentExport, `export:${componentId}`);
} catch (_e) {
	return badRequest('Encrypted componentExport value is invalid.');
}

Source: GitHub Commit 3d82220

Detection Methods for CVE-2026-45028

Indicators of Compromise

  • Server island requests where the s parameter value matches a previously observed p parameter value from a different component request.
  • Reflected HTML or script content in rendered server island responses where structured prop data was expected.
  • Repeated server island POST requests targeting different componentId values with identical encrypted payload fragments.

Detection Strategies

  • Inventory Astro deployments and identify any server island components that share field names between props and slots across the application.
  • Inspect application logs for _server-islands/ endpoint requests carrying high-entropy s values that originated from prop-encoded sources.
  • Add server-side telemetry that records the componentId, parameter type, and ciphertext fingerprint to support correlation across requests.

Monitoring Recommendations

  • Alert on outbound responses containing script tags or event handler attributes from server island rendered output paths.
  • Monitor for repeated 200 responses on dynamically rendered routes followed by client-side execution anomalies in Real User Monitoring.
  • Track upgrades of the astro package across CI/CD pipelines to confirm production builds resolve to version 6.1.10 or later.

How to Mitigate CVE-2026-45028

Immediate Actions Required

  • Upgrade Astro to version 6.1.10 or later in all production and staging environments.
  • Audit server island components for shared key names between props and slots, and rename overlapping fields where possible.
  • Rebuild and redeploy applications so the patched encryptString and decryptString calls take effect with AEAD context binding.

Patch Information

The fix is delivered in Astro 6.1.10. The change is implemented in GitHub Pull Request #16457 and merged in commit 3d82220a1549e699e34ed433f3846a919f4c02bd. Refer to the GitHub Security Advisory GHSA-xr5h-phrj-8vxv for the complete vendor disclosure. The patch adds an additionalData argument to AES-GCM encryption and decryption calls, binding ciphertext to its parameter type and component identifier.

Workarounds

  • Switch dynamically rendered routes that use server islands to static pre-rendering until the patched version is deployed.
  • Refactor components so no prop name overlaps with any slot name across the application's server island surface.
  • Apply a Content Security Policy that disallows inline scripts to limit the impact of HTML injection during the remediation window.
bash
# Upgrade Astro to the patched release
npm install astro@^6.1.10

# Verify the installed version
npm ls astro

# Rebuild the application so encryption call sites use the patched API
npm run build

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechAstro

  • SeverityLOW

  • CVSS Score2.9

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/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
  • CWE References
  • CWE-323

  • CWE-79
  • Vendor Resources
  • GitHub Commit Changes

  • GitHub Pull Request #16457

  • GitHub Security Advisory GHSA-xr5h-phrj-8vxv
  • Related CVEs
  • CVE-2026-41067: Astro Web Framework XSS Vulnerability

  • CVE-2026-33768: Astro Vercel Auth Bypass Vulnerability

  • CVE-2026-33769: Astro Web Framework SSRF Vulnerability

  • CVE-2026-29772: Astro @astrojs/node DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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