Security mailing lists by PureSourceCode

CVE-2025-46565

MEDIUM 6.0CVSS 4.0

Vite's server.fs.deny bypassed with /. for files under project root

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.

Published
1 May 2025
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-22
Also known as
GHSA-859w-5945-r5v3
Sources
NVDJSONOSV GHSA-859w-5945-r5v3JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 MEDIUM 6.0 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV GitHub CVSS 4.0 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
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD vitejs vite
cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
< 4.5.14 4.5.14
NVD vitejs vite
cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
>= 5.0.0, < 5.4.19 5.4.19
NVD vitejs vite
cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
>= 6.0.0, < 6.1.6 6.1.6
NVD vitejs vite
cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
>= 6.2.0, < 6.2.7 6.2.7
NVD vitejs vite
cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
>= 6.3.0, < 6.3.4 6.3.4
OSV npm vite >= 6.3.0, < 6.3.4 6.3.4
OSV npm vite >= 6.2.0, < 6.2.7 6.2.7
OSV npm vite >= 6.0.0, < 6.1.6 6.1.6
OSV npm vite >= 5.0.0, < 5.4.19 5.4.19
OSV npm vite < 4.5.14 4.5.14

References

History

  • 25 Nov 2026 20:58 UTC · NVD: first stored (published 1 May 2025)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 30 Apr 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.