CVE-2026-126361 Astro: XSS via attribute injection in dynamic tag names
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Red Hat
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.
Upgrade path
3 packages: 1 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/rhoai/odh-feature-server-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| npm astro(npm) | < 7.4.5; <= 7.4.4 | 7.4.5 | Fixed |
| withastro astro | = < 7.4.5 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm astro(npm) | <= 7.4.4 | No fix listed |
| withastro astro | = < 7.4.5 | No fix listed |
| redhat/rhoai/odh-feature-server-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| npm astro(npm) | < 7.4.5 | 7.4.5 |
References
- https://github.com/withastro/astro/security/advisories/GHSA-mh32-jxcr-mh9f vendor-advisory
- https://github.com/withastro/astro/pull/18520 patch
- https://github.com/withastro/astro/commit/e023abac912d7cb6af2b9fb5107ef5dabc667096 patch
- https://github.com/withastro/astro/releases/tag/astro@7.4.5
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2574625 issue-tracking
- www.cve.org
- github.com product
- ENISA EUVD EUVD-2026-124742 third-party-advisory