SecurityContext

CVE-2025-46565: Vite - Path Traversal

  • Cve: CVE-2025-46565
  • Name: Vite - Path Traversal
  • 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.
  • Impact: Attackers can access and retrieve files denied by patterns, potentially exposing sensitive information from the project root.
  • Remediation: Update to version 6.3.4, 6.2.7, 6.1.6, 5.4.19, or 4.5.14 or later versions.
  • Vulnerability type: path_traversal
  • Vulnerability impact: information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Epss score: 0.01243
  • Epss percentile: 0.69998
  • Assignee: [email protected]
  • Published at: 2025-05-01T18:15:57Z
  • Age in days: 572
  • Modified at: 2026-06-17T09:26:37Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-46565
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Nuclei templates

IdUrl
CVE-2025-46565https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-46565.yaml

Public exploits

UrlSourceAdded date
https://github.com/vitejs/vite/security/advisories/GHSA-859w-5945-r5v3nvd2025-05-01

References

UrlSourceTags
https://github.com/vitejs/vite/commit/c22c43de612eebb6c182dd67850c24e4fab8cacbnvdPatch
https://github.com/vitejs/vite/security/advisories/GHSA-859w-5945-r5v3nvdExploit, Vendor Advisory
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-46565.yamlnuclei_templateNuclei Template

Products

ProductAffectedPlatform boundSourcesUrl
vitejs: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.14nonvd/v1/products/vitejs/vite

Projects

RepositoryLink kindsIndexedUrl
vitejs/vitecommit, fix, package, security_advisoryyes/v1/repositories/vitejs/vite

Index

  • Repositories: 161
  • Repositories high signal: 1
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2025-05-01
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, initial access since, hackerone reports, exposed hosts

Nuclei template