Every CVE Search/ Get API key

CVE-2026-112946

Vite: Files outside `server.fs.allow` could be served when project paths match system paths on non-Windows machine

6.3 MediumFix available

Vite is a frontend tooling framework for JavaScript. Prior to 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3, import analysis can record a root-relative browser URL in safeModulePaths instead of the cleaned resolved module identifier. On a network-accessible, non-Windows development server, an imported project file whose URL matches an absolute host path can authorize a later raw-filesystem request for that host file, provided server.fs.deny does not block it. The request can disclose the matching file outside the project root, but it does not allow arbitrary path traversal because the host path must correspond to a project-relative URL authorized by the application graph. This issue is fixed in versions 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
Low
Integrity
None
Availability
None

Exploit likelihood

0.85%Unchanged since Oct 21, 2026
90%50%10%1%

What each source reports

CVE List Score used 6.3

Vite: Files outside `server.fs.allow` could be served when project paths match system paths on non-Windows machine

Vite is a frontend tooling framework for JavaScript. Prior to 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3, import analysis can record a root-relative browser URL in safeModulePaths instead of the cleaned resolved module identifier. On a network-accessible, non-Windows development server, an imported project file whose URL matches an absolute host path can authorize a later raw-filesystem request for that host file, provided server.fs.deny does not block it. The request can disclose the matching file outside the project root, but it does not allow arbitrary path traversal because the host path must correspond to a project-relative URL authorized by the application graph. This issue is fixed in versions 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3.

Record
CVE-2026-112946
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-22, CWE-284
Updated
2026-11-02
EUVDEUVD-2026-105128 6.3

Vite is a frontend tooling framework for JavaScript. Prior to 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3, import analysis can record a root-relative browser URL in safeModulePaths instead of the cleaned resolved module identifier. On a network-accessible, non-Windows development server, an imported project file whose URL matches an absolute host path can authorize a later raw-filesystem request for that host file, provided server.fs.deny does not block it. The request can disclose the matching file outside the project root, but it does not allow arbitrary path traversal because the host path must correspond to a project-relative URL authorized by the application graph. This issue is fixed in versions 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3.

Record
EUVD-2026-105128
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-rq7h-c2jc-7f22 6.3

Vite: Files outside `server.fs.allow` could be served when project paths match system paths on non-Windows machine

Summary

The content of files outside server.fs setting can be returned to the browser if the project imports a file path concatenated with the root. For example, if the project references <path-to-project-root>/etc/hosts, the content of /etc/hosts was possible to be returned.

The content of files outside the server.fs.allow option can be returned to the browser when a project imports a file whose root-relative path matches an absolute path on the host. For example, referencing <project-root>/etc/hosts could make Vite return the host's /etc/hosts file.

Impact

Only apps that meet all of the following conditions are affected:

  • explicitly expose the Vite dev server to the network (using --host or the server.host option)
  • contain an imported file whose root-relative browser URL is also the absolute path of a readable file on the host
  • The sensitive file is not matched by server.fs.deny
  • the dev server is not running on Windows

Details

When Vite analyzes an in-root import, it rewrites the resolved module ID to a browser URL such as /etc/hostname. In affected versions, Vite converts that URL with fsPathFromUrl and adds the result to safeModulePaths. Because fsPathFromUrl ensures a leading slash without resolving the URL against the project root, the project URL /etc/hostname is recorded as if it were the absolute filesystem path /etc/hostname.

For a later request to /@fs/etc/hostname, the raw-filesystem middleware interprets /etc/hostname as an absolute path. The access check applies server.fs.deny, then accepts paths present in safeModulePaths before checking server.fs.allow. As a result, the request can return the host file instead of the project file that originally populated safeModulePaths.

PoC

The following example requires Linux with a readable /etc/hostname:

$ mkdir vite-safe-module-path-poc
$ cd vite-safe-module-path-poc
$ npm init -y
$ npm install [email protected]
$ mkdir -p etc
$ echo 'PROJECT-DECOY\n' > etc/hostname
$ echo 'import "./etc/hostname"\n' > main.js
$ npx vite --host 127.0.0.1

In another terminal:

$ curl -o /dev/null -s -w '%{http_code}\n' http://127.0.0.1:5173/main.js
200
$ curl -sS -o response -w '%{http_code}\n' http://127.0.0.1:5173/@fs/etc/hostname
200
$ cmp -s response /etc/hostname && echo 'response matches host file'
response matches host file
Record
GHSA-rq7h-c2jc-7f22
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-22, CWE-284
Updated
2026-11-02
NVD 6.3

Vite is a frontend tooling framework for JavaScript. Prior to 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3, import analysis can record a root-relative browser URL in safeModulePaths instead of the cleaned resolved module identifier. On a network-accessible, non-Windows development server, an imported project file whose URL matches an absolute host path can authorize a later raw-filesystem request for that host file, provided server.fs.deny does not block it. The request can disclose the matching file outside the project root, but it does not allow arbitrary path traversal because the host path must correspond to a project-relative URL authorized by the application graph. This issue is fixed in versions 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3.

