Skip to content
OpenAdvisories
Medium · 5.3 Known exploited Scanner template Public exploit CVE-2025-31125 EUVD-2025-8866GHSA-4r4m-qw57-chr8

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

Published Mar 31, 2025 · Updated Jan 23, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
vitejs vite >= 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 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 4 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
npm vite >= 6.2.0, < 6.2.4 6.2.4 GHSA-4r4m-qw57-chr8
npm vite >= 6.1.0, < 6.1.3 6.1.3 GHSA-4r4m-qw57-chr8
npm vite >= 6.0.0, < 6.0.13 6.0.13 GHSA-4r4m-qw57-chr8
npm vite >= 5.0.0, < 5.4.16 5.4.16 GHSA-4r4m-qw57-chr8
npm vite < 4.5.11 4.5.11 GHSA-4r4m-qw57-chr8

References