CVE-2026-126361: Astro: XSS via attribute injection in dynamic tag names

Published Nov 12, 2026
·
Updated

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.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Astro to a version that resolves this vulnerability.

    Fixed in 7.4.5

Event History

Nov 12, 2026
CVE Published
via MITRE·10:26 PM
Data Sourced
via MITRE·10:26 PM
DescriptionWeakness
Nov 13, 2026
Data Sourced
via NVD·12:20 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are actually exposed to this issue?

Applications using Astro before 7.4.5 are exposed only if they use request-controlled or stored untrusted data as all or part of a dynamic element name. The affected rendering paths are the .astro dynamic-tag renderer, JSX renderer, and MDX renderer.

2

What does an attacker need to exploit it?

An attacker needs control over data that the application incorporates into a dynamic element name. A slash in that value can cause the HTML parser to interpret the remainder as attributes, enabling injection of event-handler markup.

3

Are applications using only fixed element names affected?

No. Exploitation requires untrusted input to be used as all or part of an element name; applications limited to fixed, trusted element names do not meet the stated exploitation condition.

4

What version fixes the vulnerability?

Upgrade Astro to version 7.4.5, which fixes the incomplete filtering that allowed the dynamic element-name value to be rendered as raw HTML.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203