CVE-2026-126363

Astro: Reflected XSS via unescaped slot names in @astrojs/solid-js

Published Nov 12, 2026 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Astro’s @astrojs/solid-js renderer introduced a reflected XSS vulnerability by inserting an unescaped slot name into the quoted name attribute of an astro‑slot wrapper. A request‑controlled slot name containing a quotation mark could terminate the attribute and inject active HTML. The flaw requires that the component be hydrated with a Solid client directive and that the attacker can access the chosen slot property; if the component does not render that slot, only the escaped fallback content is shown. The weakness corresponds to CWE‑79.

Affected Systems

Astro framework versions from 0.2.0 up to, but not including, 7.1.2 – specifically the @astrojs/solid‑js renderer – are affected. Versions 7.1.2 and later have the issue addressed.

Risk and Exploitability

With a CVSS score of 2.3 and an EPSS below 1 %, the exploitation likelihood is very low, and the vulnerability is not listed in CISA’s KEV catalog. The attack vector is client‑side and requires a hydrated Solid component using a client directive and a dynamic slot name supplied by an attacker. Because of these prerequisites, the overall risk remains low, but the vulnerability can still lead to active script execution in a user’s browser if exploited.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Astro to version 7.1.2 or later to eliminate the reflected XSS flaw.
  • If immediate upgrade is not possible, delete or remove any client‑directed Solid components that use dynamic slot names supplied from user input.
  • Validate or sanitise any slot names that are derived from user data to ensure they do not contain quotation marks or other special characters before rendering.

Generated by OpenCVE AI on November 13, 2026 at 16:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-jmv2-qgxf-f995 Astro: Reflected XSS via unescaped slot names in @astrojs/solid-js
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Astro
Astro astro
Withastro
Withastro astro
Vendors & Products Astro
Astro astro
Withastro
Withastro astro
Type Values Removed Values Added
Description 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.
Title Astro: Reflected XSS via unescaped slot names in @astrojs/solid-js
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 2.3, 'vector': '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'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 17, 2026, 12:22 PM
Reserved
Nov 10, 2026, 9:12 PM
Status
Awaiting Analysis
Published
Nov 13, 2026, 12:20 AM
Modified
Nov 17, 2026, 10:17 PM
Severity
Moderate
Public date
Nov 12, 2026, 10:31 PM