Vite: `server.fs.deny` bypassed with queries
Vite is a frontend tooling framework for JavaScript. From 6.4.4 until 6.4.5, the Vite development server can evaluate server.fs.deny before stripping loader query parameters such as ?raw, ?import&raw, or ?import&url&inline. When the development server is exposed to the network and a sensitive file is inside server.fs.allow but matched by server.fs.deny, an unauthenticated attacker can append one of these queries and retrieve the denied file. This issue is fixed in version 6.4.5.
- Products
- vite
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-118662
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 17:45 UTC · Revision 1
Source evidence
Vite: `server.fs.deny` bypassed with queries
core-cve · Original sourcePublished 28 Oct 2026, 20:33 UTC
Vite is a frontend tooling framework for JavaScript. From 6.4.4 until 6.4.5, the Vite development server can evaluate server.fs.deny before stripping loader query parameters such as ?raw, ?import&raw, or ?import&url&inline. When the development server is exposed to the network and a sensitive file is inside server.fs.allow but matched by server.fs.deny, an unauthenticated attacker can append one of these queries and retrieve the denied file. This issue is fixed in version 6.4.5.
cve:CVE-2026-118662
vite
Fixed versions: Not specified
Complete source record
{
"id": "d2be3c7e131fdb2efc6d4d0d7f0926ff85179c3e2b27e8164eebbd97a940a54a",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-118662",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Vite: `server.fs.deny` bypassed with queries",
"summary": "Vite is a frontend tooling framework for JavaScript. From 6.4.4 until 6.4.5, the Vite development server can evaluate server.fs.deny before stripping loader query parameters such as ?raw, ?import&raw, or ?import&url&inline. When the development server is exposed to the network and a sensitive file is inside server.fs.allow but matched by server.fs.deny, an unauthenticated attacker can append one of these queries and retrieve the denied file. This issue is fixed in version 6.4.5.",
"evidence": "cve:CVE-2026-118662",
"products": [
{
"name": {
"value": "vite",
"evidence": "/containers/cna/affected/0/product"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2026-118662",
"aliases": [
"CVE-2026-118662"
],
"metrics": [
{
"cvssV4_0": {
"version": "4.0",
"baseScore": 6.9,
"attackVector": "NETWORK",
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:N/SA:N",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"privilegesRequired": "NONE",
"subIntegrityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"subAvailabilityImpact": "NONE",
"vulnAvailabilityImpact": "NONE",
"subConfidentialityImpact": "HIGH",
"vulnConfidentialityImpact": "LOW"
}
}
],
"affected": [
{
"vendor": "vitejs",
"product": "vite",
"versions": [
{
"status": "affected",
"version": ">= 6.4.4, < 6.4.5"
}
]
}
],
"modified": "2026-10-28T20:33:36.440Z",
"provider": "cve",
"references": [
"https://github.com/vitejs/vite/security/advisories/GHSA-8g5g-mxqh-grgj",
"https://github.com/vitejs/vite/pull/22160",
"https://github.com/vitejs/vite/pull/23855",
"https://github.com/vitejs/vite/commit/91e40d7bf9777057bbd31c3eb036a54c9465697e",
"https://github.com/vitejs/vite/releases/tag/v6.4.5"
],
"provider_metadata": {
"cna": {
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M",
"dateUpdated": "2026-10-28T20:33:36.440Z"
}
}
},
"related_cves": [
{
"value": "CVE-2026-118662",
"evidence": "/cveMetadata/cveId"
}
],
"security_relevant": true,
"severity_evidence": "/containers/cna/metrics"
},
"source_id": "core-cve",
"document_id": 487931,
"published_at": "2026-10-28T20:33:36.44+00:00"
}