astro
7.4.13 · 18 Nov 2026MIT12.5M / weekRepositoryHomepagenpmAtom feed
Upgrading astro From 5.18.2 to 6.0.0
1 release in betweenevery note read
- 52
- changes to make
- 0
- advisories fixed
- 34
- new
- 107
- fixes
Start here
Before you upgrade
Tick each one off as you go- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
Security
13 advisories still affect 6.0.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
Upgrading to 7.4.7 clears them.
- 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.
Release by release
- Security
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. - Security
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. - Breaking
Removes
entryPointsonastro:build:ssrhook (Integration API) - (v6 upgrade guidance) - Breaking
Removes session
testdriver - (v6 upgrade guidance)
- Security
3 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.