Vulnerability · Published Aug 21, 2025 · Assigned by GitHub_M
CVE-2025-57753vite-plugin-static-copy files not included in `src` are accessible with a crafted request
Medium 6.0
In plain English
A medium-severity path traversal in vite-plugin-static-copy from sapphi-red. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 4.0)6.0Medium
Exploit odds (30 days)0.4%top 63.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | vite-plugin-static-copy | 3.1.2 | GHSA-pp7p-q8fx-2968 |
| npm | vite-plugin-static-copy | 2.3.2 | GHSA-pp7p-q8fx-2968 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| sapphi-red | vite-plugin-static-copy | >= 3.0.0, < 3.1.2>= 0.4.3, < 2.3.2 |
Weakness: CWE-22 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N