You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clear the 18 allowlisted npm advisories (dompurify→browser-mode tests, dev-tooling major bumps) #1744
The audit gate (#1728) fixed all production/framework npm advisories via overrides, but 18 advisories remain allowlisted in scripts/audit-npm.ts — all dev/build/test-only or upstream-pinned. This issue tracks clearing them.
dompurify is pinned to 3.4.7, the highest version that still sanitizes correctly under Happy-DOM (our unit-test DOM). >3.4.7 fails-open in Happy-DOM, so sanitizeSvg's unit tests silently lose coverage. 3.4.7 already fixes the cross-realm / IN_PLACE / prototype-pollution advisories; the residuals need >3.4.7. It's defense-in-depth over mermaid SVG (mermaid runs securityLevel:'strict', htmlLabels:false).
Move sanitizeSvg tests to browser mode (real Chromium, where DOMPurify works like prod), then bump dompurify to latest and drop the 4 ignores.
dev/build tooling major bumps (14 advisories)
Not shipped to users; major bumps deferred to avoid breaking the test/build setup:
vitest/@vitest/browser 2.x → 3.x (test runner)
happy-dom 18 → 20 (note: 20 alone does NOT fix the dompurify-under-Happy-DOM issue above)
vite (+ launch-editor) and esbuild (build tooling)
brace-expansion via eslint (dev linting)
cookie (low)
Pinned to ^0.6.0 by @sveltejs/kit itself; clears when SvelteKit advances its cookie dep past 0.7.
Context
Surfaced by the audit gate (#1719 / #1728). Each ignore has a justification in scripts/audit-npm.ts.
Activity
malibio commentedon Jul 31, 2026
Frontend baseline: 171 test files passed, 4113 tests passed.
Clear 17 of 18 allowlisted npm advisories (dompurify browser-mode tes…