SecurityContext

CVE-2026-59727: Astro - Reflected XSS

  • Cve: CVE-2026-59727
  • Name: Astro - Reflected XSS
  • 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.
  • Impact: Attackers can inject arbitrary HTML/JavaScript, leading to reflected cross-site scripting and potential client-side code execution.
  • Remediation: Update to version 7.0.4 or later.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: low
  • Cvss score: 2.1
  • Cvss vector: 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/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
  • Epss score: 0.00393
  • Epss percentile: 0.33997
  • Assignee: [email protected]
  • Published at: 2026-07-27T20:16:40Z
  • Age in days: 120
  • Modified at: 2026-10-24T13:10:00Z
  • References total: 4
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-59727
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/withastro/astro/commit/7ba0bb1dc7516e88caff9abd7767322af44b0294
https://github.com/withastro/astro/pull/17212
https://github.com/withastro/astro/releases/tag/[email protected]
https://github.com/withastro/astro/security/advisories/GHSA-7pw4-f3q4-r2p2

Projects

RepositoryLink kindsIndexedUrl
withastro/astrocommit, fix, package, pull, releases, security_advisoryyes/v1/repositories/withastro/astro

Index

  • Repositories: 65
  • Repositories high signal: 33
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts