fix(deps): pin esbuild 0.28.1 and cookie >=0.7.0 to clear npm audit gate (#817) #819
Reference in New Issue
Block a user
Delete Branch "feat/issue-817-npm-audit-esbuild-cookie"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #817.
What & why
The CI step "Security audit (no dev deps)" (
npm audit --audit-level=high --omit=dev) was failing repo-wide on every PR — newly-published advisories landed against the already-pinnedesbuild@0.27.7(the two high findings GHSA-gv7w-rqvm-qjhr / GHSA-g7r4-m6w7-qqqr, pulled in transitively viavite→@sveltejs/vite-plugin-svelte). The fix for both only exists atesbuild@0.28.1, and novite@7.xaccepts it (they all pinesbuild ^0.27.0) — so a scoped vite bump is a verified dead-end.This is Option 1 from the issue: an
overridesblock, not a Vite 8 migration.esbuildpinned exact (no caret) so a future0.29.xcan't silently float in and re-break vite — Renovate proposes bumps explicitly.cookie >=0.7.0clears the low GHSA-pxg6-pf52-xh8x reaching the prod tree via@sentry/sveltekit(resolves to1.1.1); drop-in, done in the same pass.package.json+ the regeneratedpackage-lock.jsonare committed together in one atomic commit.patch-package/postinstalland the@vitest/browser-playwright@4.1.6exact pin (ADR-012) were left untouched.Known-risk validation (the override forces esbuild outside vite@7.3.3's declared
^0.27.0range)This was validated, not assumed —
esbuild@0.28.1 overriddenconfirmed vianpm ls esbuild; build, lint and a dev-server boot all succeed.Verification checklist
Out of scope
Prevention/early-warning (nightly audit gate + Renovate vulnerability surfacing) is tracked in its own follow-up issue, per the decision on #817.
🤖 Generated with Claude Code