SECURITY & CVE TRACK RECORD

Astro Security Advisories, CVEs & Patched Versions

Historical vulnerability disclosures, CVSS severity ratings, affected version ranges, and verified patch releases for Astro.

New vulnerabilities affecting Astro (2)
Total Tracked Advisories
31
30 distinct CVE numbers
Critical & High Severity
7
23% of all disclosures
Latest Security Fix
7.4.5
Tracked release notes
Security Posture Status
Active Patches
Deterministic OSV.dev telemetry
Tracked Vulnerability Timeline (31)
🛡️ CVE-2026-126361 GHSA-mh32-jxcr-mh9f Nov 13, 2026
LOW

Astro: XSS via attribute injection in dynamic tag names

## 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 ta...

Vulnerable Range: 0 -> 7.4.5
Fix Version: 7.4.5
Official Advisory Source ↗
🛡️ CVE-2026-126364 GHSA-r3h5-4585-7x3w Nov 13, 2026
MEDIUM

Astro: Image endpoint in @astrojs/node can read files from a case-variant sibling of the output directory on case-sensitive filesystems

## Summary The `/_image` endpoint used by the `@astrojs/node` adapter checks that a requested local image is inside the build output directory before reading it from disk. That check compared paths case-insensitively. On case-sensitive filesystems (such as Linux), a directory...

Vulnerable Range: 0 -> unfixed, 5.14.3 -> 7.4.7
Fix Version: 7.4.7
Official Advisory Source ↗
🛡️ CVE-2026-114128 GHSA-98hj-9722-w3j8 Oct 22, 2026
MEDIUM (CVSS 6.5)

Astro: Reflected/Stored XSS via unescaped <script>/<style> tag content in JSX/MDX rendering

## Summary Astro's JSX and MDX rendering pipeline treated string children of `<script>` and `<style>` elements as trusted HTML. When a dynamic value was passed through a JSX expression, such as `<script>{value}</script>`, an attacker-controlled value containing `</script>` or...

Vulnerable Range: 0 -> 7.3.2
Fix Version: 7.3.2
Official Advisory Source ↗
🛡️ CVE-2026-114127 GHSA-mpr7-6m5w-76rw Oct 22, 2026
LOW

Astro: Arbitrary CSS injection in Astro View Transitions

### Summary Astro's server-side View Transition CSS generator did not keep string animation properties within their generated CSS declarations. In an application that passes attacker-controlled data into an animation property such as `duration`, a value containing CSS delimit...

Vulnerable Range: 7.1.0 -> 7.3.3
Fix Version: 7.3.3
Official Advisory Source ↗
GHSA-26w7-cxv4-gfx2 Sep 08, 2026
CRITICAL (CVSS 9.8)

Astro: Remote code execution through AVIF image optimization

A vulnerability in `libheif`, used by the default Sharp image service in Astro, can lead to remote code execution when a malicious AVIF image is optimized. Projects are affected when an attacker can cause Astro to process an untrusted AVIF image. The fix was released in Astr...

Vulnerable Range: 0 -> 7.2.8
Fix Version: 7.2.8
Official Advisory Source ↗
🛡️ CVE-2026-84376 GHSA-376h-93r7-7g6f Sep 08, 2026
MEDIUM

Astro: Authorization bypass from missing path-segment boundary check when stripping the configured base

## Summary Astro stripped a configured `base` path from request pathnames using a string-prefix check that did not verify a path-segment boundary. With `base: "/app"`, a request to `/appX/admin` was treated as being under the base and resolved internally to the `/admin` route...

Vulnerable Range: 0 -> 7.2.4
Fix Version: 7.2.4
Official Advisory Source ↗
🛡️ CVE-2026-73423 GHSA-8mv7-9c27-98vc Jul 20, 2026
MEDIUM

Astro: composable `astro/hono` pipeline bypasses `security.checkOrigin` when `middleware()` is absent or misordered

## Summary In the composable `astro/hono` pipeline, the `security.checkOrigin` protection is only installed by the `middleware()` primitive. The `actions()` and `pages()` primitives each dispatch to user code independently, so a pipeline that mounts either primitive before (o...

Vulnerable Range: 7.0.0 -> 7.0.6
Fix Version: 7.0.6
Official Advisory Source ↗
🛡️ CVE-2026-59729 GHSA-f48w-9m4c-m7f5 Jul 20, 2026
MEDIUM

Astro: XSS via unescaped spread attribute names in renderHTMLElement (incomplete fix for CVE-2026-54298)

## Summary The fix for CVE-2026-54298 (GHSA-jrpj-wcv7-9fh9) added an `INVALID_ATTR_NAME_CHAR` guard to `addAttribute()` so that spread-prop attribute names containing `"' >/=` or whitespace are dropped. A second attribute-rendering path, `renderHTMLElement()` in `packages/ast...

Vulnerable Range: 0 -> 7.0.6
Fix Version: 7.0.6
Official Advisory Source ↗
🛡️ CVE-2026-59727 GHSA-7pw4-f3q4-r2p2 Jul 20, 2026
LOW

Astro: Cross-site scripting via unescaped transition:* directive values on hydrated islands

### Summary When a `transition:persist`, `transition:scope`, or `transition:persist-props` directive is applied to a client-hydrated (`client:*`) component, Astro copied the directive value onto the rendered `<astro-island>` element **without HTML-escaping it**. If a develope...

Vulnerable Range: 3.10.0 -> 7.0.4
Fix Version: 7.0.4
Official Advisory Source ↗
🛡️ CVE-2026-59731 GHSA-vj59-8hwv-xxmv Jul 20, 2026
HIGH (CVSS 8.2)

Astro: Authorization Bypass via Decode Iteration Limit and Rewrite Path Canonicalization Mismatch

# Astro 6.4.7 Authorization Bypass via Decode Iteration Limit and Rewrite Path Canonicalization Mismatch ## Summary Astro 6.4.7 appears to reintroduce a middleware authorization bypass pattern when a request path is encoded more deeply than the newly introduced iterative URL...

Vulnerable Range: 6.4.7 -> 6.4.8
Fix Version: 6.4.8
Official Advisory Source ↗
🛡️ CVE-2026-73422 GHSA-4g3v-8h47-v7g6 Jul 20, 2026
MEDIUM

Astro: Reflected XSS via unescaped View Transition animation properties

## Summary Astro's server-side View Transition CSS generator interpolates animation properties into an inline `<style>` element without escaping them for the CSS and HTML contexts. An attacker-controlled value passed to an animation property such as `duration` can contain a ...

Vulnerable Range: 2.9.0 -> 7.1.0
Fix Version: 7.1.0
Official Advisory Source ↗
🛡️ CVE-2026-54298 GHSA-jrpj-wcv7-9fh9 Jun 16, 2026
MEDIUM (CVSS 4.2)

Astro: XSS via Unescaped Attribute Names in Spread Props

## Summary The `spreadAttributes` function in Astro's server-side rendering pipeline iterates over object keys and passes them directly to `addAttribute`, which interpolates the key into the HTML output without escaping. When a developer uses the spread syntax `{...props}` on...

Vulnerable Range: 0 -> 6.4.6
Fix Version: 6.4.6
Official Advisory Source ↗
🛡️ CVE-2026-54299 GHSA-2pvr-wf23-7pc7 Jun 16, 2026
HIGH (CVSS 7.5)

Astro: Host header SSRF in prerendered error page fetch

## Summary Astro SSR apps with prerendered error pages (`/404` or `/500` using `export const prerender = true`) fetch those pages over HTTP at runtime when an error occurs. The URL for this fetch is derived from `request.url`, which in turn gets its origin from the incoming `...

Vulnerable Range: 0 -> 6.4.6
Fix Version: 6.4.6
Official Advisory Source ↗
🛡️ CVE-2026-50146 GHSA-8hv8-536x-4wqp Jun 16, 2026
HIGH (CVSS 7.1)

Astro: Reflected XSS via unescaped slot name

## Summary When a component uses a `client:*` directive, Astro inserts named slot content into a `data-astro-template` attribute without HTML escaping the slot name allowing an attacker to break out of the attribute context and inject arbitrary HTML, resulting in reflected XS...

Vulnerable Range: 0 -> 6.3.3
Fix Version: 6.3.3
Official Advisory Source ↗
🛡️ CVE-2026-45028 GHSA-xr5h-phrj-8vxv May 13, 2026
MEDIUM (CVSS 6.1)

Astro: Server island encrypted parameters vulnerable to cross-component replay

### Impact Astro versions prior to 6.1.10 used AES-GCM encryption to protect the confidentiality and integrity of server island props and slots parameters, but did not bind the ciphertext to its intended component or parameter type. An attacker could replay one component's en...

Vulnerable Range: 0 -> 6.1.10
Fix Version: 6.1.10
Official Advisory Source ↗
🛡️ CVE-2026-41067 GHSA-j687-52p2-xcff Apr 21, 2026
MEDIUM (CVSS 6.1)

Astro: XSS in define:vars via incomplete </script> tag sanitization

## Summary The `defineScriptVars` function in Astro's server-side rendering pipeline uses a case-sensitive regex `/<\/script>/g` to sanitize values injected into inline `<script>` tags via the `define:vars` directive. HTML parsers close `<script>` elements case-insensitively ...

Vulnerable Range: 0 -> 6.1.6
Fix Version: 6.1.6
Official Advisory Source ↗
🛡️ CVE-2026-33769 GHSA-g735-7g2w-hh3f Mar 26, 2026
MEDIUM (CVSS 5.3)

Astro: Remote allowlist bypass via unanchored matchPathname wildcard

## Summary This issue concerns Astro's `remotePatterns` path enforcement for remote URLs used by server-side fetchers such as the image optimization endpoint. The path matching logic for `/*` wildcards is unanchored, so a pathname that contains the allowed prefix later in the ...

Vulnerable Range: 2.10.10 -> 5.18.1
Fix Version: 5.18.1
Official Advisory Source ↗
🛡️ CVE-2025-66202 GHSA-whqg-ppgf-wp8c Dec 08, 2025
MEDIUM (CVSS 6.5)

Astro has an Authentication Bypass via Double URL Encoding, a bypass for CVE-2025-64765

# Authentication Bypass via Double URL Encoding in Astro ## Bypass for CVE-2025-64765 / GHSA-ggxq-hp9w-j794 --- ### Summary A **double URL encoding bypass** allows any unauthenticated attacker to bypass path-based authentication checks in Astro middleware, granting unauthor...

Vulnerable Range: 0 -> 5.15.8
Fix Version: 5.15.8
Official Advisory Source ↗
🛡️ CVE-2025-65019 GHSA-fvmw-cj7j-j39q Nov 19, 2025
MEDIUM (CVSS 5.4)

Astro Cloudflare adapter has Stored Cross-site Scripting vulnerability in /_image endpoint

**Summary** A Cross-Site Scripting (XSS) vulnerability exists in Astro when using the **@astrojs/cloudflare** adapter with `output: 'server'`. The built-in image optimization endpoint (`/_image`) uses `isRemoteAllowed()` from Astro’s internal helpers, which **unconditionally...

Vulnerable Range: 0 -> 5.15.9
Fix Version: 5.15.9
Official Advisory Source ↗
🛡️ CVE-2025-64765 GHSA-ggxq-hp9w-j794 Nov 19, 2025
MEDIUM

Astro's middleware authentication checks based on url.pathname can be bypassed via url encoded values

A mismatch exists between how Astro normalizes request paths for routing/rendering and how the application’s middleware reads the path for validation checks. Astro internally applies `decodeURI()` to determine which route to render, while the middleware uses `context.url.pathn...

Vulnerable Range: 0 -> 5.15.8
Fix Version: 5.15.8
Official Advisory Source ↗
🛡️ CVE-2025-64764 GHSA-wrwg-2hg8-v723 Nov 19, 2025
HIGH (CVSS 7.1)

Astro vulnerable to reflected XSS via the server islands feature

## Summary After some research it appears that it is possible to obtain a reflected XSS when the server islands feature is used in the targeted application, **regardless of what was intended by the component template(s)**. ## Details Server islands run in their own isolated c...

Vulnerable Range: 0 -> 5.15.8
Fix Version: 5.15.8
Official Advisory Source ↗
🛡️ CVE-2025-64757 GHSA-x3h8-62x9-952g Nov 19, 2025
LOW (CVSS 3.5)

Astro Development Server has Arbitrary Local File Read

### Summary A vulnerability has been identified in the Astro framework's development server that allows arbitrary local file read access through the image optimization endpoint. The vulnerability affects Astro development environments and allows remote attackers to read any im...

Vulnerable Range: 0 -> 5.14.3
Fix Version: 5.14.3
Official Advisory Source ↗
🛡️ CVE-2025-64525 GHSA-hr2q-hp5q-x767 Nov 13, 2025
MEDIUM (CVSS 6.5)

Astro vulnerable to URL manipulation via headers, leading to middleware and CVE-2025-61925 bypass

## Summary In impacted versions of Astro using [on-demand rendering](https://docs.astro.build/en/guides/on-demand-rendering/), request headers `x-forwarded-proto` and `x-forwarded-port` are insecurely used, without sanitization, to build the URL. This has several consequences...

Vulnerable Range: 2.16.0 -> 5.15.5
Fix Version: 5.15.5
Official Advisory Source ↗
🛡️ CVE-2025-64745 GHSA-w2vj-39qv-7vh7 Nov 13, 2025
LOW (CVSS 2.7)

Astro development server error page is vulnerable to reflected Cross-site Scripting

## Summary A Reflected Cross-Site Scripting (XSS) vulnerability exists in Astro's development server error pages when the `trailingSlash` configuration option is used. An attacker can inject arbitrary JavaScript code that executes in the victim's browser context by crafting a...

Vulnerable Range: 5.2.0 -> 5.15.6
Fix Version: 5.15.6
Official Advisory Source ↗
🛡️ CVE-2025-59837 GHSA-qcpr-679q-rhm2 Oct 28, 2025
HIGH (CVSS 7.2)

Astro's bypass of image proxy domain validation leads to SSRF and potential XSS

### Summary This is a patch bypass of CVE-2025-58179 in commit [9ecf359](https://github.com/withastro/astro/commit/9ecf3598e2b29dd74614328fde3047ea90e67252). The fix blocks `http://`, `https://` and `//`, but can be bypassed using backslashes (`\`) - the endpoint still issues...

