astro
7.4.13 · 18 Nov 2026MIT12.5M / weekRepositoryHomepagenpmAtom feed
Upgrading astro From 5.15.0 to 5.18.2
33 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking5.17.1
Security
13 advisories still affect 5.18.2
- 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.7 clears them.
Fixes 7 advisories affecting 5.15.0
- 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 development server error page is vulnerable to reflected Cross-site Scriptinglow · GHSA-w2vj-39qv-7vh7
- 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
- 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
Populates styles in the SSR manifest for prerendered routes. Previously, prerendered routes had
styles:in the manifest, making it impossible for workers or middleware to discover which CSS files a prerendered page uses.
- Fixed
5.18.1nothing new or fixed in the note
- New
Adds a new
security.actionBodySizeLimitoption to configure the maximum size of Astro Actions request bodies. - Fixed
Fix X-Forwarded-Proto validation when allowedDomains includes both protocol and hostname fields. The protocol check no longer fails due to hostname mismatch against the hardcoded test URL.
- New
- New
Add a default body size limit for server actions to prevent oversized requests from exhausting memory.
- Fixed
Respect image allowlists when inferring remote image sizes and reject remote redirects.
- New
- Fixed
Improves Host header handling for SSR deployments behind proxies
- Fixed
- Breaking
BREAKING CHANGE to the experimental Fonts API only
- Breaking
- New
Adds support for returning a Promise from the
parser()option of thefile()loader - New
Adds a new, optional
kernelconfiguration option to select a resize algorithm in the Sharp image service - New
Adds a new
partitionedoption when setting a cookie to allow creating partitioned cookies. - New
Adds a new
retainBodyoption to theglob()loader to allow reducing the size of the data store. - New
Adds a new
backgroundproperty to the<Image />component. - New
Adds optional
placementconfig option for the dev toolbar.
- New
- Fixed
Ensures server island requests carry an encrypted component export identifier so they do not accidentally resolve to the wrong component.
- Fixed
Remove await from getActionResult example
- Fixed
Fixes an issue where certain unauthorized links could be rendered as clickable in the error overlay
- Fixed
5 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.