CVE-2026-112948
Full vulnerability record from the local CVENow database.
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.
Severity
MEDIUM
CVSS score
6.5
(v3.1)
Vulnerability status
Awaiting Analysis
Source identifier
Published
2026-10-20 16:17:05.517000
Last modified
2026-10-20 19:56:45.543000
View original CVE JSON
{
"id": "CVE-2026-112948",
"sourceIdentifier": "[email protected]",
"published": "2026-10-20T16:17:05.517",
"lastModified": "2026-10-20T19:56:45.543",
"vulnStatus": "Awaiting Analysis",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "vitest-dev",
"product": "vitest",
"versions": [
{
"version": ">= 5.0.0-beta.6, < 5.0.5",
"status": "affected"
}
]
},
{
"vendor": "@vitest",
"product": "browser",
"versions": [
{
"version": ">= 5.0.0-beta.6, < 5.0.5",
"status": "affected"
}
]
},
{
"vendor": "@vitest",
"product": "ui",
"versions": [
{
"version": ">= 5.0.0-beta.6, < 5.0.5",
"status": "affected"
}
]
},
{
"vendor": "vitejs",
"product": "vite-plus",
"versions": [
{
"version": ">= 1.0.0-rc.0, < 1.3.0",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N",
"baseScore": 6.5,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "REQUIRED",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "NONE",
"availabilityImpact": "NONE"
},
"exploitabilityScore": 2.8,
"impactScore": 3.6
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-10-20T16:16:51.150771Z",
"id": "CVE-2026-112948",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-200"
},
{
"lang": "en",
"value": "CWE-552"
}
]
}
],
"references": [
{
"url": "https://github.com/vitest-dev/vitest/commit/28dc1edfb6ba5a181fe208576989063795aeadb3",
"source": "[email protected]"
},
{
"url": "https://github.com/vitest-dev/vitest/pull/11578",
"source": "[email protected]"
},
{
"url": "https://github.com/vitest-dev/vitest/releases/tag/v5.0.5",
"source": "[email protected]"
},
{
"url": "https://github.com/vitest-dev/vitest/security/advisories/GHSA-p458-7748-mcp3",
"source": "[email protected]"
}
]
}