Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 21, 2025

Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.

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 new versions for chokidar, fdir, picomatch, tinyglobby, and vite-plugin-static-copy. It also modifies some checksums and peer dependencies to ensure compatibility with the latest versions.

Detailed summary

  • Added chokidar@3.6.0
  • Updated fdir from 6.4.4 to 6.5.0
  • Updated picomatch to 4.0.3
  • Updated tinyglobby from 0.2.13 to 0.2.14
  • Updated vite-plugin-static-copy from 3.0.0 to 3.1.2
  • Adjusted peer dependencies for vite to include ^7.0.0

✨ 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
Copy link

netlify bot commented Aug 21, 2025

Deploy Preview for kleros-v2-neo canceled.

Name Link
🔨 Latest commit bc256a1
🔍 Latest deploy log https://app.netlify.com/projects/kleros-v2-neo/deploys/68caa398259e310008639f90

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

Copy link

netlify bot commented Aug 21, 2025

Deploy Preview for kleros-v2-testnet canceled.

Name Link
🔨 Latest commit bc256a1
🔍 Latest deploy log https://app.netlify.com/projects/kleros-v2-testnet/deploys/68caa398be1464000861f4d8

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.

Copy link

netlify bot commented Aug 21, 2025

Deploy Preview for kleros-v2-testnet-devtools canceled.

Name Link
🔨 Latest commit bc256a1
🔍 Latest deploy log https://app.netlify.com/projects/kleros-v2-testnet-devtools/deploys/68caa3982d2cda00088fbe4d

@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 from 5464187 to 01a38f6 Compare September 16, 2025 17:53
@renovate renovate bot force-pushed the renovate/npm-vite-plugin-static-copy-vulnerability branch from 01a38f6 to bc256a1 Compare September 17, 2025 12:03
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.

1 participant