CVE-2026-112948 Vitest: Servers misapply `server.fs.deny`, serving `.env`, private keys, `.git`, and the API token file
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Red Hat
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.
Upgrade path
21 packages: 3 fixed, 14 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/amq-broker-bin.zip(Red Hat amq_broker 7) | All versions | No fix listed | No fix yet |
| redhat/amq-broker-maven-repository.zip(Red Hat amq_broker 7) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/gateway-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/gateway-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/automation-platform-ui(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/jboss-eap-runtime-maven-repository.zip(Red Hat jboss_enterprise_application_platform 8) | All versions | No fix listed | No fix yet |
| redhat/jboss-eap-runtime-maven-repository.zip(Red Hat jbosseapxp) | All versions | No fix listed | No fix yet |
| redhat/jboss-eap.1-runtime-maven-repository.zip(Red Hat jboss_enterprise_application_platform 8) | All versions | No fix listed | No fix yet |
| redhat/jboss-eap.1-runtime-maven-repository.zip(Red Hat jbosseapxp) | All versions | No fix listed | No fix yet |
| redhat/keycloak-operator.redhat-00001.zip(Red Hat build_keycloak) | All versions | No fix listed | No fix yet |
| redhat/keycloak-operator.redhat-00003.zip(Red Hat build_keycloak) | All versions | No fix listed | No fix yet |
| redhat/rh-podman-desktop(Red Hat podman_desktop 1) | All versions | No fix listed | No fix yet |
| redhat/rhbk-quarkus-dist.zip(Red Hat build_keycloak) | All versions | No fix listed | No fix yet |
| redhat/rhtas/rhtas-console-ui-rhel9(Red Hat trusted_artifact_signer 1) | All versions | No fix listed | No fix yet |
| @vitest browser(npm) | >= 5.0.0-beta.6, < 5.0.5 | 5.0.5 | Fixed |
| @vitest ui(npm) | >= 5.0.0-beta.6, < 5.0.5 | 5.0.5 | Fixed |
| npm vite-plus(npm) | >= 1.0.0-rc.0, < 1.3.0 | 1.3.0 | Fixed |
| @vitest browser | = >= 5.0.0-beta.6, < 5.0.5 | No fix listed | Versions listed |
| @vitest ui | = >= 5.0.0-beta.6, < 5.0.5 | No fix listed | Versions listed |
| vitejs vite-plus | = >= 1.0.0-rc.0, < 1.3.0 | No fix listed | Versions listed |
| vitest-dev vitest | = >= 5.0.0-beta.6, < 5.0.5 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/amq-broker-bin.zip(Red Hat:amq_broker:7) | All versions | No fix listed |
| redhat/amq-broker-maven-repository.zip(Red Hat:amq_broker:7) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/gateway-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/gateway-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-gateway(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-platform-ui(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/keycloak-operator.redhat-00001.zip(Red Hat:build_keycloak:) | All versions | No fix listed |
| redhat/keycloak-operator.redhat-00003.zip(Red Hat:build_keycloak:) | All versions | No fix listed |
| redhat/rhbk-quarkus-dist.zip(Red Hat:build_keycloak:) | All versions | No fix listed |
| redhat/rh-podman-desktop(Red Hat:podman_desktop:1) | All versions | No fix listed |
| redhat/jboss-eap.1-runtime-maven-repository.zip(Red Hat:jboss_enterprise_application_platform:8) | All versions | No fix listed |
| redhat/jboss-eap-runtime-maven-repository.zip(Red Hat:jboss_enterprise_application_platform:8) | All versions | No fix listed |
| redhat/jboss-eap.1-runtime-maven-repository.zip(Red Hat:jbosseapxp) | All versions | No fix listed |
| redhat/jboss-eap-runtime-maven-repository.zip(Red Hat:jbosseapxp) | All versions | No fix listed |
| redhat/rhtas/rhtas-console-ui-rhel9(Red Hat:trusted_artifact_signer:1) | All versions | No fix listed |
| vitest-dev vitest | = >= 5.0.0-beta.6, < 5.0.5 | No fix listed |
| @vitest browser | = >= 5.0.0-beta.6, < 5.0.5 | No fix listed |
| @vitest ui | = >= 5.0.0-beta.6, < 5.0.5 | No fix listed |
| vitejs vite-plus | = >= 1.0.0-rc.0, < 1.3.0 | No fix listed |
| @vitest ui(npm) | >= 5.0.0-beta.6, < 5.0.5 | 5.0.5 |
| @vitest browser(npm) | >= 5.0.0-beta.6, < 5.0.5 | 5.0.5 |
| npm vite-plus(npm) | >= 1.0.0-rc.0, < 1.3.0 | 1.3.0 |
References
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2556257 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/vitest-dev/vitest/commit/28dc1edfb6ba5a181fe208576989063795aeadb3 patch
- https://github.com/vitest-dev/vitest/pull/11578 patch
- https://github.com/vitest-dev/vitest/releases/tag/v5.0.5
- https://github.com/vitest-dev/vitest/security/advisories/GHSA-p458-7748-mcp3 vendor-advisory
- github.com
- github.com product
- ENISA EUVD EUVD-2026-105143 third-party-advisory