Skip to content

chore(deps): upgrade vitest to 4.1.11 and refresh dompurify - #105

Merged
anurag629 merged 2 commits into
developfrom
fix/security-deps
Oct 1, 2026
Merged

anurag629 merged 2 commits into
developfrom
fix/security-deps

Conversation

@anurag629

Copy link
Copy Markdown
Member

Fixes the last open security alerts on toolbelt:

  • vitest and @vitest/mocker path traversal (fixed in 4.1.11). This replaces chore(deps): bump @vitest/mocker and vitest #64, which jumped to vitest 5 and couldn't install because vitest 5 wants @types/node 22+ and we're on 20. 4.1.11 is the smallest version with the fix and still accepts ^20.
  • dompurify 3.4.11 to 3.4.16 (comes in through jspdf, fixed in 3.4.13). Lockfile only.

The undici alerts were fixed by #79.

The other lockfile changes are all inside vitest's own tree. No app code changes. Locally: 56 tests pass on vitest 4, lint has 0 errors, and the build succeeds.

Fixes the open security alerts for vitest/@vitest/mocker (path traversal,
fixed in 4.1.11) and dompurify (fixed in 3.4.13, pulled in by jspdf).
vitest 4.1.11 still accepts @types/node ^20, unlike vitest 5.
npm 11 dropped the optional @emnapi packages that npm 10 (Node 22, used
in CI) expects, so npm ci failed.
@anurag629
anurag629 merged commit 4667c3b into develop Oct 1, 2026
1 check passed
@anurag629
anurag629 deleted the fix/security-deps branch October 1, 2026 12:32
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