# CVE-2025-58752: Vite's \`server.fs\` settings were not applied to HTML files

- Priority: **Routine**
- Reason: Not severe (CVSS 2.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-09-08 · Modified: 2025-09-09
- Aliases: CGA-234j-9f66-ccqx, CGA-34cf-7rqw-86cp, CGA-3xf5-qp7j-v2vp, CGA-5gqr-xpjx-vvrr, CGA-j28f-5jhh-5cpm, CGA-jxx6-83xf-5cwp, CGA-qvxw-4cqv-chqh, CGA-r8p8-mp92-v67j, CGA-xfgw-8qjj-fwjr, GHSA-jqfw-vq24-v9c3, CGA-2xfq-w8x5-w5wc, CGA-36qx-w62c-8827, CGA-3r59-f8qj-5x77, CGA-4xvh-v76f-xfg4, CGA-57qr-cjq6-cmgh, CGA-5h6m-4h54-wr9x, CGA-5ph8-h5jh-gxp6, CGA-9jmm-6936-qqj4, CGA-h77v-j8h9-568g, CGA-mgp3-w37q-q664, CGA-mrf5-h3g9-xx68, CGA-vc78-6x32-qg3x, CGA-vf9c-rg36-j6r2, CGA-vvw4-mr4r-2pmg, CGA-w7px-cvxc-4jfq, CGA-wh44-mcmw-f9ff
- Record: https://cvemate.com/vulnerability/CVE-2025-58752 · JSON: https://cvemate.com/vulnerability/CVE-2025-58752/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- EPSS: 0.656%, percentile 52.823%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- chainguard gitlab-rails-ce-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): All versions (No fix recorded)
- chainguard langfuse-2-worker (Chainguard): \< 2.95.12-r26
- chainguard langfuse-3-compat (Chainguard): \< 3.225.7-r6
- chainguard langfuse-3-worker (Chainguard): \< 3.179.1-r3
- chainguard langfuse-fips-2-worker (Chainguard): \< 2.95.12-r28
- chainguard langfuse-fips-3-worker (Chainguard): \< 3.179.1-r2
- chainguard vitess-21 (Chainguard): All versions (No fix recorded)
- chainguard vitess-22 (Chainguard): \< 22.0.2-r0 \| \< 22.0.1-r7
- chainguard vitess-23 (Chainguard): \< 23.0.0-r2
- chainguard vitess-23-binaries (Chainguard): \< 23.0.0-r2
- chainguard vitess-23-compat (Chainguard): \< 23.0.0-r2
- wolfi langfuse-3-compat (Wolfi): \< 3.225.7-r6
- wolfi langfuse-3-worker (Wolfi): \< 3.179.1-r3
- wolfi vitess-23 (Wolfi): \< 23.0.0-r2
- wolfi vitess-23-binaries (Wolfi): \< 23.0.0-r2
- wolfi vitess-23-compat (Wolfi): \< 23.0.0-r2
- Npm vite (Npm): ≥ 7.1.0, \< 7.1.5 \| ≥ 7.0.0, \< 7.0.7 \| ≥ 6.0.0, \< 6.3.6 \| \< 5.4.20
- vitejs vite: \< 5.4.20 \| ≥ 6.0.0, \< 6.3.6 \| ≥ 7.0.0, \< 7.0.7 \| ≥ 7.1.0, \< 7.1.5

## References

- <https://github.com/vitejs/vite/security/advisories/GHSA-jqfw-vq24-v9c3>
- <https://github.com/vitejs/vite/commit/0ab19ea9fcb66f544328f442cf6e70f7c0528d5f>
- <https://github.com/vitejs/vite/commit/14015d794f69accba68798bd0e15135bc51c9c1e>
- <https://github.com/vitejs/vite/commit/482000f57f56fe6ff2e905305100cfe03043ddea>
- <https://github.com/vitejs/vite/commit/6f01ff4fe072bcfcd4e2a84811772b818cd51fe6>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58752.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-58752>
- <https://github.com/vitejs/vite>
- <https://github.com/vitejs/vite/blob/v7.1.5/packages/vite/CHANGELOG.md>

---

Data as of 2026-12-05T08:15:40.782Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
