CVSS 3.1
5.9 mediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NMedium (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.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:Nvite (npm): fixed in 2.9.18, 3.2.10, 4.5.3, 5.0.13, 5.1.7, 5.2.6Explain 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.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| 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 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-8jhw-289h-jh2g | npm | vite | >=2.7.0 <2.9.18 | 2.9.18 |
| GHSA-8jhw-289h-jh2g | npm | vite | >=3.0.0 <3.2.10 | 3.2.10 |
| GHSA-8jhw-289h-jh2g | npm | vite | >=4.0.0 <4.5.3 | 4.5.3 |
| GHSA-8jhw-289h-jh2g | npm | vite | >=5.0.0 <5.0.13 | 5.0.13 |
| GHSA-8jhw-289h-jh2g | npm | vite | >=5.1.0 <5.1.7 | 5.1.7 |
| GHSA-8jhw-289h-jh2g | npm | vite | >=5.2.0 <5.2.6 | 5.2.6 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| openSUSE | Tumbleweed | velociraptor | 0.7.0.4.git142.862ef23-1.1 | openSUSE-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 rates this Moderate.
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.
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.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Automation Platform 2 | automation-controller | Not affected | |
| Red Hat Build of Keycloak | org.keycloak-keycloak-parent | Not affected | |
| Red Hat JBoss Enterprise Application Platform 8 | org.keycloak-keycloak-parent | Not 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.
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).