CVE-2026-73422
MEDIUM 5.3CVSS 4.0Astro: 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.
- Published
- 12 Aug 2026
- Last modified
- 24 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-79
- Also known as
- GHSA-4g3v-8h47-v7g6
- Sources
- NVDJSONOSV GHSA-4g3v-8h47-v7g6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 5.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/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 |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | astro | >= 2.9.0, < 7.1.0 | 7.1.0 |
References
- https://github.com/withastro/astro/commit/092da560eea77ee63a3e2c583c80d8238544e42b · WEB
- https://github.com/withastro/astro/pull/17393 · WEB
- https://github.com/withastro/astro/releases/tag/astro@7.1.0 · WEB
- https://github.com/withastro/astro/security/advisories/GHSA-4g3v-8h47-v7g6 · WEB
- https://github.com/withastro/astro · PACKAGE
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 12 Aug 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 20 Jul 2026)