Live threats

All CVEs / vitest-dev

CVE-2026-53633vitest-dev vitest

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
—
Auth required
No
Published
Jul 14, 2026
Updated
Oct 24, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-749, CWE-862
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

Vitest is a testing framework powered by Vite. From 3.0.0 until 3.2.5, 4.1.8, and 5.0.0-beta.4, Vitest Browser Mode exposed a cdp() API that forwarded raw Chrome DevTools Protocol methods without being gated by allowWrite or allowExec, allowing a remote client with exposed browser API metadata to use CDP Page.setDownloadBehavior and Runtime.evaluate to overwrite vite.config.ts and execute attacker-controlled Node.js code. This issue is fixed in versions 3.2.5, 4.1.8, and 5.0.0-beta.

Original NVD text.

What to do

  1. Apply the vendor's security update for vitest.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm @vitest/browser ≥ 5.0.0-beta.0 < 5.0.0-beta.4 5.0.0-beta.4 npm install @vitest/browser@5.0.0-beta.4
npm @vitest/browser ≥ 4.0.0 < 4.1.8 4.1.8 npm install @vitest/browser@4.1.8
npm @vitest/browser ≥ 3.0.0 < 3.2.5 3.2.5 npm install @vitest/browser@3.2.5
npm vite-plus < 0.1.24 0.1.24 npm install vite-plus@0.1.24

Per OSV / GitHub Advisories (GHSA-g8mr-85jm-7xhm). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.