astro
7.4.13 · 18 Nov 2026MIT12.5M / weekRepositoryHomepagenpmAtom feed
7.4.13 is the newest release of 7.x.
In short
14 fixed3 internal
Security
2 advisories affect 7.4.3; 7.4.7 fixes them
- 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
- LowAstro: XSS via attribute injection in dynamic tag namesGHSA-mh32-jxcr-mh9f · 13 Nov 2026Fixed in 7.4.5
Release note
Patch Changes
CSP no longer hashes empty children on external stylesheets and scripts, which was inserting the SHA-256 of the empty string into
script-srcandstyle-src.Fixes
<Image>and<Picture>emitting duplicatesrcsetcandidates whendensitiescontains equivalent values such as1and'1x'Fix unhandled
AbortErrorrejection whenClientRouterskips a pending view transitionFixes an uncaught
TypeErrorin the browser when aserver:deferisland request fails due to a network error. The fallback content is kept, as it is for non-200 responses.Fixes a
DEP0190deprecation warning printed byastro infoon Node.js 24 and laterFixes
memoryCache()serving an empty body for cached pages that return an empty404or500response. These responses now render the404or500error page on every request.Fixes
transition:namestyles missing in dev when the element is inside a component that is only rendered through another component with no styles or scriptsFixes the
astroCLI refusing to run on StackBlitz by allowing Node.js>=22.22.0inside WebContainers, whose Node.js version users cannot changeFixes
<ClientRouter />animating scroll restoration on back/forward navigation whenscroll-behavior: smoothis set. Saved scroll positions are now restored instantly, matching the browser's native behavior.Fixes a
DataCloneErrorcrash when building pages that render SVG imports with<Image />orgetImage()whileexperimental.parallelPrerenderis enabled.Fixes
<Picture>emitting a duplicate1xcandidate in<source>srcsetwhendensitiesincludes1Fixes type errors reported in Astro's built-in
<Image />,<Picture />,<Code />,<Debug />and<ClientRouter />components when type-checking a project that extendsastro/tsconfigs/strictestwithtscand@astrojs/ts-content-mapperFixes scoped styles of unused Astro components being included in the build when those components are re-exported from a barrel file
Fixes CSP hashes added with
Astro.cspfrom components rendered inside<body>being left out of the CSP<meta>element in static builds, including MDX pages
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.