{"id":"CVE-2026-53633","published":"2026-07-14T19:35:42Z","modified":"2026-07-29T18:26:18Z","title":"Vitest: Exposed Browser Mode API Can Proxy CDP and Overwrite Config Files, Leading to RCE","vendor":"vitest-dev","product":"vitest","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00896,"percentile":0.60415,"provenance":"source"},"cwes":[{"id":"CWE-749","name":"Exposed Dangerous Method or Function"},{"id":"CWE-862","name":"Missing Authorization"}],"references":[{"url":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-g8mr-85jm-7xhm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vitest-dev/vitest/pull/10444","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/pull/10450","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/pull/10456","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/commit/385a1aefd4c2bfa5e7d58bf7c6834c929969f2c7","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/commit/63e3b2eee4d58da56786a6333f517b9b492528c7","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/commit/e4067b3b150005fd42cf75f994300119245806b9","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v3.2.5","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v4.1.8","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v5.0.0-beta.4","tags":["x_refsource_MISC"]}],"priority":{"score":18.9,"factors":[{"name":"EPSS percentile","points":12.08},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"vitest-dev","affectedVersions":[{"vendor":"vitest-dev","product":"vitest","versions":[">= 3.0.0, < 3.2.5",">= 4.0.0, < 4.1.8",">= 5.0.0-beta.0, < 5.0.0-beta.4"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-07-16T03:55:26.103276Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@vitest/browser","vulnerableRanges":[">=5.0.0-beta.0, <5.0.0-beta.4",">=4.0.0, <4.1.8",">=3.0.0, <3.2.5"],"patched":["5.0.0-beta.4","4.1.8","3.2.5"],"from":["GHSA-g8mr-85jm-7xhm"],"provenance":"source"},{"ecosystem":"npm","package":"vite-plus","vulnerableRanges":["<0.1.24"],"patched":["0.1.24"],"from":["GHSA-g8mr-85jm-7xhm"],"provenance":"source"}],"summary":{"text":"Vitest, the Vite-powered testing framework, has a flaw in its Browser Mode API, where a cdp() endpoint forwards raw Chrome DevTools Protocol methods without the allowWrite or allowExec restrictions that should gate them. A remote client that can reach the exposed browser API can use CDP methods such as Page.setDownloadBehavior and Runtime.evaluate to overwrite vite.config.ts and run arbitrary Node.js code, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:35Z"},"euvd":{"id":"EUVD-2026-44403","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vitest-dev-vitest-cve-2025-24963","parents":[{"from":"CVE-2026-47428","to":"CVE-2026-53633","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@vitest/browser","fromFixed":"5.0.0-beta.3","toFixed":"5.0.0-beta.4","daysApart":0},{"kind":"version-step","provenance":"source","package":"npm:@vitest/browser","fromFixed":"4.1.6","toFixed":"4.1.8","daysApart":0},{"kind":"same-code","provenance":"machine","files":["packages/vitest/src/node/types/browser.ts"],"commits":["https://github.com/vitest-dev/vitest/commit/18af98cee1830604d57f6a02bf28f8067cdffc06","https://github.com/vitest-dev/vitest/commit/3514f9fa135c90e1c35754fc4d27c9cf351faafa","https://github.com/vitest-dev/vitest/commit/385a1aefd4c2bfa5e7d58bf7c6834c929969f2c7","https://github.com/vitest-dev/vitest/commit/63e3b2eee4d58da56786a6333f517b9b492528c7"],"basis":"shared function","functions":["BrowserCommandContext"]}]}],"packageHistory":[{"cve":"CVE-2025-24963","published":"2025-02-04","fixed":"3.0.4","kev":false,"link":{"from":"CVE-2025-24963","to":"CVE-2026-53633","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@vitest/browser","fromFixed":"3.0.4","toFixed":"3.2.5","daysApart":525}]}},{"cve":"CVE-2026-47428","published":"2026-07-14","fixed":"5.0.0-beta.3","kev":false},{"cve":"CVE-2026-53633","published":"2026-07-14","fixed":"5.0.0-beta.4","kev":false},{"cve":"CVE-2026-73653","published":"2026-08-13","fixed":"5.0.0-beta.6","kev":false,"link":{"from":"CVE-2026-53633","to":"CVE-2026-73653","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@vitest/browser","fromFixed":"5.0.0-beta.4","toFixed":"5.0.0-beta.6","daysApart":30},{"kind":"version-step","provenance":"source","package":"npm:@vitest/browser","fromFixed":"4.1.8","toFixed":"4.1.10","daysApart":30},{"kind":"same-code","provenance":"machine","files":["packages/browser/src/node/rpc.ts"],"commits":["https://github.com/vitest-dev/vitest/commit/385a1aefd4c2bfa5e7d58bf7c6834c929969f2c7","https://github.com/vitest-dev/vitest/commit/63e3b2eee4d58da56786a6333f517b9b492528c7","https://github.com/vitest-dev/vitest/commit/33f96a145ef09ca6a43b4e555eb273e64a87be23","https://github.com/vitest-dev/vitest/commit/5c18dd267ff7f47f24cab2f615a16b37d90feb7f"],"basis":"shared file"}]}},{"cve":"CVE-2026-112948","published":"2026-10-20","fixed":"5.0.5","kev":false}],"package":"npm:@vitest/browser"}}