ADVISORIES

Vulnerability

CVE-2025-31125

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.

5 advisories report this vulnerability, across 2 ecosystems.

Medium severity Known exploited All Chainguard 4npm 1

Advisories

  • CGA-263v-cc49-26mj
    Known exploited CVE-2025-31125 Chainguard Updated 5 November 2026
  • CGA-4896-x53g-6fgm
    Known exploited CVE-2025-31125 Chainguard Updated 5 November 2026
  • CGA-8552-282p-qpj2
    Known exploited CVE-2025-31125 Chainguard Updated 5 November 2026
  • CGA-q93q-3rhq-qgm9
    Known exploited CVE-2025-31125 Chainguard Updated 5 November 2026
  • GHSA-4r4m-qw57-chr8

    Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query

    Moderate Known exploited CVE-2025-31125 npm Updated 10 September 2026

References