astro
7.4.13 · 18 Nov 2026MIT12.5M / weekRepositoryHomepagenpmAtom feed
Upgrading astro From 6.4.3 to 6.4.8
5 releases in betweenevery note read
- 0
- changes to make
- 2
- advisories fixed
- 1
- new
- 25
- fixes
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.4.3
- 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
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.