Reflected XSS Vulnerability in Astro Web Framework by WithAstro
CVE-2026-59727

2.1LOW

Key Information:

Vendor

Withastro

Status
Vendor
CVE Published:
27 July 2026

What is CVE-2026-59727?

Astro web framework versions 3.10.0 through 7.0.3 are susceptible to reflected cross-site scripting (XSS) when utilizing certain directives linked to client-hydrated components. If a developer improperly handles untrusted input by passing it directly into directives like transition:persist, transition:scope, or transition:persist-props, attackers can manipulate these directives to inject harmful HTML or JavaScript into the server-rendered output. This vulnerability arises from the lack of proper HTML escaping of directive values, making it critical for developers to adhere to secure coding practices to ensure that untrusted inputs are adequately validated or sanitized. The vulnerability has been addressed in version 7.0.4.

Affected Version(s)

astro >= 3.10.0, < 7.0.4

References

CVSS V4

Score:
2.1
Severity:
LOW
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.