Skip to content
Fencer Intel
medium 6.5

CVE-2026-112948 json

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

published 20d ago modified 19d ago also GHSA-p458-7748-mcp3 , EUVD-2026-105143

cvss
6.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 34%
public exploits
0
none known

Summary

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.

Patch / fix

  • npm @vitest/ui 5.0.5
  • npm @vitest/browser 5.0.5
  • npm vite-plus 1.3.0

Is CVE-2026-112948 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-112948 updated cvss 6.5

vitest: vitest: Information disclosure via improper file access restrictions

  • Red Hat AMQ Broker 7 amq-broker-bin.zip 7.14.1.CR3, amq-broker-maven-repository.zip 7.14.1.CR3
    affected: no fix available “Fix deferred”
  • Red Hat Ansible Automation Platform 2 automation-platform-ui 2.6.15-1.el9ap, automation-gateway 2.5.20260923-1.el9ap, ansible-automation-platform-26/gateway-rhel9, ansible-automation-platform-27/gateway-rhel9
    affected: no fix available, no fix planned “Out of support scope”
  • Red Hat Build of Keycloak rhbk-quarkus-dist.zip 26.6.7.CR1, keycloak-operator.redhat-00001.zip 26.6.6, keycloak-operator.redhat-00003.zip 26.6.7 Red Hat Build of Podman Desktop rh-podman-desktop 3c6fc75a2a6cf5bb9b8a667fddcbbf428132badc Red Hat JBoss Enterprise Application Platform 8 jboss-eap-runtime-maven-repository.zip 8.1.2, jboss-eap.1-runtime-maven-repository.zip 8.1.0 Red Hat JBoss Enterprise Application Platform Expansion Pack jboss-eap-runtime-maven-repository.zip 8.1.2, jboss-eap.1-runtime-maven-repository.zip 8.1.0 Red Hat Trusted Artifact Signer rhtas/rhtas-console-ui-rhel9
    affected: no fix available “Fix deferred”
  • Red Hat Hardened Images prometheus3.13 3.13.4-0.1.hum1
    not affected: component not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
20d ago

Exploit prediction

0.40% chance of exploitation in the next 30 days, higher than 34% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
CNA 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
GitHub 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
npm @vitest/ui
>=5.0.0-beta.6, <5.0.5
5.0.5
npm @vitest/browser
>=5.0.0-beta.6, <5.0.5
5.0.5
npm vite-plus
>=1.0.0-rc.0, <1.3.0
1.3.0

Affected products

  • vitest-dev vitest
  • @vitest browser
  • @vitest ui
  • vitejs vite-plus

Classification

Weakness
  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-552 Files or Directories Accessible to External Parties

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.