CVE-2025-31125

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

Published Mar 31, 2025 CVSS 3.1 · 5.3 Medium EPSS 74.9% KEV · Listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-8866 Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
Github GHSA Github GHSA GHSA-4r4m-qw57-chr8 Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'active', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'active', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

kev

{'dateAdded': '2026-01-22T00:00:00+00:00', 'dueDate': '2026-02-12T00:00:00+00:00'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'active', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
Type Values Removed Values Added
Metrics epss

{'score': 0.08564}

epss

{'score': 0.08688}

Type Values Removed Values Added
Metrics epss

{'score': 0.10806}

epss

{'score': 0.08564}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
Weaknesses CWE-200
CWE-284
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N'}

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jan 23, 2026, 4:58 PM
Reserved
Mar 26, 2025, 3:04 PM
Status
Analyzed
Published
Mar 31, 2025, 5:15 PM
Modified
Jun 17, 2026, 9:09 AM
Severity
Moderate
Public date
Mar 31, 2025, 5:06 PM