Record
CVE-2026-112946
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/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
Weakness
CWE-22, CWE-284
Updated
2026-11-02
OSV 6.3

Vite: Files outside `server.fs.allow` could be served when project paths match system paths on non-Windows machine

Vite is a frontend tooling framework for JavaScript. Prior to 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3, import analysis can record a root-relative browser URL in safeModulePaths instead of the cleaned resolved module identifier. On a network-accessible, non-Windows development server, an imported project file whose URL matches an absolute host path can authorize a later raw-filesystem request for that host file, provided server.fs.deny does not block it. The request can disclose the matching file outside the project root, but it does not allow arbitrary path traversal because the host path must correspond to a project-relative URL authorized by the application graph. This issue is fixed in versions 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3.

Record
CVE-2026-112946
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-22, CWE-284
Updated
2026-11-04
OSVGHSA-rq7h-c2jc-7f22 6.3

Vite: Files outside `server.fs.allow` could be served when project paths match system paths on non-Windows machine

Summary

The content of files outside server.fs setting can be returned to the browser if the project imports a file path concatenated with the root. For example, if the project references <path-to-project-root>/etc/hosts, the content of /etc/hosts was possible to be returned.

The content of files outside the server.fs.allow option can be returned to the browser when a project imports a file whose root-relative path matches an absolute path on the host. For example, referencing <project-root>/etc/hosts could make Vite return the host's /etc/hosts file.

Impact

Only apps that meet all of the following conditions are affected:

  • explicitly expose the Vite dev server to the network (using --host or the server.host option)
  • contain an imported file whose root-relative browser URL is also the absolute path of a readable file on the host
  • The sensitive file is not matched by server.fs.deny
  • the dev server is not running on Windows

Details

When Vite analyzes an in-root import, it rewrites the resolved module ID to a browser URL such as /etc/hostname. In affected versions, Vite converts that URL with fsPathFromUrl and adds the result to safeModulePaths. Because fsPathFromUrl ensures a leading slash without resolving the URL against the project root, the project URL /etc/hostname is recorded as if it were the absolute filesystem path /etc/hostname.

For a later request to /@fs/etc/hostname, the raw-filesystem middleware interprets /etc/hostname as an absolute path. The access check applies server.fs.deny, then accepts paths present in safeModulePaths before checking server.fs.allow. As a result, the request can return the host file instead of the project file that originally populated safeModulePaths.

PoC

The following example requires Linux with a readable /etc/hostname:

$ mkdir vite-safe-module-path-poc
$ cd vite-safe-module-path-poc
$ npm init -y
$ npm install [email protected]
$ mkdir -p etc
$ echo 'PROJECT-DECOY\n' > etc/hostname
$ echo 'import "./etc/hostname"\n' > main.js
$ npx vite --host 127.0.0.1

In another terminal:

$ curl -o /dev/null -s -w '%{http_code}\n' http://127.0.0.1:5173/main.js
200
$ curl -sS -o response -w '%{http_code}\n' http://127.0.0.1:5173/@fs/etc/hostname
200
$ cmp -s response /etc/hostname && echo 'response matches host file'
response matches host file
Record
GHSA-rq7h-c2jc-7f22
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-22, CWE-284
Updated
2026-11-02
Show 15 moreShow less
OSVUBUNTU-CVE-2026-112946 6.3

Vite is a frontend tooling framework for JavaScript. Prior to 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3, import analysis can record a root-relative browser URL in safeModulePaths instead of the cleaned resolved module identifier. On a network-accessible, non-Windows development server, an imported project file whose URL matches an absolute host path can authorize a later raw-filesystem request for that host file, provided server.fs.deny does not block it. The request can disclose the matching file outside the project root, but it does not allow arbitrary path traversal because the host path must correspond to a project-relative URL authorized by the application graph. This issue is fixed in versions 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3.

Record
UBUNTU-CVE-2026-112946
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Updated
2026-11-02
OSVCLSA-2026-1793091335 No score

TuxCare security update for vite (3 CVEs)

TuxCare rebuilt vite to address 3 CVEs. Fixed in 6.4.2-tuxcare.6.

Record
CLSA-2026-1793091335
Updated
2026-11-02
OSVCLSA-2026-1793098696 No score

TuxCare security update for vite (1 CVE)

TuxCare rebuilt vite to address 1 CVE. Fixed in 4.5.0-tuxcare.6.

Record
CLSA-2026-1793098696
Updated
2026-11-02
OSVCLSA-2026-1793099369 No score

TuxCare security update for vite (2 CVEs)

