CVE-2026-126361
Low 2.3No known exploitationFix availableAstro: XSS via attribute injection in dynamic tag names
Vendor advisory: GHSA-mh32-jxcr-mh9f
Record last updated
CVSS score
Low on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 25% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-79, CWE-184
Patching and mitigation
- Patch status
- Fix available (source: GitHub Advisory Database)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| npm | astro | all versions up to and including 7.4.4 | 7.4.5 | GitHub Advisory Database |
Timeline
Patch
Fix documented by GitHub Advisory Database
Vendor guidance and references
- GitHub Advisory GHSA-mh32-jxcr-mh9f (opens in a new tab)github-advisory
- https://github.com/withastro/astro/commit/e023abac912d7cb6af2b9fb5107ef5dabc667096 (opens in a new tab)
- https://github.com/withastro/astro/pull/18520 (opens in a new tab)
- https://github.com/withastro/astro/releases/tag/astro@7.4.5 (opens in a new tab)
- https://github.com/withastro/astro/security/advisories/GHSA-mh32-jxcr-mh9f (opens in a new tab)