CVE-2026-59727
published low CVSS 4.0 · 2.1Astro: Cross-site scripting via unescaped transition:* directive values on hydrated islands
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| withastro | — | astro>= 3.10.0, < 7.0.4 | Affected | Not stated | GitHub_M |
Description
Astro is a web framework for content-driven websites. In versions 3.10.0 through 7.0.3, when a transition:persist, transition:scope, or transition:persist-props directive is applied to a client-hydrated (client:*) component, Astro copied the directive value onto the rendered <astro-island> element without HTML-escaping it. If a developer reflects attacker-controlled input into one of these directives, an attacker can break out of the attribute and inject arbitrary HTML/JavaScript into the server-rendered output, resulting in reflected cross-site scripting (XSS). Exploitation requires the application developer to have written a non-idiomatic pattern — passing untrusted, request-derived input directly into a transition directive. Astro applications that do not route untrusted input into these directives are unaffected. This issue has been fixed in version 7.0.4.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.1 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| withastro | astro | >= 3.10.0, < 7.0.4 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-83 CWE-83: Improper Neutralization of Script in Attributes in a Web Page
- CWE-116 CWE-116: Improper Encoding or Escaping of Output
References
4Provider assertions
2GitHub_M · cna
Astro: Cross-site scripting via unescaped transition:* directive values on hydrated islands
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3215c0f738903c6deb54b31d1003dd453f2ca6746edbaed2ff0649585ee6e0ee
- Ingested
- 23 Sep 2026, 09:22:51 UTC
- Source record
- Official CVE record