TuxCare rebuilt vite to address 2 CVEs. Fixed in 5.4.10-tuxcare.5.

Record
CLSA-2026-1793099369
Updated
2026-11-02
OSVCLSA-2026-1793099859 No score

TuxCare security update for vite (2 CVEs)

TuxCare rebuilt vite to address 2 CVEs. Fixed in 8.0.10-tuxcare.2.

Record
CLSA-2026-1793099859
Updated
2026-11-02
OSVCLSA-2026-1793099874 No score

TuxCare security update for vite (2 CVEs)

TuxCare rebuilt vite to address 2 CVEs. Fixed in 8.0.12-tuxcare.2.

Record
CLSA-2026-1793099874
Updated
2026-11-02
OSVCLSA-2026-1793099905 No score

TuxCare security update for vite (2 CVEs)

TuxCare rebuilt vite to address 2 CVEs. Fixed in 7.3.3-tuxcare.3.

Record
CLSA-2026-1793099905
Updated
2026-11-02
OSVCLSA-2026-1793099942 No score

TuxCare security update for vite (2 CVEs)

TuxCare rebuilt vite to address 2 CVEs. Fixed in 4.5.14-tuxcare.6.

Record
CLSA-2026-1793099942
Updated
2026-11-02
OSVCLSA-2026-1793099987 No score

TuxCare security update for vite (2 CVEs)

TuxCare rebuilt vite to address 2 CVEs. Fixed in 3.2.11-tuxcare.8.

Record
CLSA-2026-1793099987
Updated
2026-11-02
OSVCLSA-2026-1793100006 No score

TuxCare security update for vite (4 CVEs)

TuxCare rebuilt vite to address 4 CVEs. Fixed in 5.0.12-tuxcare.8.

Record
CLSA-2026-1793100006
Updated
2026-11-07
OSVCLSA-2026-1793100032 No score

TuxCare security update for vite (2 CVEs)

TuxCare rebuilt vite to address 2 CVEs. Fixed in 8.0.9-tuxcare.2.

Record
CLSA-2026-1793100032
Updated
2026-11-02
OSVCLSA-2026-1793100051 No score

TuxCare security update for vite (2 CVEs)

TuxCare rebuilt vite to address 2 CVEs. Fixed in 7.3.2-tuxcare.2.

Record
CLSA-2026-1793100051
Updated
2026-11-02
OSVCLSA-2026-1793100627 No score

TuxCare security update for vite (2 CVEs)

TuxCare rebuilt vite to address 2 CVEs. Fixed in 2.9.18-tuxcare.5.

Record
CLSA-2026-1793100627
Updated
2026-11-02
OSVCLSA-2026-1793100737 No score

TuxCare security update for vite (2 CVEs)

TuxCare rebuilt vite to address 2 CVEs. Fixed in 6.4.3-tuxcare.2.

Record
CLSA-2026-1793100737
Updated
2026-11-02
OSVCLSA-2026-1793115223 No score

TuxCare security update for vite (4 CVEs)

TuxCare rebuilt vite to address 4 CVEs. Fixed in 4.1.5-tuxcare.4.

