CVE-2026-126361
Astro: XSS via attribute injection in dynamic tag names
Overview
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.
Source: OX vulnerability database
Severity
LOW
No CVSS vector in the source. Severity comes from the advisory.
Weakness: CWE-79, CWE-184
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | astro | <7.4.5 | 7.4.5 |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- github.com https://github.com/withastro/astro
- github.com https://github.com/withastro/astro/commit/e023abac912d7cb6af2b9fb5107ef5dabc667096
- github.com https://github.com/withastro/astro/pull/18520
- github.com https://github.com/withastro/astro/releases/tag/astro@7.4.5
- github.com https://github.com/withastro/astro/security/advisories/GHSA-mh32-jxcr-mh9f
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-126361
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.