astro
7.4.13 · 18 Nov 2026MIT12.5M / weekRepositoryHomepagenpmAtom feed
Upgrading astro From 6.0.7 to 7.4.7
78 releases in betweennotes for 77
Counted from 77 of 78 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 13 advisories affecting 6.0.7
- 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: Reflected XSS via unescaped View Transition animation propertiesmoderate · GHSA-4g3v-8h47-v7g6
- 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
- Astro: XSS via unescaped spread attribute names in renderHTMLElement (incomplete fix for CVE-2026-54298)moderate · GHSA-f48w-9m4c-m7f5
- 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
- Astro: XSS via attribute injection in dynamic tag nameslow · GHSA-mh32-jxcr-mh9f
- Astro: Image endpoint in @astrojs/node can read files from a case-variant sibling of the output directory on case-sensitive filesystemsmoderate · GHSA-r3h5-4585-7x3w
- Astro: Server island encrypted parameters vulnerable to cross-component replaylow · GHSA-xr5h-phrj-8vxv
- 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 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
- Fixed
Fixes
astro dev statusand other background server commands deleting the lock file of a running dev or preview server when run from a sandbox or as another user that is not permitted to signal its process - Fixed
Fixes
import.meta.envvalues containing$sequences (such as$$or$&) being corrupted inastro buildwhen server code reads theimport.meta.envobject directly, for example withconst { MY_SECRET } = import.meta.env - Fixed
Fixes request paths with invalid percent-encoding (e.g.
/%C0%AFor a bare%) being logged as anInvalid URL encodingerror and routed with the undecoded path. These requests now return a400, the same as a path that is encoded too many times. - Fixed
Makes rendering of string tag names stricter and consistent across
.astrodynamic tags, JSX, and MDX. Only the leading part of the string that is a valid element name is rendered, so characters such as/or=can no longer change the generated markup. A string that does not start with a valid element name (for example'!--'or'') now throws an error instead of producing invalid HTML.
- Fixed
- New
Allows
astro addto configure tagged versions of official adapters
- New
- Fixed
CSP no longer hashes empty children on external stylesheets and scripts, which was inserting the SHA-256 of the empty string into
script-srcandstyle-src. - Fixed
Fixes
<Image>and<Picture>emitting duplicatesrcsetcandidates whendensitiescontains equivalent values such as1and'1x' - Fixed
Fix unhandled
AbortErrorrejection whenClientRouterskips a pending view transition - Fixed
Fixes an uncaught
TypeErrorin the browser when aserver:deferisland request fails due to a network error. The fallback content is kept, as it is for non-200 responses.
- Fixed
- Breaking
Bumps the minimum supported Node.js version to 22.23.4, which includes the fixes from the October 2026 Node.js security releases
- New
Speeds up content sync with
experimental.collectionStorage: "chunked"by computing each character's UTF-8 width from its code point instead of encoding every character throughTextEncoder. On a store of ~44k entries this cuts the chunking step from about 60 seconds to well under a second, with byte-identical output. - Fixed
Fixes
astro devwith@astrojs/cloudflarefailing withCalling `require` for "node-fetch"when a server dependency such ascross-fetchrequiresnode-fetch - Fixed
Fixes
astro devtreating a stale lock file containing a Linux thread ID as a running Astro server. A successful process lookup with no matching PID now marks the lock as stale, preventingastro dev stopandastro dev --forcefrom killing the unrelated process that owns the thread.
- Breaking
- Fixed
Preserves the last modified date of cached optimized images and incrementally restored build output when copying them into the build output on all platforms
- Fixed
Fixes a typo in the error message shown when a font
cssVariableis invalid - Fixed
Fixes a bug where projects whose path contains an apostrophe (
') failed to load sessions, middleware, a cache provider, or asrc/fetch.tshandler - Fixed
Fixes a
TSCONFIG_ERRORduringastro buildwhen a parent directory contains atsconfig.jsonthat cannot be resolved, such as one extendingastro/tsconfigs/strictwithout installed dependencies
- Fixed
- Breaking
Increases the minimum Node.js version to 22.22.0
- Deprecated
Returning a plain array from
getStaticPaths()or a plainResponsefromrender()still works, but is deprecated: images used on those pages are not generated. - New
Adds a new
--timingsflag toastro buildto help you find what slows down your builds - New
Adds a new optional
getFontProperties()callback to font providers
- Breaking
42 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.