chore(deps): update dependency vite-plugin-static-copy to v2 [security]#376
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
chore(deps): update dependency vite-plugin-static-copy to v2 [security]#376renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
❌ Deploy Preview for cn-devtools-app failed.
|
aebbe92 to
0e8fb46
Compare
0e8fb46 to
d5bd571
Compare
d5bd571 to
f808856
Compare
f808856 to
eb1714a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.0.6→^2.0.0GitHub Vulnerability Alerts
CVE-2025-57753
Summary
Files not included in
srcwas 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:The files under the
./public/imagesis 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 devand issue the following HTTP requestOR
Observe that the
/etc/passwdfile is included in the response.Release Notes
sapphi-red/vite-plugin-static-copy (vite-plugin-static-copy)
v2.3.2Compare Source
Patch Changes
4627afbThanks @sapphi-red! - Files not included insrcwas possible to acess with a crafted request. See GHSA-pp7p-q8fx-2968 for more details.v2.3.1Compare Source
Patch Changes
6aee6a3Thanks @sapphi-red! - improve performance of internalisSubdirectoryOrEqualfunctionv2.3.0Compare Source
Minor Changes
281f5b2Thanks @sapphi-red! - improve performance by coping files concurrently when possiblePatch Changes
a9f35c9Thanks @sapphi-red! - ensure.[cm]?[tj]sx?static assets are JS mime to align with Vite. vitejs/vite#19453v2.2.0Compare Source
Minor Changes
88e513dThanks @sapphi-red! - add Vite 6 to peer depv2.1.0Compare Source
Minor Changes
b9c09bdThanks @rschristian! - Allows user to optionally configure when the plugin is ran by passing in a Rollup hook namev2.0.0Compare Source
Major Changes
21304dfThanks @tassioFront! - feat: throw an error when does not find fileConfiguration
📅 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 becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.