Vulnerable Range: 5.13.4 -> 5.13.10
Fix Version: 5.13.10
Official Advisory Source ↗
🛡️ CVE-2025-61925 GHSA-5ff5-9fcw-vg88 Oct 10, 2025
MEDIUM (CVSS 6.5)

Astro's `X-Forwarded-Host` is reflected without validation

### Summary When running Astro in on-demand rendering mode using a adapter such as the node adapter it is possible to maliciously send an `X-Forwarded-Host` header that is reflected when using the recommended `Astro.url` property as there is no validation that the value is saf...

Vulnerable Range: 0 -> 5.14.3
Fix Version: 5.14.3
Official Advisory Source ↗
🛡️ CVE-2025-55303 GHSA-xf8x-j4p2-f749 Aug 19, 2025
MEDIUM (CVSS 6.1)

Astro allows unauthorized third-party images in _image endpoint

### Summary In affected versions of `astro`, the image optimization endpoint in projects deployed with on-demand rendering allows images from unauthorized third-party domains to be served. ### Details On-demand rendered sites built with Astro include an `/_image` endpoint w...

Vulnerable Range: 5.0.0-alpha.0 -> 5.13.2, 0 -> 9.1.1, 0 -> 4.16.19
Fix Version: 5.13.2
Official Advisory Source ↗
🛡️ CVE-2025-54793 GHSA-cq8c-xv66-36gw Aug 07, 2025
MEDIUM

Astros's duplicate trailing slash feature leads to an open redirection security issue

## Summary There is an Open Redirection vulnerability in the trailing slash redirection logic when handling paths with double slashes. This allows an attacker to redirect users to arbitrary external domains by crafting URLs such as `https://mydomain.com//malicious-site.com/`....

Vulnerable Range: 5.2.0 -> 5.12.8
Fix Version: 5.12.8
Official Advisory Source ↗
🛡️ CVE-2024-56159 GHSA-49w6-73cw-chjr Dec 19, 2024
HIGH

Astro's server source code is exposed to the public if sourcemaps are enabled

### Summary A bug in the build process allows any unauthenticated user to read parts of the server source code. ### Details During build, along with client assets such as css and font files, the sourcemap files **for the server code** are moved to a publicly-accessible folder...

Vulnerable Range: 5.0.0-alpha.0 -> 5.0.8, 0 -> 4.16.18
Fix Version: 5.0.8
Official Advisory Source ↗
🛡️ CVE-2024-56140 GHSA-c4pw-33h3-35xw Dec 18, 2024
MEDIUM (CVSS 5.9)

Atro CSRF Middleware Bypass (security.checkOrigin)

### Summary A bug in Astro’s CSRF-protection middleware allows requests to bypass CSRF checks. ### Details When the `security.checkOrigin` configuration option is set to `true`, Astro middleware will perform a CSRF check. (Source code: https://github.com/withastro/astro/blo...

Vulnerable Range: 0 -> 4.16.17
Fix Version: 4.16.17
Official Advisory Source ↗
🛡️ CVE-2024-47885 GHSA-m85w-3h95-hcf9 Oct 14, 2024
MEDIUM (CVSS 5.9)

DOM Clobbering Gadget found in astro's client-side router that leads to XSS

### Summary A DOM Clobbering gadget has been discoverd in Astro's client-side router. It can lead to cross-site scripting (XSS) in websites enables Astro's client-side routing and has *stored* attacker-controlled scriptless HTML elements (i.e., `iframe` tags with unsanitized ...

Vulnerable Range: 3.0.0 -> 4.16.1
Fix Version: 4.16.1
Official Advisory Source ↗