PT-2026-61809 · Astro · Astro

CVE-2026-59729

·

Published

2026-07-20

·

Updated

2026-07-27

CVSS v4.0

5.1

Medium

VectorAV:N/AC:L/AT:N/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
Name of the Vulnerable Software and Affected Versions Astro versions prior to 7.0.6
Description A cross-site scripting (XSS) issue exists when the software is used with an SSR runtime that exposes a global HTMLElement (such as Deno, Bun with a DOM shim, or jsdom/happy-dom in Node) and a class extending HTMLElement is used as a component receiving untrusted spread props. The renderHTMLElement() function in packages/astro/src/runtime/server/render/dom.ts interpolates attribute names without escaping them, allowing an attacker who controls the keys of an object spread onto a native HTMLElement subclass to inject arbitrary event-handler attributes or sibling elements, such as <script> tags, into the SSR output.
Recommendations Update Astro to version 7.0.6. As a temporary workaround, avoid spreading untrusted object keys onto components that extend the native HTMLElement class.

Exploit

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-59729
GHSA-F48W-9M4C-M7F5

Affected Products

Astro