cve.bz

CVE-2024-31207 vitejs vite: Improper Access Control

5.9 mediumEPSS 0.7%Fix available

Medium (5.9) in vitejs vite. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in vite 2.9.18, 3.2.10, 4.5.3.

On this page
Vite (French word for "quick", pronounced /vit/, like "veet") is a frontend build tooling to improve the frontend development experience.`server.fs.deny` does not deny requests for patterns with directories. This vulnerability has been patched in version(s) 5.2.6, 5.1.7, 5.0.13, 4.5.3, 3.2.10 and 2.9.18.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 54th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-04-04. 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-200 Exposure of Sensitive Information to an Unauthorized Actor
CWE-284 Improper Access Control
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-31207 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-31207?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-31207?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-2024-31207 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>= 2.7.0, <= 2.9.17
vitejs vite>= 3.0.0, <= 3.2.8
vitejs vite>= 4.0.0, <= 4.5.2
vitejs vite>= 5.0.0, <= 5.0.12
vitejs vite>= 5.1.0, <= 5.1.6
vitejs vite>= 5.2.0, <= 5.2.5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8jhw-289h-jh2gnpmvite>=2.7.0 <2.9.182.9.18
GHSA-8jhw-289h-jh2gnpmvite>=3.0.0 <3.2.103.2.10
GHSA-8jhw-289h-jh2gnpmvite>=4.0.0 <4.5.34.5.3
GHSA-8jhw-289h-jh2gnpmvite>=5.0.0 <5.0.135.0.13
GHSA-8jhw-289h-jh2gnpmvite>=5.1.0 <5.1.75.1.7
GHSA-8jhw-289h-jh2gnpmvite>=5.2.0 <5.2.65.2.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
openSUSETumbleweedvelociraptor0.7.0.4.git142.862ef23-1.1openSUSE-SU-2025:14663-1

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue is considered of moderate severity due to its potential to expose sensitive files or directories under specific conditions. The vulnerability arises when a custom server.fs.deny pattern including directories, such as /foo/**/*, fails to block access as intended. This flaw can only be exploited if the Vite dev server is explicitly exposed to the network via the --host or server.host options. Therefore, the issue requires both a specific server configuration and intentional network exposure, which mitigates the likelihood of widespread exploitation but still poses a significant risk in environments where these conditions are met, potentially leading to unauthorized access to sensitive data.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2automation-controllerNot affected
Red Hat Build of Keycloakorg.keycloak-keycloak-parentNot affected
Red Hat JBoss Enterprise Application Platform 8org.keycloak-keycloak-parentNot affected

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-2024-31207.

Attack patterns (CAPEC)

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), CWE-200 (59).

References

Check your stackJSON