Vite dev server arbitrary file read
CVE-2025-30208 is an arbitrary file read in the Vite dev server, in versions before 6.2.3 and the matching 5.x, 4.x patches. Vite serves project files under the /@fs/ route behind an allow-list, but a trailing ?import&raw?? on the request is parsed after the allow-list runs, so the guard and the resolved path disagree and the check is bypassed. Any unauthenticated client can read files outside the project root.
How to reach it
Run the challenge locally with its docker-compose. The flagger sidecar writes your per-run flag to /flag/flag.txt before the dev server starts. The service speaks HTTP on port 8080, and the /@fs/ route is the entry point.
Run this challenge
Spin it up locally with Docker. The flagger sidecar fetches a per-run flag into a shared volume, then the challenge container boots and reads it.
services:
flagger:
image: matejbasic/rootcause-flagger:1.0
environment:
ROOTCAUSE_API_URL: https://root-cause-api.matejbasic.com
ROOTCAUSE_API_KEY: ${ROOTCAUSE_API_KEY}
ROOTCAUSE_CHALLENGE: vite-fs-traversal
FLAG_PATH: /flag/flag.txt
volumes:
- flag:/flag
challenge:
image: matejbasic/cve-2025-30208:1.0
depends_on:
flagger:
condition: service_completed_successfully
environment:
FLAG_PATH: /flag/flag.txt
volumes:
- flag:/flag
ports:
- "8080:8080"
volumes:
flag:
rootcause start vite-fs-traversalThe rootcause CLI does all of this in one command. Running a challenge needs your API key, which you generate in your profile.