astro
7.4.13 · 18 Nov 2026MIT12.5M / weekRepositoryHomepagenpmAtom feed
6.4.8 is the newest release of 6.x.
In short
4 new8 fixed
Security
10 advisories affect 6.3.4; 7.4.7 fixes them
- CriticalAstro: Remote code execution through AVIF image optimizationGHSA-26w7-cxv4-gfx2 · 8 Sep 2026Fixed in 7.2.8
- HighAstro: Host header SSRF in prerendered error page fetchGHSA-2pvr-wf23-7pc7 · 16 Jun 2026Fixed in 6.4.6
- ModerateAstro: Image endpoint in @astrojs/node can read files from a case-variant sibling of the output directory on case-sensitive filesystemsGHSA-r3h5-4585-7x3w · 13 Nov 2026Fixed in 7.4.7
- ModerateAstro: Reflected/Stored XSS via unescaped <script>/<style> tag content in JSX/MDX renderingGHSA-98hj-9722-w3j8 · 22 Oct 2026Fixed in 7.3.2
- ModerateAstro: Authorization bypass from missing path-segment boundary check when stripping the configured baseGHSA-376h-93r7-7g6f · 8 Sep 2026Fixed in 7.2.4
5 more
- ModerateAstro: XSS via unescaped spread attribute names in renderHTMLElement (incomplete fix for CVE-2026-54298)GHSA-f48w-9m4c-m7f5 · 20 Jul 2026Fixed in 7.0.6
- ModerateAstro: Reflected XSS via unescaped View Transition animation propertiesGHSA-4g3v-8h47-v7g6 · 20 Jul 2026Fixed in 7.1.0
- ModerateAstro: XSS via Unescaped Attribute Names in Spread PropsGHSA-jrpj-wcv7-9fh9 · 16 Jun 2026Fixed in 6.4.6
- LowAstro: XSS via attribute injection in dynamic tag namesGHSA-mh32-jxcr-mh9f · 13 Nov 2026Fixed in 7.4.5
- LowAstro: Cross-site scripting via unescaped transition:* directive values on hydrated islandsGHSA-7pw4-f3q4-r2p2 · 20 Jul 2026Fixed in 7.0.4
Release note
Patch Changes
Adds
fetchFileoption toexperimental.advancedRoutingto customize or disable the entrypoint fileexport default defineConfig({ experimental: { advancedRouting: { fetchFile: 'fetch.ts', }, }, });Fixes Hono
cache()middleware to follow the standard wrapper patternAdds
App.Providersinterface for typing custom context providers onAstroandctxdeclare namespace App { interface Providers { oauth: import('./lib/oauth').OAuthSession; } }Adds
FetchState.responseproperty, set automatically afterpages()ormiddleware()completesconst response = await middleware(state, (s) => pages(s)); console.log(state.response === response); // true
Adds
Fetchabletype export for typing the advanced routing entrypointimport type { Fetchable } from 'astro'; export default { async fetch(request) { return new Response('ok'); }, } satisfies Fetchable;Suppresses
[WARN] Vite warning: unused imports from "@astrojs/internal-helpers/remote"during prerender builds. The package is now bundled alongsideastroin the prerender environment, matching how it is handled in the SSR environment.Fixes styles from Markdoc/MDX custom components not being extracted to
<head>in the dev server when using the Cloudflare adapter withprerenderEnvironment: 'node'and rendering content through a wrapper component.Fixes Astro action requests failing in
astro devwhen using the Cloudflare adapter withprerenderEnvironment: 'node'alongside a prerendered catch-all route such as[...page].astro.Actions and other SSR POST endpoints now continue to work in dev instead of returning an HTTP 500 error.
Fix
MapandSetinstances saved in a content collection being broken when retrieving entries.Fixes
entry.datatype inference when a live collection is configured without a schema.Updates
typescriptto v6. No changes are needed from users.Fixes an issue where SVG images with
width="0"orheight="0"incorrectly threw aNoImageMetadataerror instead of being treated as valid dimensions.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.