Skip to content

Clear the 18 allowlisted npm advisories (dompurify→browser-mode tests, dev-tooling major bumps) #1744

Closed

Description

@mstomar125

Summary

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 (pinned 3.4.7) — 4 residual low/moderate advisories

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

  1. malibio commented on Jul 31, 2026

    @malibio
    Collaborator

    Frontend baseline: 171 test files passed, 4113 tests passed.

  2. self-assigned this
    on Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions