SecurityContext

CVE-2025-58751: Vite - Path Traversal

  • Cve: CVE-2025-58751
  • Name: Vite - Path Traversal
  • Description: Vite is a frontend tooling framework for JavaScript. Prior to versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20, files starting with the same name with the public directory were served bypassing the `server.fs` settings. Only apps that explicitly expose the Vite dev server to the network (using --host or `server.host` config option), use the public directory feature (enabled by default), and have a symlink in the public directory are affected. Versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20 fix the issue.
  • Impact: Attackers can access unauthorized files bypassing filesystem restrictions, potentially exposing sensitive data.
  • Remediation: Update to versions 7.1.5, 7.0.7, 6.3.6, or 5.4.20 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_read, 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.01325
  • Epss percentile: 0.71708
  • Assignee: [email protected]
  • Published at: 2025-09-08T23:15:36Z
  • Age in days: 442
  • Modified at: 2026-06-17T09:44:52Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 7
  • Products total: 1
  • Oss: yes
  • Projects total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-58751
  • 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-58751https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-58751.yaml

Public exploits

UrlSourceAdded date
https://github.com/vitejs/vite/security/advisories/GHSA-g4jq-h2w9-997cnvd2025-09-08

References

UrlSourceTags
https://github.com/lukeed/sirv/commit/f0113f3f8266328d804ee808f763a3c11f8997ebnvdPatch
https://github.com/vitejs/vite/commit/09f2b52e8d5907f26602653caf41b3a56692600dnvdPatch
https://github.com/vitejs/vite/commit/4f1c35bcbb5830290c694aa14b6789e07450f069nvdPatch
https://github.com/vitejs/vite/commit/63e2a5d232218f3f8d852056751e609a5367aaecnvdPatch
https://github.com/vitejs/vite/commit/e11d24008b97d4ca731ecc1a3b95260a6d12e7e0nvdPatch
https://github.com/vitejs/vite/security/advisories/GHSA-g4jq-h2w9-997cnvdExploit, Third Party Advisory
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-58751.yamlnuclei_templateNuclei Template

Products

ProductAffectedPlatform boundSourcesUrl
vitejs:vite>= 7.1.0, < 7.1.5; >= 7.0.0, < 7.0.7; >= 6.0.0, < 6.3.6; < 5.4.20nonvd/v1/products/vitejs/vite

Projects

RepositoryLink kindsIndexedUrl
vitejs/vitecommit, package, security_advisoryyes/v1/repositories/vitejs/vite
lukeed/sirvcommityes/v1/repositories/lukeed/sirv

Index

  • Repositories: 223
  • Repositories high signal: 4
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2025-09-08
  • 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