Packages

astro

7.4.13 · 18 Nov 2026MIT12.5M / weekRepositoryHomepagenpmAtom feed

Upgrading astro From 6.3.8 to 6.4.8

9 releases in betweennotes for 8

Other targets from 6.3.8Clears its 10 advisories7.4.7Latest7.4.13
  1. 6.3.8yours
  2. 7 releases
  3. 6.4.7security
  4. 6.4.8target
1+
change to make
2
advisories fixed
3+
new
39+
fixes

Counted from 8 of 9 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Deprecated6.4.0

Security

Fixes 2 advisories affecting 6.3.8

  • 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.4.7

Release by release

  1. 6.4.8

    17 Jun 20261 fix
    • Fixed

      Harden the limits on the number of decoding on the URL.

  2. 6.4.7

    Security fix15 Jun 20261 new · 10 fixes
    • Security

      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.

    • New

      Adds a JSON schema to the Wrangler configuration file generated when running astro add cloudflare

    • Fixed

      Fixes getRelativeLocaleUrl, getAbsoluteLocaleUrl, and getAbsoluteLocaleUrlList to strip trailing slashes when trailingSlash: 'never' is configured

    • Fixed

      Fixes double URL-encoded paths returning 400 Bad Request on on-demand routes

  3. 6.4.6

    10 Jun 20263 fixes
    • Fixed

      Fixes an issue where renaming an image file while the dev server is running triggers a build error. Now Astro correctly hot-reloads the image without crashing.

    • Fixed

      Hardens addAttribute to drop attribute names containing characters that are invalid per the HTML spec (", ', >, /, =, whitespace)

    • Fixed

      Validates the request origin against allowedDomains before fetching prerendered error pages. When allowedDomains is configured and the Host header matches, the original origin is used. Otherwise, the fetch falls back to localhost.

  4. 6.4.5

    9 Jun 20263 fixes
    • Fixed

      Fixes the experimental.logger destination not being used for the "Server listening on..." startup message. The logger is now resolved before the server starts listening, and adapterLogger re-creates itself when the underlying logger changes so the startup message uses the correct destination.

    • Fixed

      Fixes Astro.request.url not reflecting validated X-Forwarded-Proto/X-Forwarded-Host headers when security.allowedDomains is configured. Previously, only Astro.url was updated with the forwarded origin while Astro.request.url retained the socket-derived URL, causing the two to diverge behind TLS-terminating proxies.

    • Fixed

      Reverts a change to isNode runtime detection that caused a significant build time regression for Cloudflare adapter users with large prerendered sites

  5. 6.4.4

    3 Jun 20268 fixes
    • Fixed

      Prevents App.match() from throwing on request paths that contain an invalid percent-sequence.

    • Fixed

      Fixes an issue where editing a client-side component (e.g. with client:idle, client:load, etc.) caused an unnecessary full program reload of the backend during development.

    • Fixed

      Fixes a bug where static file endpoints using getStaticPaths with .html in dynamic param values (e.g. { path: 'file.html' }) would fail with a NoMatchingStaticPathFound error during build. The .html suffix is no longer incorrectly stripped from endpoint route pathnames.

    • Fixed

      Fixes dynamic routes returning 500 "TypeError: Missing parameter" when using domain-based i18n routing in SSR.

  6. 6.4.3

    2 Jun 20266 fixes
    • Fixed

      Bumps devalue dependency to v5.8.1

    • Fixed

      Fix a false positive in the dev toolbar accessibility audit for anchors with text inside closed <details> elements.

    • Fixed

      Fixes a bug where experimental.advancedRouting with astro/hono handlers threw TypeError: Cannot read properties of undefined (reading 'route') for unmatched routes instead of rendering the custom 404 page.

    • Fixed

      Fixes a false "does not call the middleware() handler" warning when using astro() in a custom src/app.ts and the first request is a redirect route.

    • Fixed

      Fixes redirectToDefaultLocale not working after the Advanced Routing refactoring.

    • Fixed

      Improves optimized fallbacks generation when using the Fonts API by using better metrics for bold variants

  7. 6.4.2

    28 May 20262 fixes
    • Fixed

      Fixes a plugins is not iterable crash when using a pre-6.0 @astrojs/mdx alongside integrations (e.g. Starlight) that set markdown.remarkPlugins, markdown.rehypePlugins, or markdown.remarkRehype.

    • Fixed

      Fixes an issue where on-demand (SSR) dynamic routes would return 404 when a prerendered dynamic route with the same URL pattern was sorted first alphabetically. In production builds with @astrojs/node adapter, if [a_prebuild].astro (prerender=true) came before [b_ssr].astro alphabetically, requests to URLs not in the prerendered route's static paths would 404 instead of falling through to the SSR route. The fix adds fallthrough logic so that when a prerendered dynamic route matches but can't serve the request, Astro tries subsequent matching routes.

  8. 6.4.1no release note

2 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.