Skip to main content
No exploitation reportedFix availableAwaiting NVD analysis

CVE-2026-112948

No exploitation reported by the sources we read.

  • Published2026-10-20
  • Fixed in5.0.5
  • WeaknessCWE-200 · CWE-552

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2026-10-2016:17CVE publishedNVD

Versions per branch

OSV
@vitest/browser
BranchAffectedFixed in
5.0≥ 5.0.0-beta.6, < 5.0.55.0.5
@vitest/ui
BranchAffectedFixed in
5.0≥ 5.0.0-beta.6, < 5.0.55.0.5
vite-plus
BranchAffectedFixed in
1.x≥ 1.0.0-rc.0, < 1.3.01.3.0

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA4 products

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • vitest-dev vitest
    Affected
    • = >= 5.0.0-beta.6, < 5.0.5no fix stated
  • @vitest browser
    Affected
    • = >= 5.0.0-beta.6, < 5.0.5no fix stated
  • @vitest ui
    Affected
    • = >= 5.0.0-beta.6, < 5.0.5no fix stated
  • vitejs vite-plus
    Affected
    • = >= 1.0.0-rc.0, < 1.3.0no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-10-20

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Vendor advisories

  • CVE-2026-112948 Red Hat Product Security15 known affected

    vitest: vitest: Information disclosure via improper file access restrictions

    amq-broker-bin.zip as a component of Red Hat AMQ Broker 7 · amq-broker-maven-repository.zip as a component of Red Hat AMQ Broker 7 · ansible-automation-platform-26/gateway-rhel9 as a component of Red Hat Ansible Automation Platform 2 · +12 more

Full record on NVD

Fix

  1. Update @vitest/browser to 5.0.5
  2. No fix available, says the vendor Red Hat Product Security CVE-2026-112948 · 14 productsFix deferred
  3. No fix planned, says the vendor Red Hat Product Security CVE-2026-112948 · 1 productOut of support scope

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVE recordread 2026-10-23
  • CISA-ADPSSVC decisionnone2026-10-20
  • CNACVSS 3.16.5known since 2026-10-23
  • CNAweakness (CWE)CWE-200, CWE-552known since 2026-10-23
  • FIRST EPSSEPSS score0.4 %2026-12-03
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryModerate2026-10-21

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Published
2026-10-20
Last modified
2026-10-20
NVD status
Awaiting Analysis
GitHub advisory
GHSA-p458-7748-mcp3

Frequently asked questions

What is CVE-2026-112948?

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.

Is CVE-2026-112948 actively exploited?

Active exploitation of CVE-2026-112948 has not been confirmed. Its EPSS score was 0.4% on 2026-12-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-112948?

CVE-2026-112948 has a CVSS v3 base score of 6.5 (Medium severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N.

Running @vitest/browser? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record