CVE-2026-126361

Astro: XSS via attribute injection in dynamic tag names

Published Nov 12, 2026 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Astro, a content‑driven web framework, rendered a string used as a dynamic element name as raw HTML after applying an incomplete character filter. The presence of a slash within that string could cause an HTML parser to treat the remainder of the value as attributes, letting an attacker inject event‑handler markup when the element name came from untrusted data. This flaw allows the execution of arbitrary JavaScript in the victim browser, exposing user‑session cookies or sensitive application information to the attacker.

Affected Systems

The vulnerability affected the .astro dynamic‑tag renderer, the JSX renderer, and the MDX renderer in Astro versions prior to 7.4.5. It is relevant to all Astro installations that use request‑controlled or stored untrusted data as all or part of an element name. The affected vendor is withastro:astro.

Risk and Exploitability

The CVSS score of 2.3 and an EPSS score of less than 1% indicate a low severity and low likelihood of exploitation. The flaw is not listed in CISA’s KEV catalog, and the attack requires the attacker to supply or influence the element name, limiting the impact to client‑side script execution. While the immediate threat is modest, failure to patch the framework could allow an attacker to perform phishing, data exfiltration, or session hijacking from affected users.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Astro to version 7.4.5 or newer to apply the vendor fix.
  • Sanitize or escape any user‑controlled input that may be used as a tag name, removing or encoding disallowed characters such as slashes.
  • If upgrades are not possible, validate element names against a whitelist of allowed tags and reject any input that does not match the approved list.

Generated by OpenCVE AI on November 13, 2026 at 16:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-mh32-jxcr-mh9f Astro: XSS via attribute injection in dynamic tag names
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Astro
Astro astro
Withastro
Withastro astro
Vendors & Products Astro
Astro astro
Withastro
Withastro astro
Type Values Removed Values Added
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.
Title Astro: XSS via attribute injection in dynamic tag names
Weaknesses CWE-184
CWE-79
References
Metrics cvssV4_0

{'score': 2.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-184

    Incomplete List of Disallowed Inputs

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 17, 2026, 7:15 PM
Reserved
Nov 10, 2026, 9:12 PM
Status
Awaiting Analysis
Published
Nov 13, 2026, 12:20 AM
Modified
Nov 17, 2026, 8:17 PM
Severity
Moderate
Public date
Nov 12, 2026, 10:26 PM