cve.bz

CVE-2026-112946 vitejs: Path traversal

6.3 mediumEPSS 0.9%Fix available

Medium (6.3) in vitejs. EPSS 0.9% estimated probability of exploitation activity in the next 30 days. Fixed in vite 6.4.4, 7.3.7, 8.1.6.

On this page
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.

Severity

CVSS 4.0

6.3 medium
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
EPSS
0.9% (unchanged from 0.9% a week ago) estimated probability of exploitation activity in the next 30 days; 59th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-10-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
CWE-284 Improper Access Control
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • vite (npm): fixed in 8.3.3, 8.2.4, 8.1.6, 7.3.7, 6.4.4
  • vite-plus (npm): fixed in 1.1.0

Ask an AI about this CVE

Show the promptExplain CVE-2026-112946 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-112946?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-112946?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-112946 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
vitejs vite>= 8.3.0, < 8.3.3
vitejs vite>= 8.2.0, < 8.2.4
vitejs vite>= 8.0.0, < 8.1.6
vitejs vite>= 7.0.0, < 7.3.7
vitejs vite< 6.4.4
vitejs vite-plus< 1.1.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rq7h-c2jc-7f22npmvite>=8.3.0 <8.3.38.3.3
GHSA-rq7h-c2jc-7f22npmvite>=8.2.0 <8.2.48.2.4
GHSA-rq7h-c2jc-7f22npmvite>=8.0.0 <8.1.68.1.6
GHSA-rq7h-c2jc-7f22npmvite>=7.0.0 <7.3.77.3.7
GHSA-rq7h-c2jc-7f22npmvite<6.4.46.4.4
GHSA-rq7h-c2jc-7f22npmvite-plus<1.1.01.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 4 moreviteno fix listedUBUNTU-CVE-2026-112946

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This vulnerability is rated with a Low severity because it solely affects the development server under non-default, highly specific conditions rather than production application deployments. In Red Hat products, Vite is primarily utilized as a build-time asset bundler where the development web server is not exposed over a network. Exploitation further requires that an imported project file path identically mirrors an existing host filesystem path, significantly restricting the scope and likelihood of unauthorized file access.

Red Hat's mitigation

Avoid exposing the Vite development server to external networks and restrict access to sensitive host paths.

1. Bind the development server to localhost:

Ensure the Vite development server does not listen on public interfaces by omitting the `--host` CLI flag or setting the host explicitly in `vite.config.js`:

```javascript

export default {

server: {

host: '127.0.0.1'

}

};

```

2. Deny sensitive filesystem paths:

Configure `server.fs.deny` in `vite.config.js` to block requests for sensitive system files and directories:

```javascript

export default {

server: {

fs: {

deny: ['/etc/**', '/root/**', '/home/**']

}

}

};

```

3. Restrict network access via firewall:

If the server must run on a networked machine, restrict network access to the development port (default 5173):

```bash

firewall-cmd --permanent --remove-port=5173/tcp

firewall-cmd --reload

```

Caveats: Binding strictly to localhost prevents remote access to development previews. Restricting filesystem paths via `server.fs.deny` can block legitimate project dependencies if located in denied paths. Reloading the firewall configuration will momentarily interrupt active connections.

ProductPackageStateAdvisory
Red Hat AMQ Broker 7amq-broker-bin.zipFix deferred
Red Hat AMQ Broker 7amq-broker-maven-repository.zipFix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/gateway-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/gateway-rhel9Fix deferred
Red Hat Ansible Automation Platform 2automation-controllerOut of support scope
Red Hat Ansible Automation Platform 2automation-eda-controllerOut of support scope
Red Hat Ansible Automation Platform 2automation-gatewayOut of support scope
Red Hat Ansible Automation Platform 2automation-platform-uiFix deferred
Red Hat Build of Keycloakkeycloak-operator.redhat-00001.zipFix deferred
Red Hat Build of Keycloakkeycloak-operator.redhat-00003.zipFix deferred
Red Hat Build of Keycloakrhbk-quarkus-dist.zipFix deferred
Red Hat Build of Podman Desktoprh-podman-desktopFix deferred
Red Hat Hardened Imagesgrafana13.2Not affected
Red Hat Hardened Imagesprometheus3.13Not affected
Red Hat JBoss Enterprise Application Platform 8jboss-eap.1-runtime-maven-repository.zipFix deferred
Red Hat JBoss Enterprise Application Platform 8jboss-eap-runtime-maven-repository.zipFix deferred
Red Hat JBoss Enterprise Application Platform Expansion Packjboss-eap.1-runtime-maven-repository.zipFix deferred
Red Hat JBoss Enterprise Application Platform Expansion Packjboss-eap-runtime-maven-repository.zipFix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-feature-server-rhel9Fix deferred
Red Hat OpenShift Dev Spacesdevspaces/openvsx-rhel9Fix deferred
1 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-112946.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-284 (17).

References

Check your stackJSON