SCA: security update for @vitest/mocker (GHSA-xp26-3454-mjgp)

medium Tenable Cloud Security Plugin ID 476585

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- Vitest is a Vite-native testing framework for JavaScript and TypeScript projects. From 4.1.11 until 4.1.12
and 5.0.3, isFileLoadingAllowed and the filesystem read interpret backslashes differently on Windows in
packages/mocker/src/node/interceptorPlugin.ts. When a client can reach the Vite dev server on Windows and
register a redirect mock containing backslash traversal, POSIX joining preserves a Windows backslash
traversal that the later filesystem read interprets as a path separator, so the client can read a file
outside server.fs.allow that the Vitest process can access. This issue is fixed in versions 4.1.12 and
5.0.3. (CVE-2026-112950)

Solution

Update the @vitest/mocker library and its related packages to version 4.1.12 or later.

See Also

https://github.com/advisories/GHSA-xp26-3454-mjgp

Plugin Details

Severity: Medium

ID: 476585

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 10/22/2026

Updated: 10/22/2026

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.72

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 5.4

Temporal Score: 4

Vector: CVSS2#AV:N/AC:H/Au:N/C:C/I:N/A:N

CVSS Score Source: CVE-2026-112950

CVSS v3

Risk Factor: Medium

Base Score: 5.9

Temporal Score: 5.2

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 10/21/2026

Vulnerability Publication Date: 10/20/2026

Reference Information

CVE: CVE-2026-112950

cwe: CWE-22