{"id":"CVE-2026-126363","aliases":["GHSA-jmv2-qgxf-f995"],"summary":"Astro: Reflected XSS via unescaped slot names in @astrojs/solid-js","published_at":"2026-11-12T22:31:46.889Z","modified_at":"2026-11-19T17:17:07Z","products":[],"rating":{"severity":"medium","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attack_path":"internet_unauthenticated","user_interaction":true,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.003809999907389283,"percentile":0.32877999544143677,"date":"2026-11-19T00:00:00Z"},"priority":7.6,"details":"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.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"withastro/astro","versions":[">= 0.2.0, < 7.1.2"],"provider":"cvelistv5","source":"CVE-2026-126363","relation":"self"},{"ecosystem":"npm","package":"@astrojs/solid-js","purl":"pkg:npm/%40astrojs/solid-js","ranges":[{"type":"SEMVER","events":[{"introduced":"0.2.0"},{"fixed":"7.1.2"}]}],"fixed":["7.1.2"],"provider":"osv","source":"GHSA-jmv2-qgxf-f995","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Trusted Artifact Signer","cpe":"cpe:/a:redhat:trusted_artifact_signer:1","status":"affected","packages":["rhtas/rhtas-console-ui-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-126363"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-126363","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-126363","license":"CC-BY-4.0","published_at":"2026-11-12T22:31:46.889Z","modified_at":"2026-11-17T12:22:37.244Z","summary":"Astro: Reflected XSS via unescaped slot names in @astrojs/solid-js","details":"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.","severity":[{"type":"CVSS_V4","score":"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","source":"CVE-2026-126363"}],"affected":[{"ecosystem":"CVE","package":"withastro/astro","versions":[">= 0.2.0, < 7.1.2"],"provider":"cvelistv5","source":"CVE-2026-126363","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/withastro/astro/security/advisories/GHSA-jmv2-qgxf-f995"},{"type":"WEB","url":"https://github.com/withastro/astro/commit/290b196ddb48de11783ff128e2b7272c61490a20"},{"type":"WEB","url":"https://github.com/withastro/astro/releases/tag/@astrojs/solid-js@7.1.2"}]},{"provider":"osv","source_id":"GHSA-jmv2-qgxf-f995","relation":"self","url":"https://osv.dev/vulnerability/GHSA-jmv2-qgxf-f995","license":"CC-BY-4.0","published_at":"2026-11-12T22:34:44Z","modified_at":"2026-11-12T22:45:04.210591Z","summary":"Astro: Reflected XSS via unescaped slot names in @astrojs/solid-js","details":"## Summary\n\nThe `@astrojs/solid-js` renderer wraps named slot content passed to Solid components in an `<astro-slot>` element, and writes the slot name into its `name` attribute without HTML escaping. A slot name containing `\"` could end the attribute and inject arbitrary HTML into the page.\n\nFor example, a page that takes a slot name from the request:\n\n```astro\n---\nimport Tabs from '../components/Tabs.jsx';\nconst tab = Astro.url.searchParams.get('tab');\n---\n<Tabs client:load active={tab}><div slot={tab}>…</div></Tabs>\n```\n\nrendered with a Solid component that renders a slot by name:\n\n```jsx\nexport default function Tabs(props) {\n\treturn <div>{props[props.active]}</div>;\n}\n```\n\nwould output a `tab` value such as `x\"><img src=x onerror=alert(1)>` as live HTML.\n\n## Impact\n\nReflected cross-site scripting. An attacker who gets a user to open a crafted link can run JavaScript on the site's origin, but only in applications where all of the following are true:\n\n- The page passes request-controlled input (such as a query parameter) as a slot name.\n- The Solid component is hydrated with a `client:*` directive. For non-hydrated components the slot wrapper is removed from the output, together with its `name` attribute.\n- The Solid component renders the attacker-chosen slot, which in practice means accessing slot props by a dynamic name. Components that never render the slot only output Astro's already escaped fallback template.\n\nThis is the `@astrojs/solid-js` counterpart of GHSA-8hv8-536x-4wqp (CVE-2026-50146), which fixed the same issue in `astro` core.\n\n## Affected versions\n\n`@astrojs/solid-js` >= 0.2.0, <= 7.1.1.\n\n## Patches\n\nFixed in `@astrojs/solid-js` 7.1.2. Slot names are now HTML-escaped in the server renderer.\n\n## Workarounds\n\nUpgrade to `@astrojs/solid-js` 7.1.2 or later. Before upgrading, do not use request-controlled input as a slot name, or map it to a fixed set of known slot names before passing it to a component.\n\n## Credits\n\nReported by @manus-pi.","severity":[{"type":"CVSS_V4","score":"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","source":"GHSA-jmv2-qgxf-f995"}],"affected":[{"ecosystem":"npm","package":"@astrojs/solid-js","purl":"pkg:npm/%40astrojs/solid-js","ranges":[{"type":"SEMVER","events":[{"introduced":"0.2.0"},{"fixed":"7.1.2"}]}],"fixed":["7.1.2"],"provider":"osv","source":"GHSA-jmv2-qgxf-f995","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/withastro/astro/security/advisories/GHSA-jmv2-qgxf-f995"},{"type":"WEB","url":"https://github.com/withastro/astro/commit/290b196ddb48de11783ff128e2b7272c61490a20"},{"type":"PACKAGE","url":"https://github.com/withastro/astro"},{"type":"WEB","url":"https://github.com/withastro/astro/releases/tag/@astrojs/solid-js@7.1.2"}]},{"provider":"redhat-vex","source_id":"CVE-2026-126363","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-126363","license":"CC-BY-4.0","published_at":"2026-11-12T22:31:46.889Z","modified_at":"2026-11-19T17:17:07Z","summary":"solid-js: @astrojs/solid-js: Cross-site scripting via unescaped slot names","details":"A flaw was found in the @astrojs/solid-js integration for Astro. A remote attacker could execute arbitrary script in a user's browser via cross-site scripting (XSS) by providing a maliciously crafted slot name in an application request. Because slot names are inserted into HTML element attributes without proper escaping during component rendering, the input can break out of the attribute and inject active HTML into the rendered page.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"CVE-2026-126363"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-126363"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Trusted Artifact Signer","cpe":"cpe:/a:redhat:trusted_artifact_signer:1","status":"affected","packages":["rhtas/rhtas-console-ui-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-126363"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-126363.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-126363"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2572867"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-126363"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126363"},{"type":"WEB","url":"https://github.com/withastro/astro/commit/290b196ddb48de11783ff128e2b7272c61490a20"},{"type":"WEB","url":"https://github.com/withastro/astro/releases/tag/@astrojs/solid-js@7.1.2"},{"type":"WEB","url":"https://github.com/withastro/astro/security/advisories/GHSA-jmv2-qgxf-f995"}]}],"references":[{"type":"WEB","url":"https://github.com/withastro/astro/security/advisories/GHSA-jmv2-qgxf-f995"},{"type":"WEB","url":"https://github.com/withastro/astro/commit/290b196ddb48de11783ff128e2b7272c61490a20"},{"type":"WEB","url":"https://github.com/withastro/astro/releases/tag/@astrojs/solid-js@7.1.2"},{"type":"PACKAGE","url":"https://github.com/withastro/astro"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-126363.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-126363"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2572867"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-126363"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126363"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-126363","url":"https://www.cve.org/CVERecord?id=CVE-2026-126363","license":"CC-BY-4.0","modified_at":"2026-11-17T12:22:37.244Z","relation":"self"},{"provider":"osv","source_id":"GHSA-jmv2-qgxf-f995","url":"https://osv.dev/vulnerability/GHSA-jmv2-qgxf-f995","license":"CC-BY-4.0","modified_at":"2026-11-12T22:45:04.210591Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-126363","url":"https://access.redhat.com/security/cve/CVE-2026-126363","license":"CC-BY-4.0","modified_at":"2026-11-19T17:17:07Z","relation":"self"}]}
