GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — chore(deps): update dependency vitest [security] by renovate[bot] · Pull Request #7643 · developing-today/code Conversation
|
| Package | Change | Age | Confidence |
|---|---|---|---|
| vitest (source) | 3.2.7 → 4.1.11 |
||
| vitest (source) | ^3.2.0 → ^5.0.0 |
||
| vitest (source) | ^3.2.0 → ^4.0.0 |
CVE-2026-84373 / GHSA-82fw-gwwq-j7x9
@vitest/mocker registers a redirect mock's target path without validating it
against the dev server's file-serving allowlist. An attacker who can reach the
dev server's WebSocket can register a redirect mock pointing outside the project
root; when the mocked module is requested, the plugin's load hook returns
readFile(<attacker path>) as the module source, disclosing local files.
This is exploitable without authentication only through the public
mockerPlugin / standalone interceptorPlugin exports (used by third-party dev
servers), which register the handler on Vite's unauthenticated HMR socket.
Vitest's own browser mode registers mocks over a token-authenticated RPC and
is not remotely reachable by default (see Scope).
packages/mocker/src/node/interceptorPlugin.ts.
The load hook is the file-read sink:
if (mock.type === 'redirect') { return readFile(mock.redirect, 'utf-8') }
mock.redirect is derived from client input at registration time with no
boundary check:
if (event.type === 'redirect') { const redirectUrl = new URL(event.redirect) event.redirect = join(server.config.root, redirectUrl.pathname) } registry.register(event)
There is no server.fs.allow / server.fs.deny check and no assertion that the
resolved path stays within the project root.
mockerPlugin / interceptorPlugin (unauthenticated). InconfigureServer, the plugin registers server.ws.on('vitest:interceptor:register', …)registerMock), which sits behind a per-run token (isValidApiRequest, aapi.token). The interceptor's configureServer socket is not used fornew URL(redirect).pathname combined with join(root, pathname) does not
confine reads to the root:
file:, http:) are normalized by WHATWG URL,.. segments are collapsed and the result stays under the root. Payloads offile:///../../etc/passwd do not escape... in pathname, sojoin(root, "../../…/etc/passwd") resolves outside the root and reads anEven without escaping the root, the missing server.fs check allows reading any
in-root file the dev server would otherwise refuse to serve (for example an
in-root .env or source that is denied by server.fs.deny).
localhost byserver.host / 0.0.0.0, a LAN bind, or a proxy).localhostserver.allowedHosts blocks DNS-rebinding, so a cross-origin pageDisclosure of local files readable by the dev-server process (source, in-root
.env/secrets, and, via the opaque-scheme payload, files outside the project
root). No integrity or availability impact.
Present since @vitest/mocker was introduced.
@vitest/mocker >= 2.1.0 (shipped in vitest and@vitest/browser >= 2.1.0), through 4.1.x and the 5.0.0 pre-releases.Validate the resolved redirect target against Vite's file-serving allowlist
(isFileLoadingAllowed) before registering it, at every registration site, and
stop registering the interceptor WebSocket events in Vitest's browser mode
(mocks there flow through the authenticated RPC).
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NThis data is provided by the GitHub Advisory Database (CC-BY 4.0).
v4.1.11v4.1.10v4.1.9importOriginal with optimizer and query import [backport to v4] - by Hiroshi Ogawa, David Harris, Codexand Vladimir in #10546 (a5180)v4.1.8cdp API when allowWrite/allowExec: false [backport to v4] - by @hi-ogawa and Codex in #10450 (e4067)v4.1.7v4.1.6ToMatchScreenshotResolvePath - by @macarie and @sheremet-va in #10138 (31882)sequence.concurrent: true with top-level test(..., { concurrent: false }) + depreacte sequential test API and options - by @hi-ogawa, Codex and @sheremet-va in #10196 (2847d)v4.1.5instrumenter option - by @BartWaardenburg and @AriPerkkio in #10119 (0e0ff)vi.defineHelper called as object method - by @hi-ogawa in #10163 (122c2)agent reporter to minimal - by @sheremet-va in #10157 (663b9)v4.1.4skipFull if agent detected - by @hi-ogawa in #10018 (53757)assertion as a public field - by @sheremet-va in #10095 (a120e)expect(..., message) consistent as error message prefix - by @hi-ogawa and Codex in #10068 (a1b5f)v4.1.3experimental.preParse flag - by @sheremet-va in #10070 (78273)browser.locators.exact option - by @sheremet-va in #10013 (48799)TestAttachment.bodyEncoding - by @hi-ogawa in #9969 (89ca0)expect.poll interval - by @hi-ogawa and Claude Sonnet 4.6 in #10022 (3f5bf)@vitest/coverage-v8 and @vitest/coverage-istanbul as optional dependency - by @alan-agius4 in #10025 (146d4)defineHelper for webkit async stack trace + update playwright 1.59.0 - by @hi-ogawa in #10036 (5a5fa)JestExtendError.context from verbose error reporting - by @hi-ogawa in #9983 (66751)vitest - by @hi-ogawa and Codex in #10042 (691d3)v4.1.2This release bumps Vitest's flatted version and removes version pinning to resolve flatted's CVE related issues (#9975).
setupFiles from parent directory - by @hi-ogawa in #9960 (7aa93)toMatchScreenshot can't capture a stable screenshot - by @macarie in #9847 (faace)coverageConfigDefaults values and types - by @Arthie in #9940 (b3c99)v4.1.1matchesTags to test if the current filter matches tags - by @sheremet-va in #9913 (eec53)experimental.vcsProvider - by @sheremet-va in #9928 (56115)TestProject.testFilesList internal properly - by @sapphi-red in #9867 (54f26)use - by @oilater in #9831 and #9861 (633ae)vi.advanceTimers to the preview provider - by @sheremet-va in #9891 (1bc3e)--standalone mode without running tests - by @sheremet-va in #9911 (e78ad)body - by @sheremet-va in #9912 (6fdb2)retry.condition RegExp serialization issue - by @nstepien and @hi-ogawa in #9942 (7b605)test return as tests - by @sheremet-va in #9871 (141e7)v4.1.0Vitest 4.1 is out!
This release page lists all changes made to the project during the 4.1 beta. To get a review of all the new features, read our blog post.
setTickMode to timer controls - by @atscott and @sheremet-va in #8726 (4b480)toTestSpecification to reported tasks - by @sheremet-va in #9464 (1a470)vi.mock or vi.hoisted are declared outside of top level of the module - by @sheremet-va in #9387 (5db54)aroundEach and aroundAll hooks - by @sheremet-va in #9450 (2a8cb)new or all in --update flag - by @sheremet-va in #9543 (a5acf)meta in test options - by @sheremet-va in #9535 (7d622)test.extend syntax - by @sheremet-va in #9550 (e5385)vitest list to statically collect tests instead of running files to collect them - by @sheremet-va in #9630 (7a8e7)--detect-async-leaks - by @AriPerkkio in #9528 (c594d)mockThrow and mockThrowOnce - by @thor-juhasz and @sheremet-va in #9512 (61917)update: "none" and add docs about snapshots behavior on CI - by @hi-ogawa in #9700 (05f18)launchOptions with connectOptions - by @hi-ogawa in #9702 (f0ff1)page/locator.mark API to enhance playwright trace - by @hi-ogawa in #9652 (d0ee5)test in experimental_parseSpecification - by @jgillick and Jeremy Gillick in #9235 (2f367)createSpecification - by @sheremet-va in #9336 (c8e6c)runTestFiles as alternative to runTestSpecifications - by @sheremet-va in #9443 (43d76)allowWrite and allowExec options to api - by @sheremet-va in #9350 (20e00)toTestSpecification - by @sheremet-va in #9627 (6f17d)userEvent.wheel API - by @macarie in #9188 (66080)filterNode option to prettyDOM for filtering browser assertion error output - by @Copilot, sheremet-va and @sheremet-va in #9475 (d3220)detailsPanelPosition option and button - by @shairez in #9525 (c8a31)findElement and enable strict mode in webdriverio and preview - by @sheremet-va in #9677 (c3f37)ignore start/stop ignore hints - by @AriPerkkio in #9204 (e59c9)coverage.changed option to report only changed files - by @kykim00 and @AriPerkkio in #9521 (1d939)onModuleRunner hook to worker.init - by @sheremet-va in #9286 (e977f)importDurations: { limit, print } options - by @hi-ogawa, Claude Opus 4.6 and @sheremet-va in #9401 (7e10f)importDurations - by @hi-ogawa and Claude Opus 4.6 in [#9533](https://redirect.[!IMPORTANT]
✂ PR body was truncated to here.
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…st-atlas fix(atlas-search): vitest ^4.1.0 + pool-workers 0.23 (CVE-2026-84373, supersedes #7643)
|
agent-note:v1 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.