Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Access Control Bypass vulnerabilities in an interactive lesson.
Start learningUpgrade vite to version 8.4.0-beta.2 or higher.
vite is a Native-ESM powered web dev build tool
Affected versions of this package are vulnerable to Access Control Bypass via the worker plugin's handling of ?worker&import and ?sharedworker&import queries in the development server. When a request is processed with one of these queries, the absolute file path is registered in config.environments.client.safeModulePaths via fileToDevUrl, regardless of whether that path is permitted by server.fs.allow. An attacker can first issue a GET request to /@fs/<absolute-path>?worker&import to register an arbitrary outside path, then issue a second GET request to /@fs/<absolute-path> to retrieve the file contents, because the safeModulePaths check short-circuits before the fs.allow check. The ?wasm, ?init&import, and ?source&import queries trigger the same registration for .wasm files.
Note: This is only exploitable when the Vite dev server is explicitly exposed to the network (via --host or server.host), the sensitive file is not matched by server.fs.deny, and the affected version is 8.4.0-beta.1.