CVE-2026-54298 Details
Description
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 escaping. When a developer uses the spread syntax {...props} on an HTML element and the object keys come from an untrusted source (API, CMS, URL parameters), an attacker can inject arbitrary HTML attributes including event handlers like onmousemove, onclick, or break out of the attribute context entirely to inject new elements. This vulnerability is fixed in 6.4.6.
A cross-site scripting vulnerability has been identified in Astro, a web framework, in versions prior to 6.4.6. The issue arises in the server-side rendering pipeline, specifically within the spreadAttributes function. This function directly passes object keys to addAttribute, which incorporates the keys into the HTML output without proper escaping. As a result, when the spread syntax is used on an HTML element with keys from untrusted sources, an attacker can inject arbitrary HTML attributes, including event handlers like onmousemove and onclick, or disrupt the attribute context to introduce new elements. The vulnerability is present in all Astro versions that support the spread syntax on HTML elements and is exploitable in server-side rendering, static site generation with compromised build-time data, and hybrid deployments.
Users should update to Astro version 6.4.6 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/withastro/astro/security/advisories/GHSA-jrpj-wcv7-9fh9 | CISA-ADP | ExploitVendor Advisory |
| https://github.com/withastro/astro/security/advisories/GHSA-jrpj-wcv7-9fh9 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| astro astro | < 6.4.6 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 23, 2026 | CVE Modified | CISA-ADP |
| Jun 22, 2026 | Initial Analysis | [email protected] |
| Jun 22, 2026 | New CVE Received | [email protected] |