CVE-2026-126362: Reflected XSS via unescaped slot names in @astrojs/svelte
Affects @astrojs/svelteSource GCVE Database
Not known to be exploited · CVSS 2.3 Low : upgrade to 9.1.2 when convenient.
Data as of 12 Nov 2026, 23:20 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 2.3 |
|---|
- Patch
- Available – fixed in 9.1.2
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 12 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 12 Nov 2026.
What to do
Upgrade @astrojs/svelte to 9.1.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@astrojs/svelte | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to @astrojs/svelte version 9.1.2 or later, where slot names are properly HTML-escaped. Until upgrading, avoid using request-controlled input directly as slot names or restrict slot names to a fixed set of known safe values.
Description
A reflected cross-site scripting (XSS) vulnerability exists in the @astrojs/svelte renderer where slot names are not HTML-escaped before being inserted into the name attribute of an <astro-slot> element. This allows an attacker to inject arbitrary HTML and JavaScript if a slot name is derived from untrusted input such as a URL query parameter. The vulnerability affects versions from 5.7.3 up to 9.1.1 and is fixed in version 9.1.2.
References
- github.com/withastro/astro/security/advisories/GHSA-f4j9-crrj-867q (opens in a new tab)
- github.com/withastro/astro/commit/5e476365378e41aa2745d003b2383d02008d7b44 (opens in a new tab)
- github.com/withastro/astro (opens in a new tab)
- github.com/withastro/astro/releases/tag/@astrojs/svelte@9.1.2 (opens in a new tab)