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.
Advisories
Source ID Title
Github GHSA Github GHSA GHSA-mh32-jxcr-mh9f Astro: XSS via attribute injection in dynamic tag names
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Sat, 14 Nov 2026 05:00:00 +0000

Type Values Removed Values Added
First Time appeared Astro
Astro astro
Withastro
Withastro astro
Vendors & Products Astro
Astro astro
Withastro
Withastro astro

Thu, 12 Nov 2026 22:45:00 +0000

Type Values Removed Values Added
Description 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.
Title Astro: XSS via attribute injection in dynamic tag names
Weaknesses CWE-184
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'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-11-12T22:26:35.206Z

Reserved: 2026-11-10T21:12:01.228Z

Link: CVE-2026-126361

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-11-13T00:20:11.587

Modified: 2026-11-13T16:08:55.993

Link: CVE-2026-126361

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-14T04:45:19Z

Weaknesses