Skip to content

fix(site): upgrade Astro to patch XSS and dependency advisories - #25

Merged
jamesconwaydev merged 1 commit into
mainfrom
fix-astro-vulns
Nov 6, 2026
Merged

jamesconwaydev merged 1 commit into
mainfrom
fix-astro-vulns

Conversation

@jamesconwaydev

Copy link
Copy Markdown
Collaborator

Upgrades Astro from 5.18.2 to 7.3.3 (pinned exactly), which clears every npm audit advisory: the define:vars XSS, plus the sharp/libvips, zod, zod-to-ts and esbuild findings that came in through Astro.

Why 7.3.3: it is the lowest release with 0 audit findings (7.3.2 still carries a View Transitions CSS injection advisory) and was published 2026-09-16, well past the 7-day cooldown.

Migration: read the v6 and v7 upgrade guides. Nothing in site/ needed changing. The only edit besides the version is engines.node, raised to >=22.12 because Astro 7 requires it (CI already runs Node 22 and 24).

Checked:

  • npm audit: 0 vulnerabilities
  • npm --prefix site test: 33 passing
  • npm --prefix site run build: passes
  • dist has no inline scripts or styles and no generator meta tag; build.inlineStylesheets stays 'never'
  • Built index looks the same as the reference screenshot (layout and styling)
  • wrangler still pinned at 4.157.0

Astro 5.18.2 -> 7.3.3, the oldest release that clears every advisory
and is past the 7-day cooldown. npm audit now reports 0
vulnerabilities, including the transitive sharp, zod and esbuild ones.

Astro 7 needs Node 22.12 or newer, so engines moves from 22.6 to match.
No source changes were needed: build output, CSP guarantees and the
dist tests are unchanged. Wrangler stays pinned at 4.157.0.
@jamesconwaydev
jamesconwaydev merged commit 2ac29d1 into main Nov 6, 2026
8 checks passed
@jamesconwaydev
jamesconwaydev deleted the fix-astro-vulns branch November 6, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant