Skip to content

Upgrade to Astro 7 and patch Dependabot security alerts - #16

Merged
nlaverdure merged 1 commit into
mainfrom
deps/security-updates
Oct 11, 2026
Merged

nlaverdure merged 1 commit into
mainfrom
deps/security-updates

Conversation

@nlaverdure

@nlaverdure nlaverdure commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

Resolves 64 of 66 open Dependabot alerts, including critical GHSA-26w7-cxv4-gfx2 (Astro AVIF image-optimization RCE).

Changes

  • astro 6.4.6 → 7.3.8. None of the five Astro advisories has a fix in 6.x; the only fixed versions are 7.x.
  • @astrojs/rss 4.0.19, astro-icon 1.2.0 (pulls in @iconify/tools 5, which removes extract-zip and tar from the dependency tree), autoprefixer 10.6.1, plus npm audit fix.
  • Astro 7 uses Sätteri as its default Markdown processor. This PR adds @astrojs/markdown-remark and passes rehypeRebaseLinks to unified({...}), so publications keep rendering through the same remark/rehype pipeline.

Verification (against a baseline build of main)

  • 188 pages built in both builds.
  • Visible text, link targets, and image alt text are identical on all 186 HTML pages (compared with tags stripped).
  • No new broken local src/href/srcset references.
  • Remaining HTML differences: minifier output, more attribute escaping, empty srcset="" removed, and astro-icon now puts viewBox on <svg>.
  • The build no longer outputs the original JPG/PNG copies next to the WebP versions. Nothing referenced them (555 → 431 files).

Not fixed here

braces (#62) and postcss-selector-parser (#64) come in through Tailwind 3. Both are dismissed as "vulnerable code not actually used": they only process this repo's own CSS and globs at build time, and braces has no fixed version.

🤖 Generated with Claude Code

Upgrades astro 6.4.6 -> 7.3.8, which is required because none of the
five Astro advisories (including critical GHSA-26w7-cxv4-gfx2, AVIF
image-optimization RCE) were backported to 6.x. Also bumps
@astrojs/rss 4.0.19, astro-icon 1.2.0 (@iconify/tools 5, which drops
extract-zip and tar), and autoprefixer 10.6.1, then runs npm audit fix.

Astro 7 defaults to the Satteri Markdown processor. Adds
@astrojs/markdown-remark and passes rehypeRebaseLinks to unified() so
publications keep rendering through the same remark/rehype pipeline.

Verified against a baseline build of main:
- 188 pages built in both
- visible text, link targets, and img alt text identical on all 186
  HTML pages
- no new broken local refs (same 2 pre-existing broken links)
- original JPG/PNG copies no longer emitted (nothing referenced them)

Remaining: braces and postcss-selector-parser via tailwindcss 3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nlaverdure
nlaverdure merged commit 527b81f into main Oct 11, 2026
2 checks passed
@nlaverdure
nlaverdure deleted the deps/security-updates branch October 11, 2026 14:04
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