{"id":"CVE-2026-126361","published":"2026-11-12T22:26:35Z","modified":"2026-11-17T19:15:51Z","title":"Astro: XSS via attribute injection in dynamic tag names","vendor":"withastro","product":"astro","tier":"tail","description":{"text":"Astro is a web framework for content-driven websites. Prior to 7.4.5, Astro rendered a string used as a dynamic element name as raw HTML after applying an incomplete character filter. A / in the string could make an HTML parser treat the remainder as attributes, allowing untrusted element-name input to inject event-handler markup. The .astro dynamic-tag renderer, JSX renderer, and MDX renderer were affected, and exploitation required an application to use request-controlled or stored untrusted data as all or part of an element name. This issue is fixed in version 7.4.5.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.3,"severity":"LOW","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00394,"percentile":0.34393,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"}],"references":[{"url":"https://github.com/withastro/astro/security/advisories/GHSA-mh32-jxcr-mh9f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/withastro/astro/pull/18520","tags":["x_refsource_MISC"]},{"url":"https://github.com/withastro/astro/commit/e023abac912d7cb6af2b9fb5107ef5dabc667096","tags":["x_refsource_MISC"]},{"url":"https://github.com/withastro/astro/releases/tag/astro@7.4.5","tags":["x_refsource_MISC"]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":6.88},{"name":"CVSS severity","points":1.61}]},"vendorSlug":"withastro","affectedVersions":[{"vendor":"withastro","product":"astro","versions":["< 7.4.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-17T19:15:39.162222Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"astro","vulnerableRanges":["<7.4.5"],"patched":["7.4.5"],"from":["GHSA-mh32-jxcr-mh9f"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-124742","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-withastro-astro-cve-2026-59729","parents":[{"from":"CVE-2026-59729","to":"CVE-2026-126361","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/astro/src/runtime/server/render/util.ts"],"commits":["https://github.com/withastro/astro/commit/e023abac912d7cb6af2b9fb5107ef5dabc667096","https://github.com/withastro/astro/commit/5240e26c9dd91f9bc7140dcfacdb48d5a132830d"],"basis":"rarely changed file"}]},{"from":"CVE-2026-114128","to":"CVE-2026-126361","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/astro/src/runtime/server/jsx.ts","packages/astro/src/runtime/server/render/streaming.ts"],"commits":["https://github.com/withastro/astro/commit/a548223607b9bb146d5d90ddda495343f9a2a739","https://github.com/withastro/astro/commit/e023abac912d7cb6af2b9fb5107ef5dabc667096"],"basis":"shared function","functions":["renderStreaming"]},{"kind":"similar","provenance":"machine","score":0.42,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-84376","published":"2026-09-02","fixed":"7.2.4","kev":false},{"cve":"CVE-2026-114128","published":"2026-10-21","fixed":"7.3.2","kev":false},{"cve":"CVE-2026-114127","published":"2026-10-21","fixed":"7.3.3","kev":false,"link":{"from":"CVE-2026-114127","to":"CVE-2026-126361","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:astro","fromFixed":"7.3.3","toFixed":"7.4.5","daysApart":22}]}},{"cve":"CVE-2026-126361","published":"2026-11-12","fixed":"7.4.5","kev":false},{"cve":"CVE-2026-126364","published":"2026-11-12","fixed":"7.4.7","kev":false,"link":{"from":"CVE-2026-126361","to":"CVE-2026-126364","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:astro","fromFixed":"7.4.5","toFixed":"7.4.7","daysApart":0}]}}],"package":"npm:astro"}}