astro
7.4.13 · 18 Nov 2026MIT12.5M / weekRepositoryHomepagenpmAtom feed
Upgrading astro From 4.8.1 to 7.4.13
299 releases in betweennotes for 298
Reading releases, release notes and advisories…
Counted from 298 of 299 release notes. Advisories are counted from the advisory database, in full.
Start here
Before you upgrade
Tick each one off as you go- Breaking7.4.2
- Breaking7.4.0
- Breaking7.2.8
- Breaking7.0.0
- Breaking7.0.0
- Breaking7.0.0
- Breaking7.0.0
- Breaking7.0.0
- Breaking7.0.0
- Breaking7.0.0
Security
Fixes 24 advisories affecting 4.8.1
- Astro: Remote code execution through AVIF image optimizationcritical · GHSA-26w7-cxv4-gfx2
- Astro: Host header SSRF in prerendered error page fetchhigh · GHSA-2pvr-wf23-7pc7
- Astro: Authorization bypass from missing path-segment boundary check when stripping the configured basemoderate · GHSA-376h-93r7-7g6f
- Astro's server source code is exposed to the public if sourcemaps are enabledhigh · GHSA-49w6-73cw-chjr
- Astro: Reflected XSS via unescaped View Transition animation propertiesmoderate · GHSA-4g3v-8h47-v7g6
- Astro's `X-Forwarded-Host` is reflected without validationmoderate · GHSA-5ff5-9fcw-vg88
- Astro: Cross-site scripting via unescaped transition:* directive values on hydrated islandslow · GHSA-7pw4-f3q4-r2p2
- Astro: Reflected XSS via unescaped slot namehigh · GHSA-8hv8-536x-4wqp
- Astro: Reflected/Stored XSS via unescaped <script>/<style> tag content in JSX/MDX renderingmoderate · GHSA-98hj-9722-w3j8
- Atro CSRF Middleware Bypass (security.checkOrigin)moderate · GHSA-c4pw-33h3-35xw
- Astro: XSS via unescaped spread attribute names in renderHTMLElement (incomplete fix for CVE-2026-54298)moderate · GHSA-f48w-9m4c-m7f5
- Astro Cloudflare adapter has Stored Cross-site Scripting vulnerability in /_image endpointmoderate · GHSA-fvmw-cj7j-j39q
- Astro: Remote allowlist bypass via unanchored matchPathname wildcardlow · GHSA-g735-7g2w-hh3f
- Astro's middleware authentication checks based on url.pathname can be bypassed via url encoded valuesmoderate · GHSA-ggxq-hp9w-j794
- Astro vulnerable to URL manipulation via headers, leading to middleware and CVE-2025-61925 bypassmoderate · GHSA-hr2q-hp5q-x767
- Astro: XSS in define:vars via incomplete </script> tag sanitizationmoderate · GHSA-j687-52p2-xcff
- Astro: XSS via Unescaped Attribute Names in Spread Propsmoderate · GHSA-jrpj-wcv7-9fh9
- DOM Clobbering Gadget found in astro's client-side router that leads to XSSmoderate · GHSA-m85w-3h95-hcf9
- Astro: XSS via attribute injection in dynamic tag nameslow · GHSA-mh32-jxcr-mh9f
- Astro has an Authentication Bypass via Double URL Encoding, a bypass for CVE-2025-64765moderate · GHSA-whqg-ppgf-wp8c
- Astro vulnerable to reflected XSS via the server islands featurehigh · GHSA-wrwg-2hg8-v723
- Astro Development Server has Arbitrary Local File Readlow · GHSA-x3h8-62x9-952g
- Astro allows unauthorized third-party images in _image endpointmoderate · GHSA-xf8x-j4p2-f749
- Astro: Server island encrypted parameters vulnerable to cross-component replaylow · GHSA-xr5h-phrj-8vxv
- 7.4.11
A forwarded protocol is only applied when an entry allows it for the host in use.
- 7.4.11
A forwarded port is only applied when the entry for that host lists it.
- 7.4.11
A forwarded host without a forwarded protocol is validated with the protocol of the server.
- 7.4.11
An entry with
port: '443'(or'80'forhttp) now matches a host that doesn't include a port. - 7.3.6
Improves CSRF protection by taking modern browsers headers into account
- 7.3.3
Updates
svgoto4.0.2to resolve a security advisory - 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.
- 6.3.3
Fixes a reflected XSS vulnerability where slot names on hydrated components were not HTML-escaped in SSR output
- 6.1.0
Fixes
checkOriginCSRF protection inastro devbehind a TLS-terminating reverse proxy. The dev server now readsX-Forwarded-Proto(gated onsecurity.allowedDomains, matching production behaviour) so the constructed request origin matches thehttps://origin the browser sends. Also ensuressecurity.allowedDomainsandsecurity.checkOriginare respected in dev. - 6.1.0
Updates the dependency
svgoto the latest, to fix a security issue.
Release by release
- Fixed
Fixes the dev toolbar's
a11y-missing-contentaudit reporting anchors and headings that are hidden withvisibility: hiddenor are inside anaria-hidden="true"subtree - Fixed
Fixes server bundles including every renderable content collection entry when no server-rendered route calls
render()fromastro:content - Fixed
Fixes
i18n.fallbackfailing withi18nNoLocaleFoundInPathwhen the fallback target is a locale defined with a custompath - Fixed
Fixes
<Font preload>emitting no preload links when a requested weight range such as"400 700"sits inside a variable font file's range such as"400 900"
- Fixed
- Fixed
Fixes a typo in the error message shown when a font
cssVariableis invalid - Fixed
Reduces memory usage during
astro buildby releasing content collection entries from memory once the content layer sync is complete. - Fixed
Unpins
@astrojs/*dependencies to allow versions matching the^range to be installed
- Fixed
- Security
A forwarded protocol is only applied when an entry allows it for the host in use.
- Security
A forwarded port is only applied when the entry for that host lists it.
- Security
A forwarded host without a forwarded protocol is validated with the protocol of the server.
- Security
An entry with
port: '443'(or'80'forhttp) now matches a host that doesn't include a port.
- Security
- Fixed
Fixes the dev toolbar's audit freezing an image's CSS animations in Safari, by reading the image's size from the request that loaded it instead of fetching it again
- Fixed
Improves startup time of
astrocommands by loading SVGO only whensvgoOptimizer()optimizes an SVG, instead of wheneverastro/configis imported - Fixed
Fixes duplicate CSS loading for hydrated islands that share modules or are imported through a path alias. The client build no longer emits and preloads stylesheets that are already linked on the page by the server build.
- Fixed
- Fixed
Fixes static builds skipping or failing on pages whose
getStaticPaths()params contain characters like%or\, and warns when a prerendered page is skipped because it returned an empty error response - Fixed
Fixes bundled scripts and hydrated islands being blocked when
security.csp.scriptDirective.strictDynamicis enabled. Astro now adds the hash of every bundled script toscript-srcand renders an import map with theirintegrityin the<head>. - Fixed
Fixes bundling of a
<script src>that uses a root-relative path to a project file outsidesrc/, such as/lib/analytics.ts. The error asking foris:inlineis now shown only when the path points to a file inpublic/. - Fixed
Fixes errors thrown after a page has started streaming bypassing the configured
logger. They are now reported once through it, as oneerrorrecord, in both production andastro dev
- Fixed
- Fixed
Updates CLI argument parsing
- Fixed
- Fixed
Fixes the image endpoint treating directories whose names differ only by letter case as being inside the build output directory on case-sensitive filesystems
- Fixed
- Fixed
Avoids attributing client-only components or scripts to unrelated pages importing
astro:i18nby bounding top-level page graph traversal at virtual page entries - Fixed
Fixes an extra page reload on the first page load after starting
astro devwithout an existing.astrodirectory - Fixed
Fixes
astro checkexiting with code 0 when@astrojs/checkortypescriptis not installed. The command now exits with code 1 so CI fails instead of silently skipping type checking. - Fixed
Preserves the last-modified date of cached font files and unchanged public files when copying them into the build output. Public-file timestamp preservation respects the resolved public-directory configuration, follows source symlinks, and avoids backdating files overwritten by build plugins.
- Fixed
15 other lines we could not sort, mostly version bumps
- 5.10.0
The responsive images feature introduced behind a flag in v5.0.0 is no longer experimental and is available for general use.
- 5.0.0
vfile.data.__astroHeadings->vfile.data.astro.headings - 5.0.0
vfile.data.imagePaths->vfile.data.astro.imagePaths - 5.0.0
AstroRenderer.clientEntrpoint - 5.0.0
AstroRenderer.serverEntrypoint - 5.0.0
ViewTransitions component renamed to ClientRouter
- 5.0.0
The value of the different properties on
supportedAstroFeaturesfor adapters can now be objects, with asupportandmessageproperties. The content of themessageproperty will be shown in the Astro CLI when the adapter is not compatible with the feature, allowing one to give a better informational message to the user. - 5.0.0
astro addno longer automatically setsoutput: 'server'. Since the default value of output now allows for server-rendered pages, it no longer makes sense to default to full server builds when you add an adapter - 5.0.0
Server Islands introduced behind an experimental flag in v4.12.0 is no longer experimental and is available for general use.
- 5.0.0
Changes the default behavior for Astro Action form requests to a standard POST submission.
98 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.