# CVE-2026-54298: Astro: XSS via Unescaped Attribute Names in Spread Props

- Severity: Medium 4.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-16T14:57:21.000Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-jrpj-wcv7-9fh9
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- withastro astro: < 6.4.6
- astro (npm): before 6.4.6
- astro astro: before 6.4.6

## Every score

- GitHub_M: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/withastro/astro/security/advisories/GHSA-jrpj-wcv7-9fh9> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54298> (advisory)
- <https://github.com/withastro/astro> (package)

## Sources

- CVE List: [CVE-2026-54298](https://www.cve.org/CVERecord?id=CVE-2026-54298), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-jrpj-wcv7-9fh9](https://github.com/advisories/GHSA-jrpj-wcv7-9fh9), CC-BY-4.0, modified 2026-07-18
- NVD: [CVE-2026-54298](https://nvd.nist.gov/vuln/detail/CVE-2026-54298), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-54298 · Whole record: https://cve.day/CVE-2026-54298.json · Rebuilt by cve.day 2026-11-25T22:59:25.405Z
