CVE-2025-58752
Vite's `server.fs` settings were not applied to HTML files
Vite is a frontend tooling framework for JavaScript. Prior to versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20, any HTML files on the machine were served regardless of the `server.fs` settings. Only apps that explicitly expose the Vite dev server to the network (using --host or server.host config option) and use `appType: 'spa'` (default) or `appType: 'mpa'` are affected. This vulnerability also affects the preview server. The preview server allowed HTML files not under the output directory to be served. 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: 0.608% · 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.259Z
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.259Z | 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.259Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:41.259Z | 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-58752",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-09-09T13:13:50.971669Z"
}
}
}
],
"references": [
{
"url": "https://github.com/vitejs/vite/security/advisories/GHSA-jqfw-vq24-v9c3",
"tags": [
"exploit"
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-09-09T13:29:30.868Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-jqfw-vq24-v9c3",
"aliases": [
"CVE-2025-58752"
],
"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-jqfw-vq24-v9c3/GHSA-jqfw-vq24-v9c3.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-jqfw-vq24-v9c3/GHSA-jqfw-vq24-v9c3.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-jqfw-vq24-v9c3/GHSA-jqfw-vq24-v9c3.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-jqfw-vq24-v9c3/GHSA-jqfw-vq24-v9c3.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-jqfw-vq24-v9c3",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-58752",
"type": "ADVISORY"
},
{
"url": "https://github.com/vitejs/vite/commit/0ab19ea9fcb66f544328f442cf6e70f7c0528d5f",
"type": "WEB"
},
{
"url": "https://github.com/vitejs/vite/commit/14015d794f69accba68798bd0e15135bc51c9c1e",
"type": "WEB"
},
{
"url": "https://github.com/vitejs/vite/commit/482000f57f56fe6ff2e905305100cfe03043ddea",
"type": "WEB"
},
{
"url": "https://github.com/vitejs/vite/commit/6f01ff4fe072bcfcd4e2a84811772b818cd51fe6",
"type": "WEB"
},
{
"url": "https://github.com/vitejs/vite",
"type": "PACKAGE"
},
{
"url": "https://github.com/vitejs/vite/blob/v7.1.5/packages/vite/CHANGELOG.md",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-200",
"CWE-23",
"CWE-284"
],
"severity": "LOW",
"github_reviewed": true,
"nvd_published_at": "2025-09-08T23:15:36Z",
"github_reviewed_at": "2025-09-09T20:54:42Z"
}
}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:54:42.000Z
Source modification: 2026-09-10T03:50:28.597ZDocument fingerprint
18ee2ac2ac93eab49131193db51d1c75d04979859dfd42d9bef2e8f57776c368 - CVE ProgramConsulted: 2026-11-19T12:57:41.259ZArchived source JSON
Source publication: 2025-09-08T22:56:58.039Z
Source modification: 2025-09-09T13:29:30.868ZDocument fingerprint
42638ae7503498220c7e33e508a04db448485bb3bb233c92cf2bdeaeba1c09db - 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