Skip to main content
Network Thinking Solutions Logo

CVE-2026-112948

Vitest: Servers misapply server.fs.deny, serving .env, private keys, .git, and the API token file

All CVEs
CVE-2026-112948Published 10/20/2026

Vitest: Servers misapply server.fs.deny, serving .env, private keys, .git, and the API token file

Vendor advisory
CVSS6.5Medium

Overview

Vitest is a testing framework powered by Vite. From 5.0.0-beta.6 until 5.0.5, Vitest dev servers can misapply server.fs.deny because project servers replace Vite's defaults and the root server adds .vitest-secret-token after Vite compiles its matcher. An attacker who can reach an affected UI, Browser Mode, or API server can read denied project files or the fallback API token at node_modules/.vitest/.vitest-secret-token, and Browser Mode with test.projects can expose JavaScript-compatible .env values through a malicious website. This issue is fixed in version 5.0.5.

Published
10/20/2026
Last modified
10/20/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
vitest
vitest-dev
>= 5.0.0-beta.6, < 5.0.5

Verify advisory

Source
browser
@vitest
>= 5.0.0-beta.6, < 5.0.5

Verify advisory

Source
ui
@vitest
>= 5.0.0-beta.6, < 5.0.5

Verify advisory

Source
vite-plus
vitejs
>= 1.0.0-rc.0, < 1.3.0

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 6.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.