Reflected XSS via unescaped slot names in @astrojs/solid-js
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
The @astrojs/solid-js renderer in Astro, from 0.2.0 before 7.1.2, inserts a named slot into the quoted name attribute of an astro-slot wrapper without HTML escaping. This is a reflected cross-site scripting flaw (CWE-79). A remote attacker can supply a slot name containing a quote to break out of the attribute and inject active HTML, but only when a hydrated Solid component with a client:* directive dynamically accesses that slot. The CVSS 4.0 vector requires user interaction and low attack complexity.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
Astro is a web framework for content-driven websites. From 0.2.0 until 7.1.2, the @astrojs/solid-js renderer inserted a named slot into the quoted name attribute of an astro-slot wrapper without HTML escaping. A request-controlled slot name containing a quote could terminate the attribute and inject active HTML. Exploitation required a hydrated Solid component using a client:* directive and dynamic access to the attacker-chosen slot property; a component that did not render that slot emitted only escaped fallback content. This issue is fixed in version 7.1.2.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| withastro | astro | 0.2.0 to before 7.1.2 | 7.1.2 | Patch available | CNA |
| — | @astrojs/solid-js (npm) | 0.2.0 to before 7.1.2 | 7.1.2 | Patch available | GHSA-jmv2-qgxf-f995 |
- astro Vendorwithastro Affected 0.2.0 to before 7.1.2 Fixed in 7.1.2 Patch available CNA
- @astrojs/solid-js (npm) Vendor— Affected 0.2.0 to before 7.1.2 Fixed in 7.1.2 Patch available GHSA-jmv2-qgxf-f995
Remediation
Update astro and @astrojs/solid-js to version 7.1.2, which fixes the issue. The sources list no fixed version for other releases.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA astro (withastro) Fixed in 7.1.2
- Fix · GHSA-jmv2-qgxf-f995 @astrojs/solid-js (npm) Fixed in 7.1.2 Advisory →
Timeline
- 2026-11-12 Threatist record created from CVE-2026-126363
- 2026-11-12 Alias added: GHSA-jmv2-qgxf-f995
- 2026-11-12 Fix available: npm/@astrojs/[email protected] · GHSA-jmv2-qgxf-f995
- 2026-11-12 CVSS score added · GHSA-jmv2-qgxf-f995
- 2026-11-12 Weakness changed · GHSA-jmv2-qgxf-f995
- 2026-11-12 4 new references · GHSA-jmv2-qgxf-f995
- 2026-11-17 CISA SSVC decision points changed
References
More withastro vulnerabilities
- TI-2026-26147 Astro: Unauthenticated Path Override via `x-astro-path` / `x_astro_path` CVSS 3.1CRITICAL 9.1
- TI-2026-42600 Astro 6.4.7 Authorization Bypass via Decode Iteration Limit and Rewrite Path Canonicalization Mismatch CVSS 3.1HIGH 8.2
- TI-2024-37142 Server source code is exposed to the public if sourcemaps are enabled CVSS 4.0HIGH 7.8
- TI-2025-35987 Astro Cloudflare adapter is vulnerable to Server-Side Request Forgery via /_image endpoint CVSS 3.1HIGH 7.2
- TI-2025-34958 Unauthorized third-party images in Astro’s _image endpoint CVSS 4.0MEDIUM 6.9
- TI-2026-51542 Astro: Unauthenticated path override in the @astrojs/vercel ISR function CVSS 3.1MEDIUM 6.5
Sources
- CVE-2026-126363 · CVE Program
- CVE-2026-126363 · NVD
- FIRST EPSS
- GHSA-jmv2-qgxf-f995 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences