{"id":"CVE-2026-73653","published":"2026-08-13T18:19:00Z","modified":"2026-08-13T18:42:42Z","title":"Vitest: Browser Mode provider commands bypass the file-access permission gate","vendor":"vitest-dev","product":"vitest","tier":"tail","description":{"text":"Vitest is a testing framework powered by Vite. Prior to versions 3.2.7, 4.1.10, and 5.0.0-beta.6, Browser Mode provider commands including upload, takeScreenshot, screenshotMatcher, stopChunkTrace, deleteTracing, and annotateTraces accept browser-supplied file paths without enforcing the allowWrite permission gate or confining paths to the project root. A client that can reach the Browser Mode API can read arbitrary local files, create or overwrite image and trace files, or delete files accessible to the Vitest process even when allowWrite is false. This issue is fixed in versions 3.2.7, 4.1.10, and 5.0.0-beta.6.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.4,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0079,"percentile":0.57174,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-552","name":"Files or Directories Accessible to External Parties"},{"id":"CWE-862","name":"Missing Authorization"}],"references":[{"url":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-p63j-vcc4-9vmv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vitest-dev/vitest/pull/10674","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/pull/10679","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/pull/10680","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/commit/33f96a145ef09ca6a43b4e555eb273e64a87be23","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/commit/5c18dd267ff7f47f24cab2f615a16b37d90feb7f","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/commit/b795e36b34969bec50b47a9f29d26f799a6a04fb","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v3.2.7","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v4.1.10","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v5.0.0-beta.6","tags":["x_refsource_MISC"]}],"priority":{"score":18.0,"factors":[{"name":"EPSS percentile","points":11.43},{"name":"CVSS severity","points":6.58}]},"vendorSlug":"vitest-dev","affectedVersions":[{"vendor":"vitest-dev","product":"vitest","versions":["< 3.2.7",">= 4.0.0, < 4.1.10",">= 5.0.0-beta.1, < 5.0.0-beta.6"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-08-13T18:42:15.244525Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@vitest/browser","vulnerableRanges":[">=4.0.0, <4.1.10","<3.2.7",">=5.0.0-beta.1, <5.0.0-beta.6"],"patched":["4.1.10","3.2.7","5.0.0-beta.6"],"from":["GHSA-p63j-vcc4-9vmv"],"provenance":"source"}],"summary":{"text":"The flaw lies in Vitest's Browser Mode, specifically in its provider commands (upload, takeScreenshot, screenshotMatcher, stopChunkTrace, deleteTracing, and annotateTraces), which accept browser-supplied file paths without enforcing the allowWrite permission gate or confining paths to the project root. An attacker who can reach the Browser Mode API, without needing authentication or user interaction, can read arbitrary local files, create or overwrite image and trace files, or delete files accessible to the Vitest process, even when allowWrite is set to false.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:37Z"},"euvd":{"id":"EUVD-2026-58197","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vitest-dev-vitest-cve-2025-24963","parents":[{"from":"CVE-2025-24964","to":"CVE-2026-73653","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/browser/src/node/index.ts"],"commits":["https://github.com/vitest-dev/vitest/commit/191ef9e34c867d0efd04f49b3d38193a68e825dc","https://github.com/vitest-dev/vitest/commit/7ce9fbb4972d45c6fd34c843645ef6f549bbb241","https://github.com/vitest-dev/vitest/commit/33f96a145ef09ca6a43b4e555eb273e64a87be23","https://github.com/vitest-dev/vitest/commit/5c18dd267ff7f47f24cab2f615a16b37d90feb7f"],"basis":"rarely changed file"}]},{"from":"CVE-2026-47429","to":"CVE-2026-73653","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/browser/src/node/commands/fs.ts"],"commits":["https://github.com/vitest-dev/vitest/commit/20e00ef7808de6d330c5e2fda530f686e08f1c8d","https://github.com/vitest-dev/vitest/commit/af88b1f5d82844a4761ea9a977156c98e2b14ca8","https://github.com/vitest-dev/vitest/commit/33f96a145ef09ca6a43b4e555eb273e64a87be23","https://github.com/vitest-dev/vitest/commit/5c18dd267ff7f47f24cab2f615a16b37d90feb7f"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2026-73653","to":"CVE-2026-84373","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/browser/src/node/index.ts"],"commits":["https://github.com/vitest-dev/vitest/commit/33f96a145ef09ca6a43b4e555eb273e64a87be23","https://github.com/vitest-dev/vitest/commit/5c18dd267ff7f47f24cab2f615a16b37d90feb7f","https://github.com/vitest-dev/vitest/commit/51edf2b072902aec6d30c90ebaafd8f121c6f9d8","https://github.com/vitest-dev/vitest/commit/8ff9b9a9efca7c6cfd5243569440de8d7a33aec4"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-24963","published":"2025-02-04","fixed":"3.0.4","kev":false},{"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,"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-73653","published":"2026-08-13","fixed":"5.0.0-beta.6","kev":false},{"cve":"CVE-2026-112948","published":"2026-10-20","fixed":"5.0.5","kev":false,"link":{"from":"CVE-2026-73653","to":"CVE-2026-112948","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@vitest/browser","fromFixed":"5.0.0-beta.6","toFixed":"5.0.5","daysApart":68}]}}],"package":"npm:@vitest/browser"}}