astro
7.4.13 · 18 Nov 2026MIT12.5M / weekRepositoryHomepagenpmAtom feed
Upgrading astro From 4.6.2 to 4.16.19
76 releases in betweenevery note read
Reading releases, release notes and advisories…
Start here
Before you upgrade
Tick each one off as you go- Breaking4.16.6
- Breaking4.16.0
- Breaking4.15.12
- Breaking4.15.0
- Breaking4.13.3
- Breaking4.13.1
- Breaking4.12.3
- Breaking4.12.3
- Breaking4.12.3
- Breaking4.12.3
Security
20 advisories still affect 4.16.19
- 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
Upgrading to 7.4.5 clears them.
Fixes 4 advisories affecting 4.6.2
- Astro's server source code is exposed to the public if sourcemaps are enabledhigh · GHSA-49w6-73cw-chjr
- Atro CSRF Middleware Bypass (security.checkOrigin)moderate · GHSA-c4pw-33h3-35xw
- DOM Clobbering Gadget found in astro's client-side router that leads to XSSmoderate · GHSA-m85w-3h95-hcf9
- Astro allows unauthorized third-party images in _image endpointmoderate · GHSA-xf8x-j4p2-f749
- 4.15.12
Updates the
cookiedependency to avoid the CVE 2024-47764 vulnerability. - 4.13.4
This is not intended to allow a server island to be trusted to skip authentication, or to protect against any other vulnerabilities other than secret leakage.
- 4.9.0
The CSRF protection feature that was introduced behind a flag in v4.6.0 is no longer experimental and is available for general use.
Release by release
- Fixed
Fixes an issue where remote paths weren't correctly computed when generating assets
- Fixed
- Fixed
Remove all assets created from the server build
- Fixed
Clean server sourcemaps from static output
- Fixed
- Fixed
Fixes an issue where the
checkOriginfeature wasn't correctly checking thecontent-typeheader
- Fixed
- Fixed
Fix JPEG image size determination
- Fixed
Fixes an issue where with
i18nenabled, Astro couldn't render the404.astrocomponent for non-existent routes.
- Fixed
- Fixed
Fixes a regression where Astro was trying to access
Request.headers
- Fixed
- Fixed
Removes the default throw behavior in
astro:env - Fixed
Fixes an issue where a server island hydration script might fail case the island ID misses from the DOM.
- Fixed
Fixes a case where the Content Layer
glob()loader would not update when renaming or deleting an entry - Fixed
Fix cached image redownloading if it is the first asset
- Fixed
Fixes an issue where the SSR build was emitting the
dist/server/entry.mjsfile with an incorrect import at the top of the file/ - Fixed
Fixes an issue where
Astro.currentLocalewas not correctly returning the locale for 404 and 500 pages.
- Fixed
- Fixed
Fixes a potential null access in the clientside router
- Fixed
Fixes an issue where scripts were not correctly injected during the build. The issue was triggered when there were injected routes with the same
entrypointand differentpattern
- Fixed
- Fixed
Fixes an issue where the dev server returns a 404 status code when a user middleware returns a valid
Response.
- Fixed
2 other lines we could not sort, mostly version bumps
- 4.15.0
The Astro Actions API introduced behind a flag in v4.8.0 is no longer experimental and is available for general use.
- 4.13.3
Removes "Confirm post resubmission?" dialog when refreshing a result.
10 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.