# CVE-2025-46565: Vite's server.fs.deny bypassed with /. for files under project root

- Priority: **Routine**
- Reason: Not severe (CVSS 6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-05-01 · Modified: 2025-05-02
- Aliases: CGA-fvc8-8v8x-cxjv, CGA-mqhp-x9f6-97cj, GHSA-859w-5945-r5v3, CGA-3q35-746w-3336, CGA-47pc-5qr4-gmw4, CGA-hx2q-xrrv-3chj, CGA-j8f6-3rrj-2h67
- Record: https://cvemate.com/vulnerability/CVE-2025-46565 · JSON: https://cvemate.com/vulnerability/CVE-2025-46565/json

## Description

```text
Vite is a frontend tooling framework for javascript. Prior to versions 6.3.4, 6.2.7, 6.1.6, 5.4.19, and 4.5.14, the contents of files in the project root that are denied by a file matching pattern can be returned to the browser. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. Only files that are under project root and are denied by a file matching pattern can be bypassed. `server.fs.deny` can contain patterns matching against files (by default it includes .env, .env.*, *.{crt,pem} as such patterns). These patterns were able to bypass for files under `root` by using a combination of slash and dot (/.). This issue has been patched in versions 6.3.4, 6.2.7, 6.1.6, 5.4.19, and 4.5.14.
```

## Signals

- CVSS: 6 medium (v4.0, CVE.org) 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
- EPSS: 1.268%, percentile 70.752%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- chainguard langfuse-2-worker (Chainguard): \< 2.95.12-r26
- chainguard langfuse-fips-2-worker (Chainguard): \< 2.95.12-r28
- chainguard vite (Chainguard): \< 6.3.4-r0
- wolfi vite (Wolfi): \< 6.3.4-r0
- Npm vite (Npm): ≥ 6.3.0, \< 6.3.4 \| ≥ 6.2.0, \< 6.2.7 \| ≥ 6.0.0, \< 6.1.6 \| ≥ 5.0.0, \< 5.4.19 \| \< 4.5.14
- vitejs vite: \< 4.5.14 \| ≥ 5.0.0, \< 5.4.19 \| ≥ 6.0.0, \< 6.1.6 \| ≥ 6.2.0, \< 6.2.7 \| ≥ 6.3.0, \< 6.3.4

## References

- <https://github.com/vitejs/vite/security/advisories/GHSA-859w-5945-r5v3>
- <https://github.com/vitejs/vite/commit/c22c43de612eebb6c182dd67850c24e4fab8cacb>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46565.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-46565>
- <https://github.com/vitejs/vite>

---

Data as of 2026-12-05T07:51:23.787Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
