CVE-2026-54298
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.
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-06-23 |
Timeline
- 2026-06-16GitHub advisory published (GHSA-jrpj-wcv7-9fh9)6 days before publication
- 2026-06-22Published by the CNA17:33 UTC
- 2026-06-23CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-jrpj-wcv7-9fh9, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm astro | before 6.4.6 | 6.4.6 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| astro astro | before 6.4.6fixed in 6.4.6 | 6.4.6 |
References
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-54298'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-54298'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-54298'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-54298'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).