{"uuid": "0f792269-314b-47c0-84f5-fa535f0b3e53", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "GHSA-x574-m823-4x7w", "type": "seen", "source": "https://gist.github.com/reewardius/63454afa052bb112ef7f9bcd5f9fa7af", "content": "id: CVE-2025-30208\n\ninfo:\n  name: Vite - Arbitrary File Read\n  author: v2htw,s4e-io,reewardius\n  severity: medium\n  description: |\n    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&amp;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.\n  impact: |\n    Attackers can bypass file access restrictions by adding special query parameters to URLs, potentially reading arbitrary files when the Vite dev server is exposed to the network.\n  remediation: |\n    Upgrade to Vite version 6.2.3, 6.1.2, 6.0.12, 5.4.15, or 4.5.10 that properly validates query parameters.\n  reference:\n    - https://github.com/vitejs/vite/security/advisories/GHSA-x574-m823-4x7w\n    - https://nvd.nist.gov/vuln/detail/CVE-2025-30208\n  classification:\n    epss-score: 0.74998\n    epss-percentile: 0.9946\n    cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N\n    cvss-score: 5.3\n    cve-id: CVE-2025-30208\n    cwe-id: CWE-284\n  metadata:\n    verified: true\n    max-request: 1\n    fofa-query: 'body=\"/@vite/client\"'\n  tags: cve,cve2025,arbitrary-file-read,vite,CVE-2025-30208,vkev,vuln\n\nhttp:\n  - method: GET\n    path:\n      - \"{{BaseURL}}/src/config/environment.ts\"\n      - \"{{BaseURL}}/src/App.tsx\"\n      - \"{{BaseURL}}/@vite/client\"\n\n    stop-at-first-match: true\n    matchers-condition: and\n    matchers:\n      - type: regex\n        regex:\n          - \"VITE_USE_PRODUCTION_MODE\"\n          - \"App.tsx\"\n          - \"class HMRContext\"\n        condition: or\n\n      - type: status\n        status:\n          - 200", "creation_timestamp": "2026-08-10T10:24:21.779397Z"}