CVE-2025-58751
Vite middleware may serve files starting with the same name with the public directory
Vite is a frontend tooling framework for JavaScript. Prior to versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20, files starting with the same name with the public directory were served bypassing the `server.fs` settings. Only apps that explicitly expose the Vite dev server to the network (using --host or `server.host` config option), use the public directory feature (enabled by default), and have a symlink in the public directory are affected. Versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20 fix the issue.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.263% · 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-19T15:55:09.885Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 2.3 · published by GitHub_MCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Assessment source · checked 2026-11-19T12:57:41.183Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T15:55:09.885Z | CISA KEV |
| cvss | verified | 2026-11-19T12:57:41.183Z | CVE Program |
| epss | verified | 2026-11-19T16:04:41.864Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:51:58.234Z | OSV |
| affected | verified | 2026-11-19T12:57:41.183Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:41.183Z | CVE Program |
Affected versions and configuration
vitejs vite; default status: unknown: < 5.4.20 [affected; scheme: unspecified]; >= 6.0.0, < 6.3.6 [affected; scheme: unspecified]; >= 7.0.0, < 7.0.7 [affected; scheme: unspecified]; >= 7.1.0, < 7.1.5 [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": "< 5.4.20"
},
{
"status": "affected",
"version": ">= 6.0.0, < 6.3.6"
},
{
"status": "affected",
"version": ">= 7.0.0, < 7.0.7"
},
{
"status": "affected",
"version": ">= 7.1.0, < 7.1.5"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2025-58751",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-09-09T13:14:11.634879Z"
}
}
}
],
"references": [
{
"url": "https://github.com/vitejs/vite/security/advisories/GHSA-g4jq-h2w9-997c",
"tags": [
"exploit"
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-09-09T13:29:36.802Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-g4jq-h2w9-997c",
"aliases": [
"CVE-2025-58751"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "7.1.0"
},
{
"fixed": "7.1.5"
}
]
}
],
"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/09/GHSA-g4jq-h2w9-997c/GHSA-g4jq-h2w9-997c.json",
"last_known_affected_version_range": "<= 7.1.4"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "7.0.0"
},
{
"fixed": "7.0.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/09/GHSA-g4jq-h2w9-997c/GHSA-g4jq-h2w9-997c.json",
"last_known_affected_version_range": "<= 7.0.6"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "6.0.0"
},
{
"fixed": "6.3.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/09/GHSA-g4jq-h2w9-997c/GHSA-g4jq-h2w9-997c.json",
"last_known_affected_version_range": "<= 6.3.5"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "5.4.20"
}
]
}
],
"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/09/GHSA-g4jq-h2w9-997c/GHSA-g4jq-h2w9-997c.json",
"last_known_affected_version_range": "<= 5.4.19"
}
}
],
"severity": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/vitejs/vite/security/advisories/GHSA-g4jq-h2w9-997c",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-58751",
"type": "ADVISORY"
},
{
"url": "https://github.com/lukeed/sirv/commit/f0113f3f8266328d804ee808f763a3c11f8997eb",
"type": "WEB"
},
{
"url": "https://github.com/vitejs/vite/commit/09f2b52e8d5907f26602653caf41b3a56692600d",
"type": "WEB"
},
{
"url": "https://github.com/vitejs/vite/commit/4f1c35bcbb5830290c694aa14b6789e07450f069",
"type": "WEB"
},
{
"url": "https://github.com/vitejs/vite/commit/63e2a5d232218f3f8d852056751e609a5367aaec",
"type": "WEB"
},
{
"url": "https://github.com/vitejs/vite/commit/e11d24008b97d4ca731ecc1a3b95260a6d12e7e0",
"type": "WEB"
},
{
"url": "https://github.com/vitejs/vite",
"type": "PACKAGE"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-200",
"CWE-22",
"CWE-284"
],
"severity": "LOW",
"github_reviewed": true,
"nvd_published_at": "2025-09-08T23:15:36Z",
"github_reviewed_at": "2025-09-09T20:55:56Z"
}
}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 | 7.1.5 | Official record |
| ecosystem-boundary | npm / package | vite | Not a distribution channel | 7.0.7 | Official record |
| ecosystem-boundary | npm / package | vite | Not a distribution channel | 6.3.6 | Official record |
| ecosystem-boundary | npm / package | vite | Not a distribution channel | 5.4.20 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:51:58.234ZArchived source JSON
Source publication: 2025-09-09T20:55:56.000Z
Source modification: 2026-09-10T03:50:28.405ZDocument fingerprint
18ee2ac2ac93eab49131193db51d1c75d04979859dfd42d9bef2e8f57776c368 - CVE ProgramConsulted: 2026-11-19T12:57:41.183ZArchived source JSON
Source publication: 2025-09-08T22:52:45.667Z
Source modification: 2025-09-09T13:29:36.802ZDocument fingerprint
3b63fbcecd14f5ebb508f773630f19a589423336604eb5c2442229e340e7e7df - CISA KEVConsulted: 2026-11-19T15:55:09.885ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:41.864ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
09df03f9e4ac0890671b481adc15352105826dd59b4f13294f3708bead65ab2a
Official status history
- UNKNOWN → PUBLISHED · · evidence