Skip to content

fix: upgrade @vitest/browser to 4.1.6, 5.0.0-beta.3 (CVE-2026-47428)#2093

Open
anupamme wants to merge 2 commits into
moeru-ai:mainfrom
anupamme:fix-repo-airi-cve-2026-47428-vitest-browser
Open

fix: upgrade @vitest/browser to 4.1.6, 5.0.0-beta.3 (CVE-2026-47428)#2093
anupamme wants to merge 2 commits into
moeru-ai:mainfrom
anupamme:fix-repo-airi-cve-2026-47428-vitest-browser

Conversation

@anupamme

Copy link
Copy Markdown

Summary

Upgrade @vitest/browser from 4.1.4 to 4.1.6, 5.0.0-beta.3 to fix CVE-2026-47428.

Vulnerability

Field Value
ID CVE-2026-47428
Severity CRITICAL
Scanner trivy
Rule CVE-2026-47428
File pnpm-lock.yaml
Assessment Likely exploitable

Description: vitest: Vitest: Arbitrary code execution via crafted browser-runner URL

Evidence

Scanner confirmation: trivy rule CVE-2026-47428 flagged this pattern.

Production code: This file is in the production codebase, not test-only code.

Threat Model Context

This is a Node.js library - vulnerabilities affect downstream consumers who use this package.

Changes

  • pnpm-workspace.yaml
  • package.json
  • pnpm-lock.yaml

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • LLM code review passed

This change addresses a pattern flagged by static analysis. The code path handles user-influenced input and the fix reduces the attack surface against both manual and automated exploitation.


Automated security fix by OrbisAI Security

Automated dependency upgrade by OrbisAI Security

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4fc3e26dea

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread package.json Outdated
"*": "moeru-lint --fix"
},
"dependencies": {
"@vitest/browser": "catalog:"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Upgrade the actual Vitest browser dependency path

Adding this as a separate root dependency does not remove the vulnerable install path that the security fix is targeting: the lockfile still contains @vitest/browser-playwright@4.1.4 depending on @vitest/browser@4.1.4 (pnpm-lock.yaml around the browser-playwright snapshot), while catalogs.vitest still pins the Vitest family to ^4.1.4. In contexts that scan pnpm-lock.yaml for CVE-2026-47428, @vitest/browser@4.1.4 will still be reported, so this should upgrade the coordinated Vitest/browser-playwright catalog entries instead of adding an unrelated root dependency.

Useful? React with 👍 / 👎.

@github-actions

Copy link
Copy Markdown
Contributor

⏳ Approval required for deploying to Cloudflare Workers (Preview) for stage-web.

Name Link
🔭 Waiting for approval For maintainers, approve here

Hey, maintainers, kindly take some time to review and approve this deployment when you are available. Thank you! 🙏

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 342652b2dd

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread pnpm-lock.yaml
dependencies:
'@vitest/browser':
specifier: 'catalog:'
version: 4.1.6(bufferutil@4.1.0)(utf-8-validate@5.0.10)(vite@8.0.8(@types/node@24.12.2)(esbuild@0.27.2)(jiti@2.6.1)(less@4.6.4)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.3))(vitest@4.1.4)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Align the Vitest peer versions

This installs @vitest/browser@4.1.6 while resolving its vitest peer to 4.1.4; the lockfile package entry for @vitest/browser@4.1.6 declares an exact vitest: 4.1.6 peer, so browser-mode tests now run an unsupported mixed Vitest stack. Please upgrade the Vitest catalog entries together (including vitest, @vitest/browser-playwright, and coverage) rather than pinning only the browser package.

Useful? React with 👍 / 👎.

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