astro
7.4.13 · 18 Nov 2026MIT12.5M / weekRepositoryHomepagenpmAtom feed
Upgrading astro From 6.3.6 to 6.4.8
11 releases in betweennotes for 10
Counted from 10 of 11 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Deprecated6.4.0
Security
8 advisories still affect 6.4.8
- Astro: Remote code execution through AVIF image optimizationcritical · GHSA-26w7-cxv4-gfx2
- Astro: Authorization bypass from missing path-segment boundary check when stripping the configured basemoderate · GHSA-376h-93r7-7g6f
- Astro: Reflected XSS via unescaped View Transition animation propertiesmoderate · GHSA-4g3v-8h47-v7g6
Upgrading to 7.4.7 clears them.
Fixes 2 advisories affecting 6.3.6
- Astro: Host header SSRF in prerendered error page fetchhigh · GHSA-2pvr-wf23-7pc7
- Astro: XSS via Unescaped Attribute Names in Spread Propsmoderate · GHSA-jrpj-wcv7-9fh9
- 6.4.7
This preserves the security fix for CVE-2025-66202 (middleware authorization bypass via double encoding) because middleware now always sees the fully decoded path, making bypass impossible.
Release by release
- Fixed
Harden the limits on the number of decoding on the URL.
- Fixed
- Security
This preserves the security fix for CVE-2025-66202 (middleware authorization bypass via double encoding) because middleware now always sees the fully decoded path, making bypass impossible.
- New
Adds a JSON schema to the Wrangler configuration file generated when running
astro add cloudflare - Fixed
Fixes
getRelativeLocaleUrl,getAbsoluteLocaleUrl, andgetAbsoluteLocaleUrlListto strip trailing slashes whentrailingSlash: 'never'is configured - Fixed
Fixes double URL-encoded paths returning 400 Bad Request on on-demand routes
- Security
- Fixed
Fixes an issue where renaming an image file while the dev server is running triggers a build error. Now Astro correctly hot-reloads the image without crashing.
- Fixed
Hardens
addAttributeto drop attribute names containing characters that are invalid per the HTML spec (",',>,/,=, whitespace) - Fixed
Validates the request origin against
allowedDomainsbefore fetching prerendered error pages. WhenallowedDomainsis configured and the Host header matches, the original origin is used. Otherwise, the fetch falls back tolocalhost.
- Fixed
- Fixed
Fixes the
experimental.loggerdestination not being used for the "Server listening on..." startup message. The logger is now resolved before the server starts listening, andadapterLoggerre-creates itself when the underlying logger changes so the startup message uses the correct destination. - Fixed
Fixes
Astro.request.urlnot reflecting validatedX-Forwarded-Proto/X-Forwarded-Hostheaders whensecurity.allowedDomainsis configured. Previously, onlyAstro.urlwas updated with the forwarded origin whileAstro.request.urlretained the socket-derived URL, causing the two to diverge behind TLS-terminating proxies. - Fixed
Reverts a change to
isNoderuntime detection that caused a significant build time regression for Cloudflare adapter users with large prerendered sites
- Fixed
- Fixed
Prevents
App.match()from throwing on request paths that contain an invalid percent-sequence. - Fixed
Fixes an issue where editing a client-side component (e.g. with
client:idle,client:load, etc.) caused an unnecessary full program reload of the backend during development. - Fixed
Fixes a bug where static file endpoints using
getStaticPathswith.htmlin dynamic param values (e.g.{ path: 'file.html' }) would fail with aNoMatchingStaticPathFounderror during build. The.htmlsuffix is no longer incorrectly stripped from endpoint route pathnames. - Fixed
Fixes dynamic routes returning 500 "TypeError: Missing parameter" when using domain-based i18n routing in SSR.
- Fixed
- Fixed
Bumps
devaluedependency to v5.8.1 - Fixed
Fix a false positive in the dev toolbar accessibility audit for anchors with text inside closed
<details>elements. - Fixed
Fixes a bug where
experimental.advancedRoutingwithastro/honohandlers threwTypeError: Cannot read properties of undefined (reading 'route')for unmatched routes instead of rendering the custom 404 page. - Fixed
Fixes a false "does not call the middleware() handler" warning when using
astro()in a customsrc/app.tsand the first request is a redirect route. - Fixed
Fixes
redirectToDefaultLocalenot working after the Advanced Routing refactoring. - Fixed
Improves optimized fallbacks generation when using the Fonts API by using better metrics for bold variants
- Fixed
- Fixed
Fixes a
plugins is not iterablecrash when using a pre-6.0@astrojs/mdxalongside integrations (e.g. Starlight) that setmarkdown.remarkPlugins,markdown.rehypePlugins, ormarkdown.remarkRehype. - Fixed
Fixes an issue where on-demand (SSR) dynamic routes would return 404 when a prerendered dynamic route with the same URL pattern was sorted first alphabetically. In production builds with
@astrojs/nodeadapter, if[a_prebuild].astro(prerender=true) came before[b_ssr].astroalphabetically, requests to URLs not in the prerendered route's static paths would 404 instead of falling through to the SSR route. The fix adds fallthrough logic so that when a prerendered dynamic route matches but can't serve the request, Astro tries subsequent matching routes.
- Fixed
6.4.1no release note
2 internal lines (docs, tests, tooling) left out.
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.