CVE-2026-140098

Source
https://cve.org/CVERecord?id=CVE-2026-140098
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-140098.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-140098
Aliases
  • GHSA-qppr-rxr4-jjq2
Published
2026-11-30T22:30:38Z
Modified
2026-12-01T00:00:09Z
Severity
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:N/SA:N CVSS Calculator
Summary
Vite [beta only]: files otuside `server.fs.allow` and not included in `server.fs.deny` can be served by two requests using `?worker`
Details

Vite is a frontend tooling framework for JavaScript. In 8.4.0-beta.1, a network-exposed development server can register a request-chosen file outside server.fs.allow in config.environments.client.safeModulePaths when processing ?worker&import or ?sharedworker&import, while ?wasm, ?init&import, and ?source&import can register request-chosen .wasm files through the same mechanism. An unauthenticated attacker can first request an outside path with one of the applicable queries and then request the same path normally, causing the safe-path check to bypass server.fs.allow and disclose the file unless server.fs.deny matches it. This issue is fixed in 8.4.0-beta.2.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-200"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140098.json"
}
References

Affected packages

Git / github.com/vitejs/vite

Affected ranges

Type
GIT
Repo
https://github.com/vitejs/vite
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "= 8.4.0-beta.1"
                },
                {
                    "last_affected":  "= 8.4.0-beta.1"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandaloneSingleVersion"
        },
        {
            "range":  [
                {
                    "fixed":  "a78fb8a28db01e83611120012bd5d1189bab68aa"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "e258ce140eef64cf89ff38c410125abd8726f274"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v8.4.0-beta.2",
            "range":  [
                {
                    "fixed":  "86bf3067e8fcaea2ad6226bb77adc72fbb2ab95a"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

= 8.*
= 8.4.0-beta.1
v8.*
v8.4.0-beta.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-140098.json"