astro
7.4.13 · 18 Nov 2026MIT12.5M / weekRepositoryHomepagenpmAtom feed
Upgrading astro From 4.6.0 to 7.4.5
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
1 advisory still affects 7.4.5
- 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
Upgrading to 7.4.7 clears it.
Fixes 24 advisories affecting 4.6.0
- 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.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. - 6.0.0
Fixes CSRF origin check mismatch by passing the actual server listening port to
createRequest, ensuring the constructed URL origin includes the correct port (e.g.,http://localhost:4321instead ofhttp://localhost). Also restrictsX-Forwarded-Prototo only be trusted whenallowedDomainsis configured. - 6.0.0
Fixes an issue where the
addcommand could accept any arbitrary value, leading the possible command injections. Nowaddand--addaccepts values that are only acceptable npmjs.org names. - 5.15.8
This prevents potential security issues where middleware checks might be bypassed through URL encoding.
- 5.15.5
Improves
X-Forwardedheader validation to prevent cache poisoning and header injection attacks. Now properly validatesX-Forwarded-Proto,X-Forwarded-Host, andX-Forwarded-Portheaders against configuredallowedDomainspatterns, rejecting malformed or suspicious values. This is especially important when running behind a reverse proxy or load balancer.
Release by release
- 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
- Fixed
Fixes
Astro.cachebeingundefinedwhen a custom 404 or 500 page is rendered by the error handler, for example after a request to an API route with an HTTP method the route doesn't export - Fixed
Fixes
astro addremoving existingallowBuildsapprovals frompnpm-workspace.yamlwith pnpm v11.0–v11.22 - Fixed
Refactors internal bundling and code transforms to use Vite's Oxc-based
transformWithOxcand Rolldown instead of esbuild. These packages no longer depend on esbuild directly. - Fixed
Fixes the
glob()loader not reloading changed files in dev when the pattern starts with an extglob such as!(drafts)/**/*.md
- Fixed
- Fixed
Fixes a build error when a Markdown content collection entry loaded with
glob({ deferRender: true })has alayoutfrontmatter property.layoutis now ignored for content collection entries, as documented. - Fixed
Fixes
astro add cloudflarefailing to install dependencies with pnpm v11+ by approving theworkerdbuild script, and shows the package manager's error output whenastro addfails to install dependencies - Fixed
Fixes an issue where AVIF images were served as
image/heifinstead ofimage/avifin the dev server. - Fixed
Fixes the
cache()handler fromastro/honoandastro/fetchthrowing aTypeErrorwhen a cache provider is configured. It now registers the cache provider before rendering, soAstro.cacheis available to downstream handlers likepages(). - Fixed
Fixes
security.checkOriginrejecting cross-origin requests with non-form content types such asapplication/json. As documented, the check only applies to unsafe requests that have nocontent-typeheader or one ofapplication/x-www-form-urlencoded,multipart/form-data, ortext/plain.
- 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.
85 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.