cve.bz

CVE-2025-30208 vitejs vite: Improper Access Control

7.5 highExploitEPSS 75%Fix available

High (7.5) in vitejs vite. EPSS 75% estimated probability of exploitation activity in the next 30 days. Fixed in vite 4.5.10, 5.4.15, 6.0.12.

On this page
Vite, a provider of frontend development tooling, has a vulnerability in versions prior to 6.2.3, 6.1.2, 6.0.12, 5.4.15, and 4.5.10. `@fs` denies access to files outside of Vite serving allow list. Adding `?raw??` or `?import&raw??` to the URL bypasses this limitation and returns the file content if it exists. This bypass exists because trailing separators such as `?` are removed in several places, but are not accounted for in query string regexes. The contents of arbitrary files can be returned to the browser. Only apps explicitly exposing the Vite dev server to the network (using `--host` or `server.host` config option) are affected. Versions 6.2.3, 6.1.2, 6.0.12, 5.4.15, and 4.5.10 fix the issue.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
75% (unchanged from 75% a week ago; 75% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-03-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
CWE-284 Improper Access Control
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-30208 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-30208?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-30208?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-30208 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
vitejs:vitebefore 4.5.10
vitejs:vitefrom 5.0.0 before 5.4.15
vitejs:vitefrom 6.0.0 before 6.0.12
vitejs:vitefrom 6.1.0 before 6.1.2
vitejs:vitefrom 6.2.0 before 6.2.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-x574-m823-4x7wnpmvite>=6.2.0 <6.2.36.2.3
GHSA-x574-m823-4x7wnpmvite>=6.1.0 <6.1.26.1.2
GHSA-x574-m823-4x7wnpmvite>=6.0.0 <6.0.126.0.12
GHSA-x574-m823-4x7wnpmvite>=5.0.0 <5.4.155.4.15
GHSA-x574-m823-4x7wnpmvite<4.5.104.5.10

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2automation-controllerOut of support scope
Red Hat Ansible Automation Platform 2automation-eda-controllerNot affected
Red Hat Ansible Automation Platform 2automation-gatewayOut of support scope
Red Hat JBoss Enterprise Application Platform 8org.keycloak-keycloak-parentNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packorg.keycloak-keycloak-parentNot affected
Red Hat OpenShift distributed tracing 3rhosdt/tempo-gateway-opa-rhel8Out of support scope
Red Hat OpenShift distributed tracing 3rhosdt/tempo-gateway-rhel8Out of support scope
Red Hat OpenShift distributed tracing 3rhosdt/tempo-jaeger-query-rhel8Out of support scope
Red Hat OpenShift distributed tracing 3rhosdt/tempo-query-rhel8Affected
Red Hat OpenShift distributed tracing 3rhosdt/tempo-rhel8Out of support scope
Red Hat OpenShift distributed tracing 3rhosdt/tempo-rhel8-operatorOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-30208.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • ThumpBo/CVE-2025-30208-EXP Harbor Check: matches CVE 194 stars, created
    CVE-2025-30208-EXP
  • xuemian168/CVE-2025-30208 Harbor Check: matches CVE 50 stars, created
    全网首发 CVE-2025-31125 CVE-2025-30208 CVE-2025-32395 Vite Scanner
  • 4xura/CVE-2025-30208 Harbor Check: matches CVE 13 stars, created
    A PoC of the exploit script for the Arbitrary File Read vulnerability of Vite /@fs/ Path Traversal in the transformMiddleware (CVE-2025-302…
  • ThemeHackers/CVE-2025-30208 Harbor Check: matches CVE 10 stars, created
    CVE‑2025‑30208 is a medium-severity arbitrary file read vulnerability in the Vite development server (a popular frontend build tool)
  • marino-admin/Vite-CVE-2025-30208-Scanner Harbor Check: matches CVE 10 stars, created
    CVE-2025-30208-EXP 任意文件读取
17 more

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Nuclei template Vite - Arbitrary File Read
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Vite Arbitrary File Read Via raw parameter (CVE-2025-30208) sid 2061339

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-284 (17), CWE-200 (59).

References

Check your stackJSON