Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify app using untrusted input as element name
-
DeliveryCraft element-name payload with / and onerror
-
ExploitDeliver link or store value in CMS field
-
ExecutionVictim loads rendered page
-
ImpactInjected event handler executes script in victim browser
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation is NOT possible against default or typical Astro usage: it requires the application itself to use request-controlled or stored untrusted data as all or part of a dynamic element name (e.g. const Tag = Astro.url.searchParams.get('as'); <Tag/>) in a .astro dynamic tag, JSX, or MDX render. Astro never derives element names from request data on its own, so this is a non-default application coding pattern. Further limiting factors: the vector requires victim user interaction (UI:P - a victim must load the attacker-influenced page), impact is limited to reflected or stored XSS in the browser, and the JSX/MDX path (which did no filtering at all) versus the .astro path (incomplete filter) both depend on the app opting into untrusted element names. Mapping untrusted input to a fixed allowlist of tags, or upgrading to 7.4.5, removes the condition. |
| Impact | This is a genuinely low-priority issue by every available signal, and they agree with each other. The vendor CVSS 4.0 score is 2.3 with vector AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N: network-reachable but requiring both an attack prerequisite (AT:P) and victim interaction (UI:P), with only Low impact to confidentiality and integrity. The vuln.today Decision label is 'monitor', the lowest urgency tier, which is consistent with the scores. No EPSS probability was supplied and the CVE is not in CISA KEV, so there is no evidence of active exploitation - exploitation status is 'no public exploit identified at time of analysis', though the GHSA advisory itself publishes a working reproduction (?as=img/src/onerror=alert(1)) that demonstrates the technique, so it should be treated as a public PoC reference rather than unknown. The dominant risk-limiting factor is not captured in the raw CVSS: per the vendor, Astro never derives element names from request data, so only applications that have deliberately wired untrusted request or CMS input into a dynamic tag name are exposed. The signals do not conflict; the main caveat is that EPSS is simply absent rather than low, so quantitative exploitation likelihood cannot be stated. |
| Exploit ScenarioDerived | An Astro application passes a request parameter or stored CMS field directly into a dynamic element name (const Tag = Astro.url.searchParams.get('as'); <Tag/>). An attacker crafts a value like img/src/onerror=alert(1); because the pre-7.4.5 filter did not strip /, the HTML parser treats the remainder as attributes and renders an <img> with an attacker-controlled onerror handler, yielding reflected or stored XSS when a victim loads the page. The advisory publishes a concrete reproduction, but no weaponized exploit tooling is confirmed. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
Reflected and stored cross-site scripting in the Astro framework through 7.4.4 lets a crafted string used as a dynamic element name escape the tag-name position and inject event-handler attributes, because the .astro dynamic-tag renderer's character filter did not account for the / separator and the JSX and MDX renderers applied no filtering at all. A value such as img/src/onerror=alert(1) is emitted as an <img> element carrying an attacker-controlled onerror handler. The issue is remotely reachable without authentication but requires victim user interaction, and exploitation is only possible in non-default applications that deliberately pass request-controlled or stored untrusted data as all or part of an element name - Astro itself never derives element names from request data - with no public exploit code identified at time of analysis and a vendor fix released in 7.4.5.
RemediationAI
Upgrade the astro package to 7.4.5 or later, which is the vendor's stated complete fix (GHSA-mh32-jxcr-mh9f, PR https://github.com/withastro/astro/pull/18520, commit e023abac912d7cb6af2b9fb5107ef5dabc667096, release https://github.com/withastro/astro/releases/tag/astro@7.4.5); the patched renderers keep only the leading valid element name so / and = can no longer alter generated markup. Before upgrading, the vendor's workaround is to stop using untrusted input as an element name, or to map that input to a fixed allowlist of known tags. Note two trade-offs: an allowlist is the durable control because even a correct filter still lets input select dangerous elements such as script or iframe, but it will reject any content that legitimately relied on arbitrary tag selection; and after 7.4.5, strings that do not start with a valid element name (for example '!--' or an empty string) throw an error rather than rendering, so audit dynamic-tag call sites for such values before deploying to avoid new 500 responses. Applications that never derive element names from request or stored data need no code change beyond the version bump.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause sits at the boundary between application code and the HTML tokenizer. In HTML, a tag name terminates at whitespace, /, or >, so anything a renderer appends after a valid name is parsed as attributes rather than as part of the element name. Astro's original sanitizeElementName in packages/astro/src/runtime/server/render/component.ts used the pattern /[&<>'"\s]+/ to strip attribute-injection characters, which covered quotes, angle brackets and whitespace but not / or =; as a result img/src/onerror=alert(1) survived filtering and was emitted as <img src onerror=alert(1)>. The JSX renderer used for MDX performed no sanitization of string tag names whatsoever, widening the same class of bug. This is CWE-79 (improper neutralization of input during web page generation) enabled by CWE-184 (incomplete list of disallowed inputs). The fix in PR 18520 introduces a positive-match sanitizer in render/util.ts - /^[a-zA-Z][\w\-.:\u00B7\u00C0-\u{EFFFF}]*/u - that keeps only the leading valid element name, applies it uniformly in component.ts, streaming.ts and jsx.ts (including void-element and style-tag checks in the streaming path), and throws an error when a string does not begin with a valid element name instead of emitting malformed HTML. The CPE cpe:2.3:a:withastro:astro:*:*:*:*:*:*:*:* covers the npm package astro.
Know when Astro gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable XSS but only when the app non-defaultly uses untrusted input as an element name (AC:H) and a victim loads the page (UI:R); scope changes into the browser (S:C) with limited C/I impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Blast Radius
ecosystem impact- 3 npm packages depend on astro (3 direct, 0 indirect)
Ecosystem-wide dependent count for version 7.4.5.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
SQL Injection exists in the Saxum Astro 4.0.14 component for Joomla!. Rated critical severity (CVSS 9.8), this vulnerabi
Astro web framework versions prior to 9.5.4 contain a server-side request forgery vulnerability in error page handling t
Authorization bypass in the Astro web framework version 6.4.7 lets remote unauthenticated attackers reach protected rout
Astro is a web framework for content-driven websites. Rated high severity (CVSS 7.8), this vulnerability is remotely exp
Server-side request forgery in Astro's built-in image proxy lets unauthenticated remote attackers force the server to fe
Astro is a web framework for content-driven websites. Rated high severity (CVSS 7.2), this vulnerability is remotely exp
Astro is a web framework for content-driven websites. Rated medium severity (CVSS 6.9), this vulnerability is remotely e
Astro is a web framework. Rated medium severity (CVSS 6.9), this vulnerability is remotely exploitable, no authenticatio
Astro is a web framework. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable, no authenticatio
Unvalidated reflection of the X-Forwarded-Host header in Astro (versions before 5.14.3) lets remote, unauthenticated att
Astro web framework versions 9.0.0 through 9.5.3 fail to validate remote image domains when the inferSize option is enab
Base-path prefix bypass in Astro prior to 7.2.4 allows unauthenticated remote attackers to reach protected server-side r
EUVD-2026-124742
GHSA-mh32-jxcr-mh9f
NVD
CVE.org
EPSS
Exploit-DB