CVE-2025-46565
Vite's server.fs.deny bypassed with /. for files under project root
Vite is a frontend tooling framework for javascript. Prior to versions 6.3.4, 6.2.7, 6.1.6, 5.4.19, and 4.5.14, the contents of files in the project root that are denied by a file matching pattern can be returned to the browser. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. Only files that are under project root and are denied by a file matching pattern can be bypassed. `server.fs.deny` can contain patterns matching against files (by default it includes .env, .env.*, *.{crt,pem} as such patterns). These patterns were able to bypass for files under `root` by using a combination of slash and dot (/.). This issue has been patched in versions 6.3.4, 6.2.7, 6.1.6, 5.4.19, and 4.5.14.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.243% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:28:52.703Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 6 · published by GitHub_MCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Assessment source · checked 2026-11-19T12:57:34.181Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:28:52.703Z | CISA KEV |
| cvss | verified | 2026-11-19T12:57:34.181Z | CVE Program |
| epss | verified | 2026-11-19T16:04:40.990Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:51:58.234Z | OSV |
| affected | verified | 2026-11-19T12:57:34.181Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:34.181Z | CVE Program |
Affected versions and configuration
vitejs vite; default status: unknown: >= 6.3.0, < 6.3.4 [affected; scheme: unspecified]; >= 6.2.0, < 6.2.7 [affected; scheme: unspecified]; >= 6.0.0, < 6.1.6 [affected; scheme: unspecified]; >= 5.0.0, < 5.4.19 [affected; scheme: unspecified]; < 4.5.14 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "vitejs",
"product": "vite",
"versions": [
{
"status": "affected",
"version": ">= 6.3.0, < 6.3.4"
},
{
"status": "affected",
"version": ">= 6.2.0, < 6.2.7"
},
{
"status": "affected",
"version": ">= 6.0.0, < 6.1.6"
},
{
"status": "affected",
"version": ">= 5.0.0, < 5.4.19"
},
{
"status": "affected",
"version": "< 4.5.14"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2025-46565",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-05-02T17:38:51.291423Z"
}
}
}
],
"references": [
{
"url": "https://github.com/vitejs/vite/security/advisories/GHSA-859w-5945-r5v3",
"tags": [
"exploit"
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-05-02T17:38:55.291Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-859w-5945-r5v3",
"aliases": [
"CVE-2025-46565"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "6.3.0"
},
{
"fixed": "6.3.4"
}
]
}
],
"package": {
"name": "vite",
"purl": "pkg:npm/vite",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-859w-5945-r5v3/GHSA-859w-5945-r5v3.json",
"last_known_affected_version_range": "<= 6.3.3"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.2.7"
}
]
}
],
"package": {
"name": "vite",
"purl": "pkg:npm/vite",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-859w-5945-r5v3/GHSA-859w-5945-r5v3.json",
"last_known_affected_version_range": "<= 6.2.6"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "6.0.0"
},
{
"fixed": "6.1.6"
}
]
}
],
"package": {
"name": "vite",
"purl": "pkg:npm/vite",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-859w-5945-r5v3/GHSA-859w-5945-r5v3.json",
"last_known_affected_version_range": "<= 6.1.5"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "5.0.0"
},
{
"fixed": "5.4.19"
}
]
}
],
"package": {
"name": "vite",
"purl": "pkg:npm/vite",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-859w-5945-r5v3/GHSA-859w-5945-r5v3.json",
"last_known_affected_version_range": "<= 5.4.18"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.5.14"
}
]
}
],
"package": {
"name": "vite",
"purl": "pkg:npm/vite",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-859w-5945-r5v3/GHSA-859w-5945-r5v3.json",
"last_known_affected_version_range": "<= 4.5.13"
}
}
],
"severity": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/vitejs/vite/security/advisories/GHSA-859w-5945-r5v3",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-46565",
"type": "ADVISORY"
},
{
"url": "https://github.com/vitejs/vite/commit/c22c43de612eebb6c182dd67850c24e4fab8cacb",
"type": "WEB"
},
{
"url": "https://github.com/vitejs/vite",
"type": "PACKAGE"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-22"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2025-05-01T18:15:57Z",
"github_reviewed_at": "2025-04-30T17:40:27Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | vite | Not a distribution channel | 6.3.4 | Official record |
| ecosystem-boundary | npm / package | vite | Not a distribution channel | 6.2.7 | Official record |
| ecosystem-boundary | npm / package | vite | Not a distribution channel | 6.1.6 | Official record |
| ecosystem-boundary | npm / package | vite | Not a distribution channel | 5.4.19 | Official record |
| ecosystem-boundary | npm / package | vite | Not a distribution channel | 4.5.14 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CISA KEVConsulted: 2026-11-19T17:28:52.703ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - OSVConsulted: 2026-11-19T12:51:58.234ZArchived source JSON
Source publication: 2025-04-30T17:40:27.000Z
Source modification: 2026-09-10T03:50:23.700ZDocument fingerprint
18ee2ac2ac93eab49131193db51d1c75d04979859dfd42d9bef2e8f57776c368 - CVE ProgramConsulted: 2026-11-19T12:57:34.181ZArchived source JSON
Source publication: 2025-05-01T17:20:29.773Z
Source modification: 2025-05-02T17:38:55.291ZDocument fingerprint
f2d75a32b21ba1d63cf2bbb7cac85b889cfd676f5d133d7f2a3b3744435ccaa1 - FIRST EPSSConsulted: 2026-11-19T16:04:40.990ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
a61f5deec65b1a30b54fc6ad686dda6767c11c22f88b3bf1af4c6db9cb0d67b3
Official status history
- UNKNOWN → PUBLISHED · · evidence