Skip to main content

@astrojs/svelte CVE-2026-126362

| EUVDEUVD-2026-124743 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-11-12 GitHub_M GHSA-f4j9-crrj-867q
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
    Craft malicious link with quote-breaking slot name
  2. Delivery
    Lure victim to open link
  3. Exploit
    Request-controlled value written unescaped into astro-slot name attribute
  4. Execution
    Attribute terminated, active HTML injected
  5. Impact
    Script executes in victim browser on site origin

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 possible only when ALL of the following hold in the target Astro application: (1) the page passes request-controlled input (such as a query parameter) directly as a slot name; (2) the Svelte component is hydrated with a client:* directive - for non-hydrated components the astro-slot wrapper and its name attribute are removed from output; (3) the component actually renders the attacker-chosen slot, in practice a Svelte 5 component that renders snippets by a dynamic name (components that never render that slot emit only Astro's already-escaped fallback); and (4) a victim opens an attacker-crafted link (UI:P). Limiting factors: this is a non-default application coding pattern, not an out-of-the-box exposure, and the required victim interaction plus the dynamic-slot-rendering precondition substantially narrow real-world exploitability. Both server rendering and client-side hydration used the unsafe slot name on affected versions.

Impact

This is a genuinely low-priority issue, and the signals agree. The vendor CVSS 4.0 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) scores 2.3, and the SSVC/priority Decision label is 'monitor' - both pointing to routine handling rather than urgent action. The vector is network-reachable (AV:N) and needs no attacker authentication (PR:N), but it carries AT:P (a specific attack requirement) and UI:P (victim interaction), reflecting that exploitation only works against an application coded in a particular vulnerable way AND requires a victim to open a crafted link. KEV status is not listed, so there is no confirmed active exploitation; no EPSS score was provided, so statistical exploitation probability cannot be compared here. The practical risk is sharply constrained by the preconditions described in the advisory (request-controlled slot name + hydrated client:* Svelte 5 component that renders dynamic snippets by name), which is an uncommon application pattern rather than a default-configuration flaw. Net: a real but narrow reflected-XSS bug, correctly rated low; it does not represent a widespread or high-urgency threat on the available evidence.

Exploit ScenarioDerived

An application passes a request-controlled value (e.g. a ?tab= query parameter) as the slot name of a hydrated Svelte 5 component that renders snippets by dynamic name. An attacker crafts a link where that parameter is a slot name like x"><img src=x onerror=alert(1)>, terminating the astro-slot name attribute and injecting live HTML; a victim who opens the link executes the attacker's JavaScript on the site's origin. The GHSA advisory and the fix commit's regression test both include a worked injection payload demonstrating the issue, consistent with the AV:N/UI:P (crafted-link, victim-interaction) nature of the attack.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.4% 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 cross-site scripting in the @astrojs/svelte renderer (versions 5.7.3 through 9.1.1) lets a crafted link execute script on the victim site's origin when the application writes a request-controlled slot name into the renderer's generated <astro-slot> wrapper, because that name was placed inside a double-quoted name attribute without HTML escaping. Exploitation requires an unusually specific combination: a page that passes attacker-influenced input directly as a slot name, a Svelte component hydrated with a client:* directive, and a component (in practice Svelte 5) that renders the attacker-chosen slot by dynamic name - components that never render that slot emit only Astro's already-escaped fallback, and non-hydrated components drop the wrapper entirely. The issue is rated low severity (CVSS 2.3, CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N) and, at time of analysis, no public exploit code has been identified; a vendor fix is available in @astrojs/svelte 9.1.2.

RemediationAI

Vendor-released patch: @astrojs/svelte 9.1.2, which HTML-escapes slot names in both the server renderer and the client-side hydration code (release: https://github.com/withastro/astro/releases/tag/@astrojs/svelte@9.1.2, commit: https://github.com/withastro/astro/commit/5e476365378e41aa2745d003b2383d02008d7b44). Upgrade the @astrojs/svelte dependency to 9.1.2 or later and rebuild so both server output and hydrated client bundles pick up the escaped rendering. For applications that cannot upgrade immediately, the advisory's workaround is to stop using request-controlled input as a slot name - either map the incoming value to a fixed allowlist of known slot names before passing it to the component, or avoid dynamic slot selection altogether; note that this only protects the specific call sites you change, so it is a stopgap rather than a complete fix. No other vendor-documented mitigations are provided.

Affected VersionsENISA

astro 5.7.3, < 9.1.2

Affected Packages

npm @astrojs/svelte fix: 9.1.2
euvd astro fix: 9.1.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Astro is a content-driven web framework, and @astrojs/svelte is the official renderer integration that lets Svelte components be used inside .astro pages. When slotted content is passed to a Svelte component, the renderer emits wrapper elements - <astro-static-slot> and <astro-slot> - carrying the slot name in a name attribute. Prior to the fix, both the server renderer (packages/integrations/svelte/src/server.ts) and the client-side hydration path (packages/integrations/svelte/src/client.svelte.ts) interpolated the slot key directly into that double-quoted attribute, so a slot name containing a double quote could terminate the attribute and inject active markup into the page (CWE-79, cross-site scripting). The patch introduces an escapeSlotName helper that replaces &, ", < and > with their HTML entities before the value is written into the attribute, in both the server and hydration code paths, and adds a regression fixture asserting that injected elements are absent and the name attribute round-trips as literal text. This is the @astrojs/svelte counterpart of GHSA-8hv8-536x-4wqp (CVE-2026-50146), which fixed the same unescaped-slot-name pattern in astro core. The CPE record maps the flaw to withastro:astro, though the vulnerable code actually lives in the separately versioned @astrojs/svelte npm package.

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

Remote crafted link (AV:N) with no attacker auth (PR:N) but victim click (UI:R); AC:H because the target app must use the uncommon request-controlled dynamic-slot pattern; reflected XSS crosses 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. From 5.7.3 until 9.1.2, the @astrojs/svelte renderer inserted a named slot into the quoted name attribute of an astro-slot wrapper without HTML escaping. Request-controlled slot names containing a quote could terminate the attribute and inject active HTML. Exploitation required a hydrated Svelte component using a client:* directive and dynamic rendering of the attacker-chosen slot; components that did not render that slot emitted only Astro's escaped fallback content. Both server rendering and client-side hydration used the unsafe slot name. This issue is fixed in version 9.1.2.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 5 npm packages depend on @astrojs/svelte (5 direct, 0 indirect)

Ecosystem-wide dependent count for version 5.7.3.

Threat Intelligence Overview

EPSS Score
0.4%
Top 67% exploitable
Prevalence
Medium
Astro is a popular framework, but only the @astrojs/svelte integration is affected
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.4%
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

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