CVE-2026-126361

GHSA-mh32-jxcr-mh9f · published 12 Nov 2026 · updated 17 Nov 2026

Astro: XSS via attribute injection in dynamic tag names

2.3LowCVSS 2.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in astro 7.4.5.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
withastro<7.4.5
npm: astro<7.4.5, <=7.4.47.4.5

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in astro (npm), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-126361 severity on Zeptric[![CVE-2026-126361](https://zeptric.io/badge/cve/CVE-2026-126361.svg)](https://zeptric.io/cve/CVE-2026-126361)