Skip to content

fix(deps): patch all known vulnerabilities and upgrade to latest - #335

Merged
matschik-usine[bot] merged 2 commits into
mainfrom
fix/dependency-vulnerabilities
Nov 27, 2026
Merged

matschik-usine[bot] merged 2 commits into
mainfrom
fix/dependency-vulnerabilities

Conversation

@matschik-usine

@matschik-usine matschik-usine Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Mathieu · project thread

What

Fixes the 23 known vulnerabilities reported by pnpm audit (7 high, 15 moderate, 1 low), then upgrades every other dependency to its latest version. After this PR, pnpm audit finds nothing. All the vulnerable packages were build, dev or deploy tooling: the published site is static and ships none of them.

Security fixes (first commit):

  • @sveltejs/kit 3.1.0 to 3.4.1 and @sveltejs/adapter-static 4.0.0 to 4.0.1: 6 SvelteKit advisories and 1 adapter advisory.
  • void 1.1.11 to 1.11.0: pulls patched hono, undici and zod (12 advisories).
  • pnpm-workspace.yaml: version floors for 3 transitive dependencies whose parents have no patched release: esbuild >= 0.25 (under @esbuild-kit/core-utils, via drizzle-kit), fflate >= 0.7.5 (under satori), minimatch >= 11.0.1 (under eslint and @eslint/config-array).
  • folder-hash removed: it calls minimatch.makeRe, which minimatch 11 dropped. Replaced by build/lib/hashPaths.ts (sha256 of file paths and contents), which computes the cache key for generated content, with 3 unit tests. The key format changes, so the first build regenerates content once.

Latest versions (second commit):

  • Vite+ 1.3.0 to 1.8.0, with its matching vite-plus-core 8.3.8001 and vitest 5.1.1.
  • void 1.12.0, Svelte 5.59.2, chokidar 5 to 6, and minor updates (Tailwind, Shiki, Playwright, knip, prettier, satori, runed and others).
  • Only exception: TypeScript stays on 6, because svelte-check 4.7.8 only accepts ^5 || ^6.

Checks

  • pnpm audit: no known vulnerabilities.
  • pnpm run build (with _redirects, sitemap.xml and 404.html present), pnpm check:ci and pnpm check:deps pass locally.
  • Unit tests, E2E and check:toolchain were not run locally (sandbox limits on file watching and .git/config); CI runs them.
  • Reviewed by a second model before merging.

Merge risk

Merge risk: medium

About 30 packages move, including Svelte 5.57 to 5.59 and runed 0.37 to 0.38, which ship in the site, and the deploy tool. The site is static, and a revert rolls it back (two-way door). The first deploy with the new void happens after merge and will be watched.

Upgrade @sveltejs/kit to 3.4.1, @sveltejs/adapter-static to 4.0.1 and
void to 1.11.0. Floor esbuild, fflate and minimatch through pnpm overrides.
Replace folder-hash, which breaks on minimatch 11, with a small hashPaths
helper for the content cache key.
Vite+ 1.8.0 with its matching vite-plus-core 8.3.8001 and vitest 5.1.1,
void 1.12.0, Svelte 5.59.2, chokidar 6 and the other minor updates.
TypeScript stays on 6: svelte-check does not support 7 yet.
@matschik-usine
matschik-usine Bot requested a review from matschik November 27, 2026 20:13
@matschik-usine
matschik-usine Bot merged commit a35227c into main Nov 27, 2026
4 checks passed
@matschik-usine
matschik-usine Bot deleted the fix/dependency-vulnerabilities branch November 27, 2026 20:30
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