# CVE-2026-59729: Astro: XSS via unescaped spread attribute names in renderHTMLElement (incomplete fix for CVE-2026-54298)

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA: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.47%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-20T23:21:58.000Z
- Modified: 2026-10-24T13:10:00.147Z
- Also known as: GHSA-f48w-9m4c-m7f5
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Astro is a web framework for content-driven websites. Versions prior to 7.0.6 are vulnerable to XSS through unescaped spread attribute names in renderHTMLElement. The fix for CVE-2026-54298 (GHSA-jrpj-wcv7-9fh9) added an INVALID_ATTR_NAME_CHAR guard to addAttribute() so that spread-prop attribute names containing "' >/= or whitespace are dropped. A second attribute-rendering path, renderHTMLElement() in packages/astro/src/runtime/server/render/dom.ts, has its own inline attribute loop that does not go through addAttribute() and was not updated. It interpolates the attribute name unescaped and only escapes the value, so untrusted prop keys spread onto a native-HTMLElement-subclass component can still break out of the attribute context. This issue has been fixed in version 7.0.6.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:4.0 5.1 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`

## References

- <https://github.com/withastro/astro/security/advisories/GHSA-f48w-9m4c-m7f5> (exploit, web)
- <https://github.com/withastro/astro/pull/17251> (web)
- <https://github.com/withastro/astro/commit/5240e26c9dd91f9bc7140dcfacdb48d5a132830d> (web)
- <https://github.com/withastro/astro/releases/tag/astro@7.0.6> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59729> (advisory)
- <https://github.com/withastro/astro> (package)

## Sources

- CVE List: [CVE-2026-59729](https://www.cve.org/CVERecord?id=CVE-2026-59729), CVE Terms of Use, modified 2026-07-28
- GitHub Advisory Database: [GHSA-f48w-9m4c-m7f5](https://github.com/advisories/GHSA-f48w-9m4c-m7f5), CC-BY-4.0, modified 2026-08-12
- NVD: [CVE-2026-59729](https://nvd.nist.gov/vuln/detail/CVE-2026-59729), Public domain, modified 2026-10-24

---

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