6

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

Analyzed
AliasesCGA-fvc8-8v8x-cxjvCGA-mqhp-x9f6-97cjGHSA-859w-5945-r5v3
Published 01-05-2025Last modified 02-05-2025

Vulnerability summary

CVE-2025-46565 is a medium (CVSS 6.0) vulnerability in vitejs vite. EPSS estimates a 1.27% chance of exploitation in the next 30 days, higher than 70.7% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 6, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.0/10
010
Medium · v4.0 (CVE.org)
EPSS score
1.27%
0%100%
Low · +0.03 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 0 · Related 4

Timeline

  1. 01-05-2025
    PublishedVulnerability first disclosed.
  2. 02-05-2025
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

1.27%

Chance of exploitation in the next 30 days

Percentile

71%

Versus all other CVEs

30-day change

Increase +0.03 pp

From 1.24% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Vite

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard3 products
  • langfuse-2-worker< 2.95.12-r26
  • langfuse-fips-2-worker< 2.95.12-r28
  • vite< 6.3.4-r0
Npm1 product
  • vite≥ 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
Vitejs1 product
  • 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
Wolfi1 product
  • vite< 6.3.4-r0

4 vendors · 6 products

References

5 links