Advisory record · GHSA-xp26-3454-mjgp

Vitest: Windows backslash traversal bypasses the @vitest/mocker redirect allowlist fix

CVSS 5.9 MediumEPSS 0.0054 · 45th percentile

Published by the GitHub Advisory Database at 21 Oct 2026, 19:48 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
@vitest/mockernpm>=4.1.11, <4.1.12 || >=5.0.0-rc.2, <5.0.34.1.12, 5.0.3
Identifiers
GHSA-xp26-3454-mjgp · CVE-2026-112950
Weakness (CWE)
CWE-22
Published
21 Oct 2026
Updated
21 Oct 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Vitest's @vitest/mocker is vulnerable on Windows in versions >=4.1.11 <4.1.12 and >=5.0.0-rc.2 <5.0.3, where a backslash in a redirect URL pathname bypasses the allowlist fix for GHSA-82fw-gwwq-j7x9 and lets a client read a file outside the Vite root. Per the source, an attacker needs network reach to a Vite server using the public mockerPlugin or interceptorPlugin WebSocket registration, and default loopback-only servers are less exposed. Upgrade to @vitest/mocker 4.1.12 or 5.0.3, which are listed as fixed.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.9 Medium 3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0054, the 45th percentile, on 6 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 13:33 UTC First seen by agentprime
  2. 31 Oct 2026, 13:33 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.