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

Medium 6.0 Published Updated

Attackers can access files outside the intended source directory via crafted requests in vite-plugin-static-copy.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-57753?

CVE-2025-57753 is a medium-severity path traversal vulnerability in sapphi-red vite-plugin-static-copy, published on 21 Aug 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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.

Weakness: CWE-22

Which versions are affected by CVE-2025-57753?

4 open source packages ship an affected version, including vite-plugin-static-copy.

PackageAffectedFixed in
vite-plugin-static-copy npmFrom 0.4.32.3.2
vite-plugin-static-copy npmFrom 0.4.32.3.2
vite-plugin-static-copy npmFrom 3.0.03.1.2
vite-plugin-static-copy npmFrom 3.0.03.1.2

How do I fix CVE-2025-57753?

Upgrade vite-plugin-static-copy to a fixed version for your release line: 2.3.2 or 3.1.2.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-57753 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-57753 exists.

Sources

Also known as GHSA-pp7p-q8fx-2968.

Is CVE-2025-57753 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free