Skip to content

astro

Astro: Cross-site scripting via unescaped transition:* directive values on hydrated islands

CVE-2026-59727Published 27 Jul 2026, 19:42 UTC

Real-world risk

0.9/ 10Low

Routine

If the vulnerable configuration applies to you: 2.0

PreliminaryFrom the CVSS vector only · confidence low

CVSS

2.1

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
astroCommon>= 3.10.0, < 7.0.47.0.4

What to do

Update to a fixed version: 7.0.4.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T3: Public proof of concept (× 0.95)

A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit

  • Reference tagged as exploit (link)
  • CISA SSVC: proof of concept

EPSS 0.4% chance of exploitation in 30 days (percentile 36), as of 2026-12-05.

The arithmetic
  1. Prerequisites multiplied together0.315
  2. Threat T3: Public proof of concept0.950
  3. 10 × impact 0.3 × prerequisites 0.315 × threat 0.950.898
  4. Rounded to one decimal between 0.1 and 100.9

How the score works

Exploitation and evidence timeline

  1. 27 Jul 2026 Published
  2. 3 Dec 2026 Reference tagged as exploit first seen
  3. 3 Dec 2026 CISA SSVC: proof of concept first seen
  4. 3 Dec 2026 Risk 0.9 (cvss fallback)

Weakness

CWE-79, CWE-83, CWE-116

References

Get alerts for astro

Free email or text alerts when a vulnerability in astro reaches risk 8 or higher. Nothing else.