CVE-2025-57753

vite-plugin-static-copy files not included in `src` are accessible with a crafted request

State
Published
Severity
6.0 Medium
Published
Aug 21, 2025
Updated
Aug 21, 2025
Reserved
Aug 19, 2025

Read the record on cve.org

Description

vite-plugin-static-copy is rollup-plugin-copy for Vite with dev server support. Files not included in src are accessible with a crafted request. The vulnerability is fixed in 2.3.2 and 3.1.2.

Scores

CVSSScoreVectorSource
4.06.0 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NGitHub_M

Weaknesses

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Affected Products

ProductVersions
vite-plugin-static-copysapphi-red
  • >= 3.0.0, < 3.1.2Affected
  • >= 0.4.3, < 2.3.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.