CVE-2024-45811: vitejs vite
Vulnerability summary
CVE-2024-45811 is a medium (CVSS 4.8) vulnerability in vitejs vite. EPSS estimates a 1.10% chance of exploitation in the next 30 days, higher than 65% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 3Timeline
- 17-09-2024PublishedVulnerability first disclosed.
- 18-09-2024Last modifiedVulnerability information updated.
Description
Vite a frontend build tooling framework for javascript. In affected versions the contents of arbitrary files can be returned to the browser. `@fs` denies access to files outside of Vite serving allow list. Adding `?import&raw` to the URL bypasses this limitation and returns the file content if it exists. This issue has been patched in versions 5.4.6, 5.3.6, 5.2.14, 4.5.5, and 3.2.11. Users are advised to upgrade. There are no known workarounds for this vulnerability.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · WolfiEcosystem advisory · calculated4.8MediumCVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
- OSV · NpmEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated4.8MediumCVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
- NVDNIST4.8MediumCVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
EPSS trend
Probability
1.10%
Chance of exploitation in the next 30 days
Percentile
65%
Versus all other CVEs
30-day change
+0.04 pp
From 1.06% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-200Exposure of Sensitive Information to an Unauthorized ActorThe product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
- CWE-284Improper Access ControlThe product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.
Affected systems
Chainguard1 product
- vite< 5.4.6-r0
Npm1 product
- vite≥ 5.4.0, < 5.4.6 | ≥ 5.3.0, < 5.3.6 | ≥ 5.2.0, < 5.2.14 | ≥ 4.0.0, < 4.5.4 | < 3.2.11 | ≥ 5.0.0, < 5.1.8
Vitejs1 product
- vite≥ 5.4.0, < 5.4.6 | ≥ 5.3.0, < 5.3.6 | ≥ 5.0.0, < 5.2.14 | ≥ 4.0.0, < 4.5.5 | < 3.2.11
Wolfi1 product
- vite< 5.4.6-r0
4 vendors · 4 products
References
9 links- github.com/vitejs/vitePACKAGE