Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-32395

MEDIUM 6.0EPSS 78%

Vite has an `server.fs.deny` bypass with an invalid `request-target`

Also known as GHSA-356w-63v5-8wf4

Mitigation

  • Upgrade vite to one of 6.2.6, 6.1.5, 6.0.15, 5.4.18, 4.5.13 (or later in the same release line).

Who should check

  • Projects that depend on npm package vite (>= 6.2.0, < 6.2.6)
  • Anyone running vitejs vite >= 6.2.0, < 6.2.6; >= 6.1.0, < 6.1.5; >= 6.0.0, < 6.0.15; >= 5.0.0, < 5.4.18; < 4.5.13

Vulnerability facts

Affected
vite >= 6.2.0, < 6.2.6
Fixed in
6.2.6, 6.1.5, 6.0.15, 5.4.18, 4.5.13
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
6.0 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: Passive
  • Confidentiality impact: High
  • Integrity impact: None
  • Availability impact: None
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
1.75% chance of exploitation in 30 days (percentile 78, 2026-11-26)
CWE
CWE-200
Published
Modified

Description

Vite is a frontend tooling framework for javascript. Prior to 6.2.6, 6.1.5, 6.0.15, 5.4.18, and 4.5.13, the contents of arbitrary files can be returned to the browser if the dev server is running on Node or Bun. HTTP 1.1 spec (RFC 9112) does not allow # in request-target. Although an attacker can send such a request. For those requests with an invalid request-line (it includes request-target), the spec recommends to reject them with 400 or 301. The same can be said for HTTP 2. On Node and Bun, those requests are not rejected internally and is passed to the user land. For those requests, the value of http.IncomingMessage.url contains #. Vite assumed req.url won't contain # when checking server.fs.deny, allowing those kinds of requests to bypass the check. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) and running the Vite dev server on runtimes that are not Deno (e.g. Node, Bun) are affected. This vulnerability is fixed in 6.2.6, 6.1.5, 6.0.15, 5.4.18, and 4.5.13.

Affected and fixed versions

Package / productAffectedFixedSource
npm vite>= 6.2.0, < 6.2.66.2.6, 6.1.5, 6.0.15, 5.4.18, 4.5.13osv
vitejs vite>= 6.2.0, < 6.2.6; >= 6.1.0, < 6.1.5; >= 6.0.0, < 6.0.15; >= 5.0.0, < 5.4.18; < 4.5.13—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-32395. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-32395.md
Affected: vite >= 6.2.0, < 6.2.6
Fixed in: 6.2.6, 6.1.5, 6.0.15, 5.4.18, 4.5.13

Steps:
1. Search this machine and project for vite (npm), vitejs vite: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-32395 being exploited?

There is no confirmed exploitation: CVE-2025-32395 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.75% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-32395?

Medium: CVSS 6.0 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2025-32395?

vite >= 6.2.0, < 6.2.6.

Is there a fix for CVE-2025-32395?

Yes. Fixed in 6.2.6, 6.1.5, 6.0.15, 5.4.18, 4.5.13. Upgrade vite to one of 6.2.6, 6.1.5, 6.0.15, 5.4.18, 4.5.13 (or later in the same release line).

How do I check if I'm affected by CVE-2025-32395?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors