chore(deps): update dependency vite-plugin-static-copy to v2 [security] #2458
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.4->2.3.2GitHub 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 filev1.0.6Compare Source
Patch Changes
d68aec9Thanks @tobz1000! - The value ofContent-Typeheader was inferred and set from the src file extension. It is now infered from the dest file extension.v1.0.5Compare Source
Patch Changes
311ce4dThanks @sapphi-red! - generate provenance statements for the packageConfiguration
📅 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.