Skip to main content

Vite

Vite Vitejs Access Control Flaw Vulnerability

CVE-2025-31125

What this means

This is rated medium severity (5.3 out of 10). It is on the known-exploited catalogue, which means attacks using it have already been seen. Ask IT whether Vitejs Vite is in your estate.

Full vendor 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.

Scoring and exploitation

5.3/ 10
CVSS 3.1 base scoreMedium

Exploitable over the network without any account, under specific conditions, but only if a user takes an action, such as opening a file or link. High impact on confidentiality.

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

Exploitability

Longer bar: easier to attack

Attack vectorNetworkAV:N
Attack complexityHighAC:H
Privileges requiredNonePR:N
User interactionRequiredUI:R
ScopeUnchangedS:U

Impact

Longer bar: more harm

ConfidentialityHighC:H
IntegrityNoneI:N
AvailabilityNoneA:N
Elevated attack likelihood (~74.9% in 30 days)Model estimate (): a probability signal, not confirmed exploitation
Exploited in the wild
Yes — confirmed exploitation (US CISA )
Not reported
Listed product
Vitejs

Weaknesses

CWE-200CWE-284NVD-CWE-noinfo

Affected products ()

  • Vitejs Vite
Show the raw CPE strings (1)
  • cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*

References

4 links from the CVE record, grouped by site; the vendor's advisory comes first.

  • Type Vulnerability

    Vite Vitejs contains an improper access control vulnerability that exposes content of non-allowed files using?. Known-exploited catalogue reports exploitation in the wild.

    CVE-2025-31125