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

CVE-2025-31125
MEDIUM 5.3CISA KEV β†—Exploited per ENISA since 2026-01-22

At a glance

Source
NVD
EPSS
EPSS 74.94 % Β· percentile 100 ()
State
PUBLISHED
Published
Updated
Assigner
GitHub_M
Affected products
vitejs Β· vite
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-200 β€” Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-284 β€” Improper Access Control

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.3CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:NGitHub_M
CVSS 3.1MEDIUM 5.3CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:NNVD Β· security-advisories@github.com (Secondary)
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NNVD Β· nvd@nist.gov (Primary)

Advisories

European references

Affected configurations (NVD CPE)

Affected products

ProductAffected versions
vitejs Β· vite
affected : >= 6.2.0, < 6.2.4
affected : >= 6.1.0, < 6.1.3
affected : >= 6.0.0, < 6.0.13
affected : >= 5.0.0, < 5.4.16
affected : < 4.5.11

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
CISA Known Exploited VulnerabilitiesCC0 1.0
EPSS (FIRST.org)FIRST β€” attribution requested
ENISA EUVDENISA β€” reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain β€” this product uses data from the NVD API but is not endorsed or certified by the NVD