astro
7.4.13 · 18 Nov 2026MIT12.5M / weekRepositoryHomepagenpmAtom feed
Upgrading astro From 4.16.19 to 5.0.0
1 release in betweenevery note read
- 39
- changes to make
- 0
- advisories fixed
- 19
- new
- 36
- fixes
Start here
Before you upgrade
Tick each one off as you go- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
Security
22 advisories still affect 5.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.5 clears them.
- 5.0.0
Updates the default value of
security.checkOrigintotrue, which enables Cross-Site Request Forgery (CSRF) protection by default for pages rendered on demand. - 5.0.0
Changes the generated URL query param from
_astroActionto_actionwhen submitting a form using Actions. This avoids leaking the framework name into the URL bar, which may be considered a security issue.
Release by release
- Security
Updates the default value of
security.checkOrigintotrue, which enables Cross-Site Request Forgery (CSRF) protection by default for pages rendered on demand. - Security
Changes the generated URL query param from
_astroActionto_actionwhen submitting a form using Actions. This avoids leaking the framework name into the URL bar, which may be considered a security issue. - Breaking
Unflag globalRoutePriority
- Breaking
- Security
12 other lines we could not sort, mostly version bumps
- 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.
- 5.0.0
Changes the default content config location from
src/content/config.*tosrc/content.config.*.
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.