Skip to content

fix(deps): bump vitest to 4.1.8 — clear critical otelCarrier advisory - #1823

Merged
yannickmonney merged 1 commit into
mainfrom
fix/bump-vitest-cve
Jun 2, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/bump-vitest-cve

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor

What

GHSA-2h32-95rg-cppp — Vitest browser mode serves an unsanitized otelCarrier query parameter as inline script — is a CRITICAL advisory published today, patched in @vitest/browser 4.1.6. The tree was on 4.1.4, so bun audit --prod --audit-level=critical now flags it and the bun-audit gate in security.yml fails on every branch and on main.

This bumps the vitest toolchain to 4.1.8 (latest 4.1.x) across the workspace:

  • root: vitest, @vitest/browser, @vitest/browser-playwright, @vitest/coverage-v8
  • packages/ui: vitest
  • services/platform: @vitest/browser, @vitest/browser-playwright

All dev dependencies; patch-level within 4.1.x.

Verification

  • bun audit --prod --audit-level=critical → exits clean (0 critical).
  • @tale/platform test suite: 71,491 passing; format / lint / typecheck green.

Why a standalone PR

The advisory breaks the audit gate repo-wide, so the fix belongs on main. Once merged, the in-flight security PRs (#1819, #1820, #1821, #1822) just need main merged in for their bun-audit check to go green — #1821's current failure is this advisory, not its own changes.

Summary by CodeRabbit

  • Chores
    • Updated development dependencies for the testing framework across all project packages. Vitest and associated browser testing tools were synchronized to version 4.1.8 throughout the repository. These updates ensure consistency in the development environment and testing infrastructure across all project modules.

GHSA-2h32-95rg-cppp (Vitest browser mode serves an unsanitized otelCarrier
query parameter as inline script) is patched in @vitest/browser 4.1.6; the
tree was on 4.1.4. `bun audit --prod` surfaces it as CRITICAL, tripping the
security.yml bun-audit gate on every branch (and main). Bump vitest /
@vitest/browser / @vitest/browser-playwright / @vitest/coverage-v8 to 4.1.8
across the workspace.

`bun audit --prod --audit-level=critical` now exits clean; full test suite
passes.
@coderabbitai

coderabbitai Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: b2853ba8-7405-4ea3-8a55-621043b298cb

📥 Commits

Reviewing files that changed from the base of the PR and between 9272064 and a21b72c.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • package.json
  • packages/ui/package.json
  • services/platform/package.json

📝 Walkthrough

Walkthrough

This pull request updates the vitest testing ecosystem packages across the monorepo from version 4.1.4 to 4.1.8. The root package.json is bumped for @vitest/browser, @vitest/browser-playwright, @vitest/coverage-v8, and vitest. The packages/ui/package.json updates vitest, and services/platform/package.json updates @vitest/browser and @vitest/browser-playwright.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description provides detailed context about the critical advisory, verification results, and rationale, but the pre-merge checklist items are not ticked or marked N/A as required by the template. Complete the pre-merge checklist by ticking boxes or marking items as N/A with brief reasons for each requirement.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically summarizes the main change: bumping vitest to 4.1.8 to address a critical security advisory, which aligns with the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/bump-vitest-cve

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@yannickmonney
yannickmonney merged commit 29963ce into main Jun 2, 2026
28 of 30 checks passed
@yannickmonney
yannickmonney deleted the fix/bump-vitest-cve branch June 2, 2026 11:39
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