# CVE-2025-31125: Vite Vitejs Improper Access Control Vulnerability

- Priority: **Act now**
- Reason: Listed as exploited by CISA (22-01-2026)
- Next step: Check applicability: affected before 4.5.11, 5.4.16, 6.0.13, 6.1.3, 6.2.4 (CNA); fix release not confirmed
- Status: published
- Published: 2025-03-31 · Modified: 2026-01-23
- Aliases: GHSA-4r4m-qw57-chr8, CGA-263v-cc49-26mj, CGA-4896-x53g-6fgm, CGA-8552-282p-qpj2, CGA-q93q-3rhq-qgm9
- Record: https://cvemate.com/vulnerability/CVE-2025-31125 · JSON: https://cvemate.com/vulnerability/CVE-2025-31125/json

## Description

```text
Vite is a frontend tooling framework for javascript. Vite exposes content of non-allowed files using ?inline&import or ?raw?import. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. This vulnerability is fixed in 6.2.4, 6.1.3, 6.0.13, 5.4.16, and 4.5.11.
```

## Signals

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

## Affected

- chainguard langfuse-2-worker (Chainguard): \< 2.95.12-r26
- chainguard langfuse-fips-2-worker (Chainguard): \< 2.95.12-r28
- Npm vite (Npm): ≥ 6.2.0, \< 6.2.4 \| ≥ 6.1.0, \< 6.1.3 \| ≥ 6.0.0, \< 6.0.13 \| ≥ 5.0.0, \< 5.4.16 \| \< 4.5.11
- vitejs vite: \< 4.5.11 \| ≥ 5.0.0, \< 5.4.16 \| ≥ 6.0.0, \< 6.0.13 \| ≥ 6.1.0, \< 6.1.3 \| ≥ 6.2.0, \< 6.2.4

## References

- <https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8>
- <https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949>
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-31125>
- <https://github.com/vitejs/vite>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31125.json>

---

Data as of 2026-12-05T10:18:28.462Z. 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
