<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Tue, 29 Sep 2026 23:32:45 +0000</lastBuildDate>
    <item>
      <title>GHSA-p63j-vcc4-9vmv — @vitest/browser: Browser Mode provider commands bypass the file-access permission gate</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-p63j-vcc4-9vmv</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: @vitest/browser&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;Browser Mode exposes a set of built-in &amp;#34;commands&amp;#34; that run on the Node.js side of the test runner and can touch the local filesystem (taking screenshots, managing Playwright traces, uploading files for `&amp;lt;input type=&amp;#34;file&amp;#34;&amp;gt;`, comparing screenshots).&lt;/p&gt;
&lt;p&gt;Several of these commands accept a file path from the browser and act on it without checking the `allowWrite` permission gate and without confining the path to the project directory. A client that can reach the Browser Mode API can therefore read, create, overwrite, or delete files anywhere the Vitest process can access, even when `allowWrite` is `false`.&lt;/p&gt;
&lt;p&gt;This matters most when the Browser Mode API is exposed to the network (for example `test.api.host` is set, or the dev server is reachable from another machine or origin). In that configuration `allowWrite` defaults to `false` precisely to block file access, and these commands bypass that protection. On a default localhost-only setup with trusted test code, there is no untrusted party in a position to exploit it. The gap still matters wherever you rely on `allowWrite: false` to contain untrusted test code, because these commands ignore that flag.&lt;/p&gt;
&lt;p&gt;## Affected commands and impact&lt;/p&gt;
&lt;p&gt;| Command | Operation | Impact |
|---|---|---|
| `upload` (Playwright + WebdriverIO) | Read | Arbitrary local file read; contents are loaded into the page and readable by test code. Highest-impact case. |
| `takeScreenshot` (Playwright + WebdriverIO) | Write | Writes a PNG to an arbitrary pa…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: @vitest/browser&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;Browser Mode exposes a set of built-in &amp;#34;commands&amp;#34; that run on the Node.js side of the test runner and can touch the local filesystem (taking screenshots, managing Playwright traces, uploading files for `&amp;lt;input type=&amp;#34;file&amp;#34;&amp;gt;`, comparing screenshots).&lt;/p&gt;
&lt;p&gt;Several of these commands accept a file path from the browser and act on it without checking the `allowWrite` permission gate and without confining the path to the project directory. A client that can reach the Browser Mode API can therefore read, create, overwrite, or delete files anywhere the Vitest process can access, even when `allowWrite` is `false`.&lt;/p&gt;
&lt;p&gt;This matters most when the Browser Mode API is exposed to the network (for example `test.api.host` is set, or the dev server is reachable from another machine or origin). In that configuration `allowWrite` defaults to `false` precisely to block file access, and these commands bypass that protection. On a default localhost-only setup with trusted test code, there is no untrusted party in a position to exploit it. The gap still matters wherever you rely on `allowWrite: false` to contain untrusted test code, because these commands ignore that flag.&lt;/p&gt;
&lt;p&gt;## Affected commands and impact&lt;/p&gt;
&lt;p&gt;| Command | Operation | Impact |
|---|---|---|
| `upload` (Playwright + WebdriverIO) | Read | Arbitrary local file read; contents are loaded into the page and readable by test code. Highest-impact case. |
| `takeScreenshot` (Playwright + WebdriverIO) | Write | Writes a PNG to an arbitrary pa…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-p63j-vcc4-9vmv</guid>
    </item>
  </channel>
</rss>
