Skip to main content

Astro CVE-2026-126361

| EUVDEUVD-2026-124742 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-11-12 GitHub_M GHSA-mh32-jxcr-mh9f
2.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify app using untrusted input as element name
  2. Delivery
    Craft element-name payload with / and onerror
  3. Exploit
    Deliver link or store value in CMS field
  4. Execution
    Victim loads rendered page
  5. Impact
    Injected 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

astro < 7.4.5

Affected Packages

npm astro fix: 7.4.5

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

Vendor (GitHub_M) PRIMARY 2.3 LOW
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
vuln.today AI 4.7 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 12, 2026 - 23:03 EUVD

DescriptionCVE.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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Medium
popular content-focused JS web framework, common but not ubiquitous in production
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Astro

View all
CVE-2018-7180 CRITICAL POC
9.8 Feb 17

SQL Injection exists in the Saxum Astro 4.0.14 component for Joomla!. Rated critical severity (CVSS 9.8), this vulnerabi

CVE-2026-25545 HIGH POC
8.6 Feb 24

Astro web framework versions prior to 9.5.4 contain a server-side request forgery vulnerability in error page handling t

CVE-2026-59731 HIGH POC
8.2 Jul 08

Authorization bypass in the Astro web framework version 6.4.7 lets remote unauthenticated attackers reach protected rout

CVE-2024-56159 HIGH POC
7.8 Dec 19

Astro is a web framework for content-driven websites. Rated high severity (CVSS 7.8), this vulnerability is remotely exp

CVE-2025-59837 HIGH POC
7.2 Oct 28

Server-side request forgery in Astro's built-in image proxy lets unauthenticated remote attackers force the server to fe

CVE-2025-58179 HIGH POC
7.2 Sep 05

Astro is a web framework for content-driven websites. Rated high severity (CVSS 7.2), this vulnerability is remotely exp

CVE-2025-55303 MEDIUM POC
6.9 Aug 19

Astro is a web framework for content-driven websites. Rated medium severity (CVSS 6.9), this vulnerability is remotely e

CVE-2025-64765 MEDIUM POC
6.9 Nov 19

Astro is a web framework. Rated medium severity (CVSS 6.9), this vulnerability is remotely exploitable, no authenticatio

CVE-2025-64525 MEDIUM POC
6.5 Nov 13

Astro is a web framework. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable, no authenticatio

CVE-2025-61925 MEDIUM POC
6.5 Oct 10

Unvalidated reflection of the X-Forwarded-Host header in Astro (versions before 5.14.3) lets remote, unauthenticated att

CVE-2026-27829 MEDIUM POC
6.5 Feb 26

Astro web framework versions 9.0.0 through 9.5.3 fail to validate remote image domains when the inferSize option is enab

CVE-2026-84376 MEDIUM POC
6.3 Sep 02

Base-path prefix bypass in Astro prior to 7.2.4 allows unauthenticated remote attackers to reach protected server-side r

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy