CVE-2026-73422: Astro: Reflected XSS via unescaped View Transition animation properties
Astro is a web framework for content-driven websites. From 2.9.0 until 7.1.0, Astro's server-side View Transition CSS generator interpolates animation properties into an inline style element without escaping them for CSS and HTML contexts. An attacker-controlled View Transition animation value such as duration can terminate the generated style element and inject arbitrary HTML or JavaScript. The affected code is packages/astro/src/runtime/server/transition.ts; renderTransition passes sheet.toString() into markHTMLString(), while addAnimationProperty serializes duration through toTimeValue() and also handles easing, direction, delay, fillMode, and name. Exploitation requires an on-demand or server-rendered route to pass attacker-controlled data into a View Transition animation definition and can execute arbitrary JavaScript in the affected application's origin, allowing access to sensitive page data and authenticated actions available to the victim. This issue is fixed in version 7.1.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Astroto a version that resolves this vulnerability.Fixed in 7.1.0
Event History
Frequently Asked Questions
What is the severity of CVE-2026-73422?
The severity of CVE-2026-73422 is rated at 60.
How do I fix CVE-2026-73422?
To fix CVE-2026-73422, update Astro to a version greater than 7.1.0.
What type of vulnerability is CVE-2026-73422?
CVE-2026-73422 is categorized as a Cross-Site Scripting (XSS) vulnerability.
Which versions of Astro are affected by CVE-2026-73422?
Versions of Astro from 2.9.0 until 7.1.0 are affected by CVE-2026-73422.
What does CVE-2026-73422 allow an attacker to do?
CVE-2026-73422 allows an attacker to perform reflected XSS via unescaped View Transition animation properties.