Record
CLSA-2026-1793115223
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
vite
npm
8.3.0 to 8.3.2
8.3.3
vite
npm
8.2.0 to 8.2.3
8.2.4
vite
npm
8.0.0 to 8.1.5
8.1.6
vite
npm
7.0.0 to 7.3.6
7.3.7
vite
npm
through 6.4.3
6.4.4
vite-plus
npm
through 1.0.0
1.1.0
vite
TuxCare:npm
From an advisory covering 3 CVEs
6.4.2-tuxcare.0 up to 6.4.2-tuxcare.6, plus listed versions
6.4.26.4.2-tuxcare.16.4.2-tuxcare.26.4.2-tuxcare.36.4.2-tuxcare.46.4.2-tuxcare.5
6.4.2-tuxcare.6
vite
TuxCare:npm
4.5.0-tuxcare.0 up to 4.5.0-tuxcare.6, plus listed versions
4.5.04.5.0-tuxcare.14.5.0-tuxcare.24.5.0-tuxcare.34.5.0-tuxcare.44.5.0-tuxcare.5
4.5.0-tuxcare.6
vite
TuxCare:npm
From an advisory covering 2 CVEs
5.4.10-tuxcare.0 up to 5.4.10-tuxcare.5, plus listed versions
5.4.105.4.10-tuxcare.15.4.10-tuxcare.25.4.10-tuxcare.35.4.10-tuxcare.4
5.4.10-tuxcare.5
vite
TuxCare:npm
From an advisory covering 2 CVEs
8.0.10-tuxcare.0 up to 8.0.10-tuxcare.2, plus listed versions
8.0.108.0.10-tuxcare.1
8.0.10-tuxcare.2
Show 23 moreShow less
Affected packages
PackageAffectedFixed
vite
TuxCare:npm
From an advisory covering 2 CVEs
8.0.12-tuxcare.0 up to 8.0.12-tuxcare.2, plus listed versions
8.0.128.0.12-tuxcare.1
8.0.12-tuxcare.2
vite
TuxCare:npm
From an advisory covering 2 CVEs
7.3.3-tuxcare.0 up to 7.3.3-tuxcare.3, plus listed versions
7.3.37.3.3-tuxcare.17.3.3-tuxcare.2
7.3.3-tuxcare.3
vite
TuxCare:npm
From an advisory covering 2 CVEs
4.5.14-tuxcare.0 up to 4.5.14-tuxcare.6, plus listed versions
4.5.144.5.14-tuxcare.14.5.14-tuxcare.24.5.14-tuxcare.34.5.14-tuxcare.44.5.14-tuxcare.5
4.5.14-tuxcare.6
vite
TuxCare:npm
From an advisory covering 2 CVEs
3.2.11-tuxcare.0 up to 3.2.11-tuxcare.8, plus listed versions
3.2.113.2.11-tuxcare.13.2.11-tuxcare.23.2.11-tuxcare.33.2.11-tuxcare.43.2.11-tuxcare.53.2.11-tuxcare.63.2.11-tuxcare.7
3.2.11-tuxcare.8
vite
TuxCare:npm
From an advisory covering 2 CVEs
5.0.12-tuxcare.0 up to 5.0.12-tuxcare.8, plus listed versions
5.0.125.0.12-tuxcare.15.0.12-tuxcare.25.0.12-tuxcare.35.0.12-tuxcare.45.0.12-tuxcare.55.0.12-tuxcare.65.0.12-tuxcare.7
5.0.12-tuxcare.8
vite
TuxCare:npm
From an advisory covering 2 CVEs
8.0.9-tuxcare.0 up to 8.0.9-tuxcare.2, plus listed versions
8.0.98.0.9-tuxcare.1
8.0.9-tuxcare.2
vite
TuxCare:npm
From an advisory covering 2 CVEs
7.3.2-tuxcare.0 up to 7.3.2-tuxcare.2, plus listed versions
7.3.27.3.2-tuxcare.1
7.3.2-tuxcare.2
vite
TuxCare:npm
From an advisory covering 2 CVEs
2.9.18-tuxcare.0 up to 2.9.18-tuxcare.5, plus listed versions
2.9.182.9.18-tuxcare.12.9.18-tuxcare.22.9.18-tuxcare.32.9.18-tuxcare.4
2.9.18-tuxcare.5
vite
TuxCare:npm
From an advisory covering 2 CVEs
6.4.3-tuxcare.0 up to 6.4.3-tuxcare.2, plus listed versions
6.4.36.4.3-tuxcare.1
6.4.3-tuxcare.2
vite
TuxCare:npm
From an advisory covering 4 CVEs
4.1.5-tuxcare.0 up to 4.1.5-tuxcare.4, plus listed versions
4.1.54.1.5-tuxcare.14.1.5-tuxcare.24.1.5-tuxcare.3
4.1.5-tuxcare.4
vite
npm
8.3.0 up to 8.3.3
8.3.3
vite
npm
8.2.0 up to 8.2.4
8.2.4
vite
npm
8.0.0 up to 8.1.6
8.1.6
vite
npm
7.0.0 up to 7.3.7
7.3.7
vite
npm
before 6.4.4
6.4.4
vite-plus
npm
before 1.1.0
1.1.0
vite
Ubuntu:16.04:LTS
All versions, plus listed versions
1.2+svn1430-21.2+svn1430-31.2+svn1430-41.2+svn1430-5
None known
vite
Ubuntu:18.04:LTS
All versions, plus listed versions
1.2+svn1430-51.2+svn1430-6
None known
vite
Ubuntu:20.04:LTS
All versions, plus listed versions
1.2+svn1430-61.2+svn1430-6build1
None known
vite
Ubuntu:22.04:LTS
All versions, plus listed versions
1.2+svn+git4.c6c0ce7-31.2+svn+git4.c6c0ce7-4
None known
vite
Ubuntu:24.04:LTS
All versions, plus listed versions
1.2+svn+git4.c6c0ce7-81.2+svn+git4.c6c0ce7-8build11.2+svn+git4.c6c0ce7-8build2
None known
vite
Ubuntu:26.10
All versions, plus listed versions
1.4-61.4-6build1
None known
vite
Ubuntu:26.04:LTS
All versions, plus listed versions
1.4-11.4-51.4-5build11.4-6
None known

History

History
RecordedChangedSources
affected
factsOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-112946 is a medium vulnerability (CVSS 6.3) in Vitejs Vite, published October 20, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.85%, the 58th percentile. Fixed in vite 8.3.3.

References

Show 11 moreShow less
MoveEnter Open