VDB
GHSA-8jhw-289h-jh2g
GHSA-8jhw-289h-jh2g
PUBLISHED
CVSS 5.900000095367432 MEDIUM
Vite's `server.fs.deny` did not deny requests for patterns with directories.
Record from GitHub Advisory Database · Published April 3, 2024
vite is fixed in 5.2.6, 5.1.7, 5.0.13 and 3 more (npm)
Vite's `server.fs.deny` did not deny requests for patterns with directories.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vite | npm | 5.2.6, 5.1.7, 5.0.13, 4.5.3, 3.2.10, 2.9.18 |
Risk scores
CVSS 3.1
5.900000095367432
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected products
| Vendor | Product | Versions |
|---|---|---|
| npm | vite | 2.7.0, 3.0.0, 4.0.0 |
Timeline
- Apr 3, 2024 CVE Published
- Apr 29, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln GHSA-8jhw-289h-jh2g
vulnetix vdb fixes GHSA-8jhw-289h-jh2g
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/GHSA-8jhw-289h-jh2g/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/advisories/GHSA-8jhw-289h-jh2g advisory
- https://github.com/vitejs/vite/security/advisories/GHSA-8jhw-289h-jh2g url
- https://github.com/vitejs/vite/commit/011bbca350e447d1b499d242804ce62738c12bc0 patch
- https://github.com/vitejs/vite/commit/5a056dd2fc80dbafed033062fe6aaf4717309f48 patch
- https://github.com/vitejs/vite/commit/89c7c645f09d16a38f146ef4a1528f218e844d67 patch
- https://github.com/vitejs/vite/commit/96a7f3a41ef2f9351c46f3ab12489bb4efa03cc9 patch
- https://github.com/vitejs/vite/commit/ba5269cca81de3f5fbb0f49d58a1c55688043258 patch
- https://github.com/vitejs/vite/commit/d2db33f7d4b96750b35370c70dd2c35ec3b9b649 patch
- https://github.com/vitejs/vite url
- https://nvd.nist.gov/vuln/detail/CVE-2024-31207 advisory