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 various dependencies in the yarn.lock file, including version upgrades and checksum changes, to ensure compatibility and stability of the project.

Detailed summary

  • Added chokidar@npm:^3.6.0
  • Upgraded fdir from 6.4.4 to 6.5.0
  • Upgraded tinyglobby from 0.2.13 to 0.2.15
  • Upgraded vite-plugin-static-copy from 3.0.0 to 3.1.4
  • Added picomatch@npm:^4.0.3

✨ 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 ready!

Name Link
🔨 Latest commit 40ebeaa
🔍 Latest deploy log https://app.netlify.com/projects/kleros-v2-neo/deploys/690b8c2d269cbd000831e5c4
😎 Deploy Preview https://deploy-preview-2101--kleros-v2-neo.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.

@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 40ebeaa
🔍 Latest deploy log https://app.netlify.com/projects/kleros-v2-testnet/deploys/690b8c2d68606e00089e8954
😎 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.


Note

Free review on us!

CodeRabbit is offering free reviews until Thu Nov 06 2025 to showcase some of the refinements we've made.

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 40ebeaa
🔍 Latest deploy log https://app.netlify.com/projects/kleros-v2-testnet-devtools/deploys/690b8c2d1b34800008c09660
@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 2 times, most recently from 471dfc4 to 9f465c6 Compare November 4, 2025 21:07
@renovate renovate bot force-pushed the renovate/npm-vite-plugin-static-copy-vulnerability branch from 9f465c6 to 40ebeaa Compare November 5, 2025 17:40
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

2 participants