Skip to content

fix(deps): update Vitest mocker security - #492

Open
alvaroloes wants to merge 1 commit into
feature/safe-budget-admissionfrom
fix/vitest-mocker-security
Open

alvaroloes wants to merge 1 commit into
feature/safe-budget-admissionfrom
fix/vitest-mocker-security

Conversation

@alvaroloes

Copy link
Copy Markdown
Member

Closes #489.

Problem

Vitest 4.1.11 pulls @vitest/mocker versions affected by the manual mock code-injection and Windows backslash redirect-traversal advisories. This also makes the repository's all-severity dependency audit fail.

Change

  • update every Facility workspace that declares Vitest to 4.1.12;
  • refresh the lockfile to the patched Vitest packages;
  • add regressions that execute hostile manual-mock data and exercise allowed and denied redirects through a real loopback Vite server.

Validation

  • node --test --test-concurrency=1 scripts/vitest-security.test.mjs — 2 passed;
  • pnpm audit --audit-level low — passes with only the repository's three existing reviewed exceptions.

The full repository and Docker checks run in CI on this exact branch.

@alvaroloes
alvaroloes marked this pull request as ready for review October 22, 2026 17:30

This branch has not been deployed

No deployments
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