{"id":"CVE-2026-50146","published":"2026-06-22T17:31:56Z","modified":"2026-06-23T14:11:04Z","title":"Astro: Reflected XSS via unescaped slot name","vendor":"withastro","product":"astro","tier":"tail","description":{"text":"Astro is a web framework. Prior to 6.3.3, when a component uses a client:* directive, Astro inserts named slot content into a data-astro-template attribute without HTML escaping the slot name allowing an attacker to break out of the attribute context and inject arbitrary HTML, resulting in reflected XSS during SSR. This vulnerability is fixed in 6.3.3.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00268,"percentile":0.19373,"provenance":"source"},"cwes":[{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"}],"references":[{"url":"https://github.com/withastro/astro/security/advisories/GHSA-8hv8-536x-4wqp","tags":["x_refsource_CONFIRM"]}],"priority":{"score":8.8,"factors":[{"name":"EPSS percentile","points":3.87},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"withastro","affectedVersions":[{"vendor":"withastro","product":"astro","versions":["< 6.3.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-23T14:10:27.383142Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"astro","vulnerableRanges":["<6.3.3"],"patched":["6.3.3"],"from":["GHSA-8hv8-536x-4wqp"],"provenance":"source"}],"summary":{"text":"The flaw is a reflected cross-site scripting issue in the Astro web framework (withastro/astro), where, in versions before 6.3.3, named slot content used with a client:* directive is inserted into a data-astro-template attribute without HTML escaping of the slot name. An attacker who can get a crafted slot name into a page rendered by the server can exploit this by user interaction, such as having a victim open a malicious link, to break out of the attribute context and inject arbitrary HTML during server-side rendering.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:08:05Z"},"euvd":{"id":"EUVD-2026-38335","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-33769","published":"2026-03-24","fixed":"5.18.1","kev":false},{"cve":"CVE-2026-41067","published":"2026-04-24","fixed":"6.1.6","kev":false},{"cve":"CVE-2026-45028","published":"2026-05-13","fixed":"6.1.10","kev":false,"link":{"from":"CVE-2026-45028","to":"CVE-2026-50146","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:astro","fromFixed":"6.1.10","toFixed":"6.3.3","daysApart":40}]}},{"cve":"CVE-2026-50146","published":"2026-06-22","fixed":"6.3.3","kev":false},{"cve":"CVE-2026-54298","published":"2026-06-22","fixed":"6.4.6","kev":false,"link":{"from":"CVE-2026-50146","to":"CVE-2026-54298","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:astro","fromFixed":"6.3.3","toFixed":"6.4.6","daysApart":0}]}},{"cve":"CVE-2026-54299","published":"2026-06-22","fixed":"6.4.6","kev":false,"link":{"from":"CVE-2026-50146","to":"CVE-2026-54299","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:astro","fromFixed":"6.3.3","toFixed":"6.4.6","daysApart":0}]}},{"cve":"CVE-2026-59731","published":"2026-07-08","fixed":"6.4.8","kev":false}],"package":"npm:astro"}}