Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Aug 21, 2025

This PR contains the following updates:

Package Change Age Confidence
vite-plugin-static-copy 3.0.0 -> 3.1.2 age confidence

GitHub Vulnerability Alerts

CVE-2025-57753

Summary

Files not included in src was possible to access with a crafted request.

Impact

Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected.

Arbitrary files can be disclosed by exploiting this vulnerability.

Details

Consider the following configuration in used by vite.config.ts:

import { defineConfig } from 'vite'
import { viteStaticCopy } from 'vite-plugin-static-copy'

export default defineConfig({
    plugins: [
      viteStaticCopy({
        targets: [
          {
            src: "./public/images",
            dest: "./",
          },
        ],
      }),
    ],
  });

The files under the ./public/images is only expected to be served. Abusing this vulnerability, an attacker can access arbitrary files on the filesystem.

PoC

I've attached a demo app to showcase the bug.

Run it with npm run dev and issue the following HTTP request

GET /static/images/../../../../../../../etc/passwd HTTP/1.1
Host: localhost:3001
Content-Length: 2

OR

curl --path-as-is -i -s -k -X $'GET' \
    -H $'Host: localhost:3001' -H $'Content-Length: 2' \
    --data-binary $'\x0d\x0a' \
    $'http://localhost:3001/static/images/../../../../../../../etc/passwd'

Observe that the /etc/passwd file is included in the response.

Screenshot 2025-08-16 at 10 27 11 PM

Release Notes

sapphi-red/vite-plugin-static-copy (vite-plugin-static-copy)

v3.1.2

Compare Source

Patch Changes

v3.1.1

Compare Source

Patch Changes

v3.1.0

Compare Source

Minor Changes

v3.0.2

Compare Source

Patch Changes

v3.0.1

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.


PR-Codex overview

This PR updates several dependencies in the yarn.lock file, including version upgrades and checksum changes for various packages, ensuring compatibility and potentially improving performance and security.

Detailed summary

  • Added chokidar@npm:3.6.0
  • Updated fdir from 6.4.4 to 6.5.0
  • Updated fs-extra to 11.3.0
  • Added picomatch@npm:4.0.3
  • Updated tinyglobby from 0.2.13 to 0.2.15
  • Updated vite-plugin-static-copy to 3.1.4
  • Adjusted peer dependencies for vite in vite-plugin-static-copy

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@renovate renovate bot requested a review from a team as a code owner August 21, 2025 19:53
@renovate renovate bot added the dependencies Pull requests that update a dependency file label Aug 21, 2025
@netlify
Copy link

netlify bot commented Aug 21, 2025

Deploy Preview for kleros-v2-neo failed. Why did it fail? →

Name Link
🔨 Latest commit 31e4ad2
🔍 Latest deploy log https://app.netlify.com/projects/kleros-v2-neo/deploys/693c6d29e963430008abf6a3

@netlify
Copy link

netlify bot commented Aug 21, 2025

Deploy Preview for kleros-v2-university failed. Why did it fail? →

Name Link
🔨 Latest commit 01a38f6
🔍 Latest deploy log https://app.netlify.com/projects/kleros-v2-university/deploys/68c9a433fa4a780008fe97a2

@netlify
Copy link

netlify bot commented Aug 21, 2025

Deploy Preview for kleros-v2-testnet ready!

Name Link
🔨 Latest commit 31e4ad2
🔍 Latest deploy log https://app.netlify.com/projects/kleros-v2-testnet/deploys/693c6d29147565000882c758
😎 Deploy Preview https://deploy-preview-2101--kleros-v2-testnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 21, 2025

Important

Review skipped

Ignore keyword(s) in the title.

⛔ Ignored keywords (1)
  • chore(deps):

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@netlify
Copy link

netlify bot commented Aug 21, 2025

Deploy Preview for kleros-v2-testnet-devtools failed. Why did it fail? →

Name Link
🔨 Latest commit 31e4ad2
🔍 Latest deploy log https://app.netlify.com/projects/kleros-v2-testnet-devtools/deploys/693c6d29c8f43100098e0fb6

@renovate renovate bot force-pushed the renovate/npm-vite-plugin-static-copy-vulnerability branch 5 times, most recently from ac37d04 to f714aba Compare August 27, 2025 04:04
@renovate renovate bot force-pushed the renovate/npm-vite-plugin-static-copy-vulnerability branch 7 times, most recently from 8989296 to cad782e Compare September 4, 2025 23:40
@renovate renovate bot force-pushed the renovate/npm-vite-plugin-static-copy-vulnerability branch 2 times, most recently from b1d0576 to 5464187 Compare September 11, 2025 02:31
@renovate renovate bot force-pushed the renovate/npm-vite-plugin-static-copy-vulnerability branch 3 times, most recently from bc256a1 to dd1fd7b Compare September 23, 2025 11:09
@renovate renovate bot force-pushed the renovate/npm-vite-plugin-static-copy-vulnerability branch 3 times, most recently from 94fa0a7 to 7cb9d42 Compare September 30, 2025 18:05
@renovate renovate bot force-pushed the renovate/npm-vite-plugin-static-copy-vulnerability branch 2 times, most recently from ac94285 to c2df71d Compare October 7, 2025 16:57
@renovate renovate bot force-pushed the renovate/npm-vite-plugin-static-copy-vulnerability branch 6 times, most recently from dfa4a29 to d63960c Compare October 15, 2025 17:03
@renovate renovate bot force-pushed the renovate/npm-vite-plugin-static-copy-vulnerability branch 3 times, most recently from d1f52d9 to c481e11 Compare October 17, 2025 13:19
@renovate renovate bot force-pushed the renovate/npm-vite-plugin-static-copy-vulnerability branch 5 times, most recently from 84b3f49 to 8c5bbfa Compare October 27, 2025 17:18
@renovate renovate bot force-pushed the renovate/npm-vite-plugin-static-copy-vulnerability branch 3 times, most recently from 9f465c6 to 40ebeaa Compare November 5, 2025 17:40
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 5, 2025

@renovate renovate bot force-pushed the renovate/npm-vite-plugin-static-copy-vulnerability branch 2 times, most recently from b4e2be7 to d7f3fe9 Compare December 12, 2025 15:10
@renovate renovate bot force-pushed the renovate/npm-vite-plugin-static-copy-vulnerability branch from d7f3fe9 to 31e4ad2 Compare December 12, 2025 19:29
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants