astro
7.4.13 · 18 Nov 2026MIT12.5M / weekRepositoryHomepagenpmAtom feed
7.4.13 is the newest release of 7.x.
In short
1 new21 fixed1 internal
Security
5 advisories affect 7.2.5; 7.4.7 fixes them
- CriticalAstro: Remote code execution through AVIF image optimizationGHSA-26w7-cxv4-gfx2 · 8 Sep 2026Fixed in 7.2.8
- ModerateAstro: Image endpoint in @astrojs/node can read files from a case-variant sibling of the output directory on case-sensitive filesystemsGHSA-r3h5-4585-7x3w · 13 Nov 2026Fixed in 7.4.7
- ModerateAstro: Reflected/Stored XSS via unescaped <script>/<style> tag content in JSX/MDX renderingGHSA-98hj-9722-w3j8 · 22 Oct 2026Fixed in 7.3.2
- LowAstro: XSS via attribute injection in dynamic tag namesGHSA-mh32-jxcr-mh9f · 13 Nov 2026Fixed in 7.4.5
- LowAstro: Arbitrary CSS injection in Astro View TransitionsGHSA-mpr7-6m5w-76rw · 22 Oct 2026Fixed in 7.3.3
Release note
Patch Changes
Fixes a bug where
experimental_getFontFileURL()rejected valid font URLs when using the Cloudflare adapterSkips no-op pathname writes when normalizing SSR request URLs
Updates deprecation messages target from Astro 7 to 8
Fixes session ID validation to reject non-UUID cookie values before using them as storage keys
Fixes
--mode,--site,--base,--out-dir,--verbose,--silent, and--openflags being silently dropped when usingastro dev --backgroundorastro preview --backgroundFixes
content-modules.mjsnot removing entries for deleted or renamed content files, which could cause Vite to attempt to resolve non-existent modulesAs part of this fix,
#moduleImportsis now fully rebuilt fromdeferredRenderentries before every write, so a module import added only through the publicaddModuleImport()API without a correspondingdeferredRenderentry in the store will no longer be preserved across writes.Fixes
Astro.preferredLocaleandAstro.preferredLocaleListignoringAccept-Languagequality values when they are absent or0. An entry without an explicitq=now correctly counts as quality1.0(per RFC 7231) and an entry withq=0is treated as not acceptable, so the highest-quality locale is selected regardless of header order.Fixes build errors showing wrong file location, missing line:col, and misleading hints when a plugin error (e.g. from MDX) is wrapped by Vite's build error
Fixes a type error when passing an image from a content collection
image()schema to a component or<Image />. The schema returned byimage()was missing theapngformat, so it no longer matched the type of an imported image.Fixes an issue where Astro CSP support didn't correctly handle cases
"unsafe-inline"resource. Now when"unsafe-inline", Astro won't emit hashes for the directive specified.Fixes a regression in the content collections that could cause images to not be resolved
Fixes
memoryCache()storing responses that set cookies throughAstro.cookiesorAstro.sessionFixes
server:defercrashing the dev server with "undefined is not a function" when a deferred component imports fromastro:i18nFixes a regression where
transition:persiststopped working for<audio>and<video>elements.Adds support for importing
.apngfiles as image metadata for use with standard<img>elements. Astro's image components reject APNG files to avoid removing their animationFixes i18n
fallbackType: "rewrite"returning 500 instead of 404 when the fallback locale also has no matching static path for a prerendered dynamic routeBumps the Astro compiler to the latest version. Changelog.
Improves the performance of the Astro CLI in local by enabling Node's module compilation cache.
Fixes incremental builds serving cached HTML that references stale CSS filenames after a stylesheet-only edit
Fixes the dev server refusing to start in Docker containers after a restart due to PID reuse in the lock file check
Fixes a build failure when defining
vite.environments.ssrin the Astro config. User-provided environment config forssr,prerender, orclientis now properly deep-merged with Astro's internal environment settings instead of silently breaking the server entry naming.Fixes the
glob()content loader failing to load files with colons in their names (e.g.,Guide: Architecture.md)
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.