XSS in Astro

CVE-2026-54298

Astro is a web framework. Prior to 6.4.6, the spreadAttributes function in Astro's server-side rendering pipeline iterates over object keys and passes them directly to addAttribute, which interpolates the key into the HTML output without e…

Vulnerability class: XSS (Cross-Site Scripting)

CVSS v3 metric

CVSS v3 base score 4.2 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-54298?
CVE-2026-54298 is a medium-severity vulnerability in Astro, classified under Cross-site Scripting. CVSS score: 4.2/10. Published 2026-06-22.
How severe is CVE-2026-54298?
Medium severity. CVSS v3 base score is 4.2 out of 10.