# CVE-2026-126362: Astro: Reflected XSS via unescaped slot names in @astrojs/svelte

- Severity: Low 2.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/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.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2026-11-12T22:29:19.505Z
- Modified: 2026-11-17T22:17:20.177Z
- Also known as: GHSA-f4j9-crrj-867q
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Astro is a web framework for content-driven websites. From 5.7.3 until 9.1.2, the @astrojs/svelte renderer inserted a named slot into the quoted name attribute of an astro-slot wrapper without HTML escaping. Request-controlled slot names containing a quote could terminate the attribute and inject active HTML. Exploitation required a hydrated Svelte component using a client:* directive and dynamic rendering of the attacker-chosen slot; components that did not render that slot emitted only Astro's escaped fallback content. Both server rendering and client-side hydration used the unsafe slot name. This issue is fixed in version 9.1.2.

(As written by CVE List.)

## Affected

- withastro astro: >= 5.7.3, < 9.1.2
- @astrojs/svelte (npm): from 5.7.3 before 9.1.2

## Every score

- GitHub_M: CVSS:4.0 2.3 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`

## References

- <https://github.com/withastro/astro/security/advisories/GHSA-f4j9-crrj-867q> (web)
- <https://github.com/withastro/astro/commit/5e476365378e41aa2745d003b2383d02008d7b44> (web)
- <https://github.com/withastro/astro/releases/tag/@astrojs/svelte@9.1.2> (web)
- <https://github.com/withastro/astro> (package)

## Sources

- CVE List: [CVE-2026-126362](https://www.cve.org/CVERecord?id=CVE-2026-126362), CVE Terms of Use, modified 2026-11-13
- GitHub Advisory Database: [GHSA-f4j9-crrj-867q](https://github.com/advisories/GHSA-f4j9-crrj-867q), CC-BY-4.0, modified 2026-11-12
- NVD: [CVE-2026-126362](https://nvd.nist.gov/vuln/detail/CVE-2026-126362), Public domain, modified 2026-11-17

---

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