CVE-2026-126361: Astro · XSS via attribute injection in dynamic tag names
Affects astroSource GCVE Database
Not known to be exploited · CVSS 2.3 Low : upgrade to 7.4.5 when convenient.
Data as of 13 Nov 2026, 19:37 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 2.3 |
|---|
- Patch
- Available – fixed in 7.4.5
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 12 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Upgrade astro to 7.4.5.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmastro | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to Astro version 7.4.5 or later, where the vulnerability is fixed. Before upgrading, avoid using untrusted input directly as element names or map such input to a fixed set of known safe tags. The vendor advisory confirms the fix and recommends these mitigations.
Description
Astro versions up to 7.4.4 have a reflected or stored cross-site scripting (XSS) vulnerability via attribute injection in dynamic tag names. When a dynamic tag resolves to a string containing a slash (/), Astro's filtering failed to prevent injection of attributes, allowing crafted tag names like 'img/src/onerror=alert(1)' to render as elements with malicious attributes. This affects applications that use untrusted input directly as element names. The issue is fixed in Astro 7.4.5, which properly restricts dynamic tag names to valid element names and throws errors for invalid ones.
References
- github.com/withastro/astro/security/advisories/GHSA-mh32-jxcr-mh9f (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-126361 (opens in a new tab)
- github.com/withastro/astro/pull/18520 (opens in a new tab)
- github.com/withastro/astro/commit/e023abac912d7cb6af2b9fb5107ef5dabc667096 (opens in a new tab)
- github.com/withastro/astro (opens in a new tab)
- github.com/withastro/astro/releases/tag/astro@7.4.5 (opens in a new tab)