Skip to content
Threat Brief

← All advisories

CVE-2025-31125

Medium 5.3KEV · exploitedFix status unknown

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

Record last updated

CVSS score

5.3

Medium on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

75%

Among the highest-scored CVEs. A prediction, not evidence.

CISA remediation deadline

282days overdue

Passed 282 days ago for U.S. federal agencies

Description

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.

Weakness: CWE-200, CWE-284

Patching and mitigation

Patch status
Unknown: no source documents a fix
Mitigation
None documented
Vendor guidance
github.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
ViteVitejsNot documentedNot documentedCISA KEV
vitejsvite< 4.5.11Not documentedCVE Program
vitejsvite>= 5.0.0, < 5.4.16Not documentedCVE Program
vitejsvite>= 6.0.0, < 6.0.13Not documentedCVE Program
vitejsvite>= 6.1.0, < 6.1.3Not documentedCVE Program
vitejsvite>= 6.2.0, < 6.2.4Not documentedCVE Program

Timeline

  1. Disclosure

    CVE record published by GitHub_M

    Source: CVE Program (opens in a new tab)

  2. 22 Jan 2026KEV

    Added to the CISA Known Exploited Vulnerabilities catalog

    Source: CISA KEV (opens in a new tab)

  3. 22 Jan 2026Exploitation

    Exploitation confirmed by CISA KEV

    Source: CISA KEV (opens in a new tab)

Vendor guidance and references