GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update dependency vitest to v5 [SECURITY] by renovate[bot] · Pull Request #140 · developing-today/code

Conversation

@renovate

@renovate renovate Bot commented Sep 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
vitest (source) ^3.2.7 → ^5.0.0 age confidence

Vitest: Path Traversal / Arbitrary File Read via @​vitest/mocker Redirect Mock

CVE-2026-84373 / GHSA-82fw-gwwq-j7x9

More information

Details

Summary

@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).

Affected code

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.

Registration paths and trust boundaries
  • Public mockerPlugin / interceptorPlugin (unauthenticated). In
    configureServer, the plugin registers server.ws.on('vitest:interceptor:register', …)
    on Vite's HMR WebSocket. That socket performs no token, Origin, or same-origin
    check, so any client that can reach it can register a redirect mock. This is
    the path the "unauthenticated" impact applies to.
  • Vitest browser mode (authenticated). Mocks register over the browser RPC
    (registerMock), which sits behind a per-run token (isValidApiRequest, a
    random api.token). The interceptor's configureServer socket is not used for
    registration here (in v5 it does not run at all, as the plugin is injected per
    environment). The same missing boundary check exists on the authenticated RPC
    path, but reaching it requires the token, so it is not a remote-unauthenticated
    read.
Path handling

new URL(redirect).pathname combined with join(root, pathname) does not
confine reads to the root:

  • Special/hierarchical schemes (file:, http:) are normalized by WHATWG URL,
    so .. segments are collapsed and the result stays under the root. Payloads of
    the form file:///../../etc/passwd do not escape.
  • A non-special (opaque) scheme preserves .. in pathname, so
    join(root, "../../…/etc/passwd") resolves outside the root and reads an
    arbitrary file.

Even 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).

Scope / preconditions
  • This is a development-server issue. The dev server binds to localhost by
    default and is not reachable from the network unless the developer exposes it
    (server.host / 0.0.0.0, a LAN bind, or a proxy).
  • A raw (non-browser) client against a reachable server bypasses browser origin
    and CORS protections entirely and can both register the mock and read the
    response.
  • A browser-based drive-by against a localhost server is substantially mitigated
    by Vite defaults: the default CORS origin allowlist is limited to localhost
    origins, and server.allowedHosts blocks DNS-rebinding, so a cross-origin page
    cannot read the file contents back.
Impact

Disclosure 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.

Affected versions

Present since @vitest/mocker was introduced.

  • Affected: @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.
  • Fixed: Vitest 4.1.11 and 5.0.0. Older majors (2.1.x, 3.x) are not
    maintained and are not planned to receive the fix.
Fix

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).

Severity

  • CVSS Score: 5.9 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

References

  • https://github.com/vitest-dev/vitest/security/advisories/GHSA-82fw-gwwq-j7x9
  • https://nvd.nist.gov/vuln/detail/CVE-2026-84373
  • https://github.com/vitest-dev/vitest/pull/10972
  • https://github.com/vitest-dev/vitest/pull/10974
  • https://github.com/vitest-dev/vitest/commit/51edf2b072902aec6d30c90ebaafd8f121c6f9d8
  • https://github.com/vitest-dev/vitest/commit/8ff9b9a9efca7c6cfd5243569440de8d7a33aec4
  • https://github.com/vitest-dev/vitest/commit/fe5a11d3ceac5ec10d6d7d21a46d4caca132c48f
  • https://github.com/vitest-dev/vitest/releases/tag/v4.1.11
  • https://github.com/vitest-dev/vitest/releases/tag/v5.0.0-rc.2
  • https://github.com/advisories/GHSA-82fw-gwwq-j7x9

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

vitest-dev/vitest (vitest)

v5.0.5

Compare Source

   🐞 Bug Fixes
  • Keep vite default fs.deny with api token file  -  by @​hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #​11578 (28dc1)
  • Handle quoted file names in --changed  -  by @​sheremet-va in #​11583 (14921)
  • Add data to the import.meta.hot stub  -  by @​sheremet-va in #​11590 (3a828)
  • Set skip in skipIf, ignore undefined options  -  by @​sheremet-va in #​11591 (d523a)
  • Skip builtin loading in async leak detector  -  by @​sheremet-va in #​11598 (fe86a)
  • Keep the import frame in native loader errors  -  by @​sheremet-va in #​11599 (9697b)
  • Run hook cleanups when a later hook fails  -  by @​sheremet-va in #​11605 (6c5a4)
  • Release mocks of finished test files  -  by @​sheremet-va in #​11607 (e9c3d)
  • Abort all running tests on cancel  -  by @​sheremet-va in #​11606 (6621a)
  • browser:
    • Ignore synthetic pagehide events  -  by @​sheremet-va in #​11582 (ca081)
    • Run plugin buildStart on server creation  -  by @​sheremet-va in #​11593 (ea611)
    • Drop late connections of closed sessions  -  by @​sheremet-va in #​11600 (f161e)
    • Wait 30s for the browser to close  -  by @​sheremet-va in #​11601 (6498b)
    • Run global setup once with instances  -  by @​sheremet-va in #​11596 (8dd67)
  • reporter:
    • End reason &#&#8203;39;failed&#&#8203;39; on worker crash  -  by @​AriPerkkio in #​11568 (6ae8e)
    View changes on GitHub

v5.0.4

Compare Source

   🚀 Features
  • experimental:
    • Tag cache directories with CACHEDIR.TAG  -  by @​lifeiscontent in #​11461 (a8ea3)
    • Support test.ui.theme option  -  by @​sheremet-va in #​11499 (1da66)
    • Highlight selector multiple matches in trace view  -  by @​hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #​11489 (5abba)
    • Print how many tests were affected and a total when running --changed  -  by @​sheremet-va in #​11424 (a2336)
    • Add an option to cache dependencies instead of statically parsing them  -  by @​sheremet-va in #​11515 (c0601)
    • Add fit and zoom controls to trace viewer  -  by @​hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #​11490 (f5dd9)
   🐞 Bug Fixes
  • Fail the run on git and location filter errors  -  by @​sheremet-va in #​11430 (30d03)
  • Enable fsModuleCache by default  -  by @​sheremet-va in #​11435 (ad208)
  • Track project files and mocks with --changed  -  by @​sheremet-va in #​11432 (b0f2b)
  • Refactor caching, fix : in project and change the shape of results cache  -  by @​sheremet-va in #​11453 (9673c)
  • Keep full $ string values when taskTitleValueFormatTruncate is 0  -  by @​hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #​11485 (4f7e1)
  • Resolve node builtins in client environments  -  by @​sheremet-va in #​11417 (56b31)
  • Fix module graph builtin externals after #​11421  -  by @​hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #​11491 and #​11421 (008e1)
  • Wrap module mocks during in-source testing  -  by @​sheremet-va in #​11505 (36d19)
  • Handle line endings in snapshot  -  by @​sheremet-va in #​11522 (4c468)
  • Respect root in projects  -  by @​sheremet-va in #​11521 (26642)
  • Resolve mocks in directories with spaces  -  by @​sheremet-va in #​11539 (caaef)
  • api:
    • Publish the api token atomically  -  by @​umairnawaz333 in #​11323 (6f990)
  • browser:
    • Close the mock route interception race  -  by @​cplieger and @​sheremet-va in #​8339 and #​11083 (d6620)
    • Allow toHaveTextContent without arguments  -  by @​nomadical in #​11425 (8ebcf)
    • Apply API options without browser config  -  by @​sheremet-va in #​10852 (ad055)
    • Preserve undefined command arguments  -  by @​sheremet-va and @​AriPerkkio in #​11497 (1576d)
    • Wait for setup mocks before importing a test file  -  by @​kasperpeulen in #​11520 (b61d1)
    • Avoid extra scroll outside the iframe  -  by @​sheremet-va in #​11523 (662e8)
    • Run browser instances as workers  -  by @​sheremet-va in #​11525 (bf04b)
      • ⚠️ This can degrade performance if you have a custom maxWorkers setting. Previously, it was applied incorrectly and could lead to Vitest using too many resources. For example, a lower number would still open too many browsers. Fixing it means Vitest opens less instances by default now.
    • Open one cdp session per tester  -  by @​sheremet-va in #​11542 (69e63)
    • Clean up unmocked and pending mocks  -  by @​sheremet-va in #​11537 (5c955)
  • coverage:
    • V8 browser memory leak between test files  -  by @​AriPerkkio in #​11466 (2297d)
    • allowExternal fails to include uncovered files  -  by @​AriPerkkio in #​11513 (4ef00)
    • Filenames containing brackets incorrectly showing as uncovered  -  by @​AriPerkkio in #​11531 (0fa80)
    • Istanbul coverage wrong when module transform warmups  -  by @​AriPerkkio in #​11529 (9f61d)
  • deps:
    • Update all non-major dependencies  -  by @​sheremet-va in #​11167 (c74e0)
  • expect:
    • Fix Map and Set deep equality in some assertions  -  by @​hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #​11402 (b4e79)
    • Check value in chai-style returned  -  by @​sheremet-va in #​11500 (1aca0)
  • mocker:
    • Fix native loader mocking edge cases  -  by @​sheremet-va in #​11540 (cd423)
  • pretty-format:
    • Support boxed symbols  -  by @​lehni in #​11445 and #​11446 (eba44)
  • reporters:
    • Junit to strip ANSI sequences from all XML attributes  -  by @​meganemura and Claude Opus 5.5 in #​11407 (e1a73)
  • runner:
    • Don't cache failed fixture setups  -  by @​hamed-bavar in #​11237 and #​11238 (4ee66)
  • typecheck:
    • Use typescript pool in toTestSpecification  -  by @​sheremet-va in #​11451 (5f273)
  • ui:
    • Remove duplicate browser-open call opening two tabs  -  by @​feastyr69 in #​11356 and #​11358 (d7e13)
    • Simplify explorer filtering + fix nested tests when search matches a suite  -  by @​hi-ogawa, Hiroshi Ogawa, Codex and Claude Opus 5.5 in #​11262 (a627b)
    • Store module graph once per environment  -  by @​hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #​11421 (af903)
    • Mount index.html handler on the ui base path  -  by @​hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #​11517 (1bc24)
    • Center split pane resize handle  -  by @​hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #​11506 (e658b)
  • vm:
    • Bind this to module.exports  -  by @​sheremet-va in #​11504 (b618a)
   🏎 Performance
  • Reuse fsModuleCache when filtering by source  -  by @​sheremet-va in #​11428 (7ebd9)
  • spy: Reset only mocks that were called or reconfigured  -  by @​johan-gorter and Claude Opus 5.5 in #​11197 (28ef9)
    View changes on GitHub

v5.0.3

Compare Source

   🐞 Bug Fixes
  • Isolate result.status between repeats runs  -  by @​hi-ogawa, Hiroshi Ogawa and Codex (GPT-6) in #​11218 (5dbeb)
  • Don't print an interceptor warning in browser mode  -  by @​sheremet-va in #​11377 (15cc0)
  • Don't retry when test.fails expectedly failed  -  by @​hi-ogawa, Hiroshi Ogawa and Codex (GPT-6) in #​11219 (b2458)
  • Scope cache key generators to projects  -  by @​ecoyoung in #​11281 and #​11301 (92ba7)
  • browser:
    • Delay server listen until tests start running  -  by @​sheremet-va in #​11366 (7d8ed)
    • Check mock path boundaries  -  by @​saryn17, Ryosei Sato and @​sheremet-va in #​11361 and #​11362 (1c388)
    • Keep config of browser-consumed environments  -  by @​kasperpeulen and Claude in #​11378 (aafc0)
    • Ignore page crash while cancelling  -  by @​sheremet-va in #​11386 (7c367)
    • toMatchScreenshot uses wrong reference on retried tests  -  by @​macarie in #​11393 (c22ab)
  • cache:
    • Revalidate imports of cached modules  -  by @​sheremet-va in #​11381 (38f98)
  • deps:
    • Pin why-is-node-running to 3.2.1 to avoid users running into ERR_PNPM_TRUST_DOWNGRADE  -  by @​AriPerkkio in #​11403 (f6c9a)
  • expect:
    • Pass current equality testers to expect.extend asymmetric matchers  -  by @​hi-ogawa, Hiroshi Ogawa and Claude in #​11401 (3e794)
  • jsdom:
    • Support Blob on jsdom 30.1  -  by @​sheremet-va in #​11379 (6c49b)
  • pool:
    • Preserve unique pool ids when groupOrder is set  -  by @​mtorp in #​11392 (50312)
  • ui:
    • Split-pane handle overlapping iframe  -  by @​macarie in #​11221 (f91db)
  • vitest:
    • Remove root temp dir on close  -  by @​abhinav-phi in #​11248 (7c711)
  • vm:
    • Do not optimize deps from index.html  -  by @​ezefernandezyf, Hiroshi Ogawa and Codex (GPT-6) in #​11329 and #​11360 (caf28)
    • Don't reuse scripts across vite environments  -  by @​MO2k4, Martin Oehlert and Claude in #​11395 (346d3)
    View changes on GitHub

v5.0.2

Compare Source

   🐞 Bug Fixes
  • Bind process in case global is overwritten  -  by @​AriPerkkio in #​11343 (0b792)
  • detect-async-leaks:
    • Ignore process.stdio handles  -  by @​AriPerkkio in #​11333 (0fd6b)
  • expect:
    • Fix toMatchObject with asymmetric matchers  -  by @​ShreeBohara, Claude Opus 5, @​hi-ogawa, Hiroshi Ogawa and Codex (GPT-5) in #​11100 (42523)
  • jsdom:
    • Fix Request with Blob body on jsdom 28+  -  by @​harshit-d3v in #​11295 (d1c3e)
  • reporter:
    • agent to respect --silent  -  by @​Raj4478 and @​AriPerkkio in #​11271 (5b95e)
  • reporters:
    • Handle concurrent createReport calls  -  by @​7rulnik in #​11278 (e8e55)
    • hanging-process to use ESM entrypoint  -  by @​AriPerkkio in #​11316 (4e91e)
  • spy:
    • Fix stack overflow when spying Set.prototype.add  -  by @​fengmk2 in #​11299 (a0a93)
  • ui:
    • Persist authentication cookie beyond current browser session  -  by @​hi-ogawa, Hiroshi Ogawa and OpenCode (gpt-5.6-sol) in #​11066 (f8819)
    View changes on GitHub

v5.0.1

Compare Source

   🚀 Features
  • ui:
    • Move trace attempts selector to viewer header  -  by @​hi-ogawa, Hiroshi Ogawa and Codex in #​11189 (5dc4b)
    • Add focused trace view layout mode  -  by @​hi-ogawa, Hiroshi Ogawa, OpenCode (gpt-5.6-sol) and Codex in #​11190 (376dc)
   🐞 Bug Fixes
  • Exit 1 when vitest list fails collection  -  by @​hamed-bavar in #​11145 and #​11146 (6108b)
  • Keep parse error details in static collection  -  by @​hamed-bavar in #​11150 and #​11151 (7c818)
  • Avoid recursive prototype in automocking  -  by @​sheremet-va in #​11195 (99fc5)
  • Prevent false Vitest import resolution  -  by @​sheremet-va in #​11196 (b426c)
  • Keep metadata file when clearing the cache  -  by @​sheremet-va in #​11199 (73614)
  • Correct typos in error message and comments  -  by @​shinji00222 and Shinji in #​11187 (115c3)
  • Resolve ResolvedConfig exactOptionalPropertyTypes errors  -  by @​LukeAbby in #​11175 (498fb)
  • Share the server on self-referencing extends  -  by @​sheremet-va in #​11034 (23dda)
  • Warn when deprecated deps.optimizer.web is used  -  by @​im10furry in #​11214 (2ce29)
  • browser:
    • Avoid double quotes in config.define  -  by @​sheremet-va in #​11198 (972e2)
  • doctor:
    • Measure vm pools for custom environments  -  by @​sheremet-va in #​11212 (91ab1)
  • expect:
    • Correct return value in toMatchAriaSnapshot  -  by @​sheremet-va in #​11208 (c119b)
  • fakeTimers:
    • Force queueMicrotask and nextTick in toNotFake  -  by @​kingmakeruix, kingmakeruix, Hiroshi Ogawa, Codex and @​hi-ogawa in #​11261 (a47d7)
  • snapshot:
    • Report obsolete keys next to skipped tests  -  by @​hamed-bavar, Hiroshi Ogawa and OpenCode (gpt-5.6-sol) in #​11157 and #​11158 (17e2b)
  • types:
    • Make public declarations self-contained  -  by @​ZoeySigel in #​11141 (45546)
  • ui:
    • Fix collapse/expand suite with file name search  -  by @​hi-ogawa, Hiroshi Ogawa and Codex in #​11260 (0a712)
    • Fix explorer file summary count  -  by @​hi-ogawa, Hiroshi Ogawa, OpenCode (gpt-5.6-sol) and Codex in #​11125 (05982)
  • utils:
    • Fix deepMerge to handle prototype  -  by @​hi-ogawa, Hiroshi Ogawa and Codex in #​11215 (4944c)
    View changes on GitHub

v5.0.0

Compare Source

Vitest 5 is officially out! This release focuses on performance and brings a lot of new features while fixing long-standing bugs. See our blog post for the official announcement.

   🚨 Breaking Changes
  • Replace loupe.inspect with pretty-format  -  by @​hi-ogawa, Claude Opus 5 (1M context) and OpenAI Codex in #​9609 (3f802)
  • Remove quotes from string values in test.for/each title $ variable (take 2)  -  by @​hi-ogawa in #​10170 (04d37)
  • Default attachmentsDir from .vitest-attachements/ to .vitest/attachments/  -  by @​MdSadiqMd in #​10186 (1ba73)
  • Remove sequential test/suite options in favor of concurrent  -  by @​hi-ogawa and OpenAI Codex in #​10198 (9229f)
  • Represent locator as an object instead of a string  -  by @​sheremet-va in #​10212 (80f07)
  • Inline expect package  -  by @​sheremet-va in #​10221 (ad162)
  • Remove deprecated entry points  -  by @​sheremet-va in #​10222 (994c6)
  • Require Node.js 22 and Vite 6.4  -  by @​sheremet-va in #​10178 (38762)
  • Fail expect.poll when function didn't resolve in time  -  by @​hi-ogawa and OpenAI Codex in #​10233 (4df04)
  • Throw an error if hoistable methods are outside the top level scope  -  by @​sheremet-va in #​10460 (d0b4f)
  • toHaveTextContent is strict, add toMatchTextContent as alternative  -  by @​sheremet-va in #​10473 (18f30)
  • Don't lookup config file from ancestor directories  -  by @​hi-ogawa, OpenAI Codex and Hiroshi Ogawa in #​10428 (945d9)
  • Inline @vitest/runner package, do not publish it anymore  -  by @​sheremet-va in #​10511 (6d6e4)
  • Allow mutating happy-dom/jsdom window object  -  by @​hi-ogawa, Hiroshi Ogawa and OpenAI Codex in #​10373 (206e8)
  • Expose concurrencyId/workerId on TestModule's diagnostics, make id 1-based  -  by @​sheremet-va in #​10516 (bdd98)
  • Add screenshotDirectory config to browser.expect.toMatchScreenshot  -  by @​macarie in #​10592 (a60de)
  • Update @sinonjs/fake-timers and support mocking Temporal  -  by @​hi-ogawa, Hiroshi Ogawa and OpenCode (gpt-5.6-sol) in #​10654 (f8b15)
  • Remove webdriverio package  -  by @​sheremet-va in #​10675 (5fed6)
  • Clear mocks by default before each test  -  by @​sheremet-va in #​10613 (0f646)
  • Don't emit localStorage warnings on Node 26, fail gracefully when worker fails to start  -  by @​sheremet-va in #​10293 (334ed)
  • Separate config resolution from the server creation  -  by @​sheremet-va in #​10554 (1c0ec)
  • Inline projects extend the root config by default  -  by @​sheremet-va in #​10750 (fec00)
  • Enable mocking Temporal without fake timers  -  by @​fabon-f, Hiroshi Ogawa and OpenCode (gpt-5.6-sol) in #​10757 (ac2d4)
  • Support nested projects  -  by @​sheremet-va in #​10846 (ec367)
  • Use > as separator in -t, calculate only once  -  by @​sheremet-va in #​10686 (a0b20)
  • Fail the test when an asynchronous assertion is not awaited  -  by @​sheremet-va in #​10868 (86d4a)
  • Share the Vite server between inline projects  -  by @​sheremet-va in #​10848 (d87c9)
  • Parse files statically in vitest list by default  -  by @​sheremet-va in #​11088 (51e94)
  • benchmark:
    • Rewrite the public API  -  by @​sheremet-va in #​10113 (19f6e)
  • browser:
    • Iframe scale  -  by @​macarie in #​9745 (b6398)
    • Enable locators.exact by default  -  by @​sheremet-va in #​10430 (e2032)
    • Require sessionId for orchestrator html request  -  by @​hi-ogawa, Hiroshi Ogawa and OpenAI Codex in #​10522 (79b7d)
    • Save failure screenshots in attachmentsDir  -  by @​macarie in #​10917 (3b5bb)
  • coverage:
    • include/exclude globs too eager  -  by @​AriPerkkio in #​9818 (edacb)
    • Allow thresholds.perFile to accept an object  -  by @​vladlenskiy and @​AriPerkkio in #​10190 (13b78)
  • expect:
    • Fix toThrow("") behavior by reverting #​6710  -  by @​hi-ogawa in #​9643 and #​6710 (6c3e4)
  • mocker:
    • Deserialize automock as automock  -  by @​nami8824 in #​10192 (2f892)
  • reporters:
    • blob reporter and --merge-reports default to .vitest/blob/  -  by @​AriPerkkio in #​10232 (d22b0)
    • Write json and junit reporter output files to .vitest by default  -  by @​hi-ogawa, Hiroshi Ogawa, OpenCode (gpt-5.6-sol) and @​AriPerkkio in #​10621 (58577)
  • spy:
    • Preserve class mock prototype methods on instances  -  by @​sheremet-va in #​10910 (6093d)
  • types:
    • Add better promise support in expects and matchers  -  by @​samchungy and @​sheremet-va in #​8266 (41f55)
  • ui:
    • Harden UI API access  -  by @​hi-ogawa, Hiroshi Ogawa and OpenAI Codex in #​10583 (4c26d)
    • Change html reporter default output to .vitest  -  by @​hi-ogawa and Hiroshi Ogawa in #​10620 (29c36)
   🚀 Features
  • Add createReport and .vitest report directory convention  -  by @​AriPerkkio in #​9993 (72a6d)
  • Expose default reporters through configDefaults.reporters  -  by @​hi-ogawa and Claude Opus 5 (1M context) in #​10219 [(083f6)](https://redirect.github.com/vitest-dev/vit

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@renovate
renovate Bot requested review from a team and dezren39 as code owners September 10, 2026 17:17
@renovate
renovate Bot force-pushed the renovate/npm-vitest-vulnerability branch from 605b1ae to b0f34a1 Compare September 11, 2026 00:38
@renovate renovate Bot changed the title Update dependency vitest to v5 [SECURITY] Update dependency vitest to v4 [SECURITY] Sep 11, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vitest-vulnerability branch from b0f34a1 to 3ffc5fe Compare September 15, 2026 12:48
@renovate renovate Bot changed the title Update dependency vitest to v4 [SECURITY] Update dependency vitest to v5 [SECURITY] Sep 15, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vitest-vulnerability branch from 3ffc5fe to a9cca7e Compare September 16, 2026 01:41
@renovate renovate Bot changed the title Update dependency vitest to v5 [SECURITY] Update dependency vitest to v4 [SECURITY] Sep 16, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vitest-vulnerability branch from a9cca7e to 3950899 Compare September 16, 2026 12:29
@renovate renovate Bot changed the title Update dependency vitest to v4 [SECURITY] Update dependency vitest to v5 [SECURITY] Sep 16, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vitest-vulnerability branch from 3950899 to 6cd9f28 Compare September 17, 2026 00:57
@renovate renovate Bot changed the title Update dependency vitest to v5 [SECURITY] Update dependency vitest to v4 [SECURITY] Sep 17, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vitest-vulnerability branch from 6cd9f28 to a5e62b5 Compare September 17, 2026 20:52
@renovate renovate Bot changed the title Update dependency vitest to v4 [SECURITY] Update dependency vitest to v5 [SECURITY] Sep 17, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vitest-vulnerability branch from a5e62b5 to bf751d2 Compare September 18, 2026 03:03
@renovate renovate Bot changed the title Update dependency vitest to v5 [SECURITY] Update dependency vitest to v4 [SECURITY] Sep 18, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vitest-vulnerability branch from bf751d2 to 026b055 Compare September 18, 2026 19:37
@renovate renovate Bot changed the title Update dependency vitest to v4 [SECURITY] Update dependency vitest to v5 [SECURITY] Sep 18, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vitest-vulnerability branch from 026b055 to 947c552 Compare September 19, 2026 00:54
@renovate renovate Bot changed the title Update dependency vitest to v5 [SECURITY] Update dependency vitest to v4 [SECURITY] Sep 19, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vitest-vulnerability branch from 947c552 to 622eae6 Compare September 24, 2026 01:47
@renovate renovate Bot changed the title Update dependency vitest to v4 [SECURITY] Update dependency vitest to v5 [SECURITY] Sep 24, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vitest-vulnerability branch from 622eae6 to 4ece4f1 Compare September 25, 2026 12:30
@renovate renovate Bot changed the title Update dependency vitest to v5 [SECURITY] Update dependency vitest to v4 [SECURITY] Sep 25, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vitest-vulnerability branch from 4ece4f1 to 3dae6e8 Compare October 1, 2026 15:35
@renovate renovate Bot changed the title Update dependency vitest to v4 [SECURITY] Update dependency vitest to v5 [SECURITY] Oct 1, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vitest-vulnerability branch from 3dae6e8 to a20373d Compare October 1, 2026 19:10
@renovate renovate Bot changed the title Update dependency vitest to v5 [SECURITY] Update dependency vitest to v4 [SECURITY] Oct 1, 2026
@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Review in Change Stack →

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7f9a0930-f74f-4523-a4ee-94e56a13c12d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

  • Last reviewed commit: d41f1b2
  • Latest commit, not reviewed: 963fc55

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

The web package updates the Vitest development dependency range from ^3.2.7 to ^4.1.11.

Changes: Web Test Dependency

Layer / File(s) Summary
Update Vitest version range
pkgs/id/web/package.json
The declared Vitest development dependency range changes from ^3.2.7 to ^4.1.11.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Merge Risk: 🔵 Low · up to d41f1

The Nix unit check still uses Vitest 3.2.7, so it will not validate this upgrade. Regenerate its dependency source before relying on that check; the issue is limited to test confidence.

Architecture risk: 🔵 Low · up to d41f1

The change affects 1 system.

Changed systems: pkgs

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — pkgs (ui) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in pkgs/id/web/package.json: The vitest devDependency range changed from ^3.2.7 to ^4.1.11.
Pre-merge checks | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly identifies the Vitest dependency update and its security purpose. It matches the main change in the pull request.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@renovate
renovate Bot force-pushed the renovate/npm-vitest-vulnerability branch from a20373d to c1556ad Compare October 5, 2026 17:13
@renovate renovate Bot changed the title chore(deps): update dependency vitest to v4 [security] chore(deps): update dependency vitest to v5 [security] Oct 12, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vitest-vulnerability branch from 6127bcd to 5ffb141 Compare October 12, 2026 10:23
@renovate renovate Bot changed the title chore(deps): update dependency vitest to v5 [security] chore(deps): update dependency vitest to v4 [security] Oct 12, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vitest-vulnerability branch from 5ffb141 to 0fc1acb Compare October 12, 2026 11:07
@renovate renovate Bot changed the title chore(deps): update dependency vitest to v4 [security] chore(deps): update dependency vitest to v5 [security] Oct 12, 2026
@dezren39 dezren39 mentioned this pull request Oct 18, 2026
Stale open PRs: 16 Renovate updates (12 security) and platform-ssh-world #211 with merge conflicts #311
Closed
2 tasks
renovate Bot and others added 10 commits October 22, 2026 18:10
@renovate
Update dependency @chenglou/pretext to ^0.0.9 [SECURITY]
5f9be65
@renovate
Update dependency happy-dom to v21 [SECURITY]
a00cf8c
@renovate
Update dependency vitest to v5 [SECURITY]
0235faf
@dezren39
Merge remote-tracking branch 'origin/main' into tmp-132
832ce17
@dezren39
fix(web): regenerate bun.nix for pretext 0.0.9
3f9472c
@dezren39
Merge remote-tracking branch 'origin/main' into tmp-136
3ca44cb
@dezren39
Merge remote-tracking branch 'origin/renovate/npm-chenglou-pretext-vu…
f62cd76
…lnerability' into tmp-136
@dezren39
fix(web): regenerate bun.nix and guard canvas tests for happy-dom 21
522771e
happy-dom 21 defines OffscreenCanvas but getContext('2d') returns null, so the canvas-presence guard in wrap.test.ts now checks the context. The same 9 measureContent tests stay skipped under happy-dom and still run in real browsers.
@dezren39
Merge remote-tracking branch 'origin/main' into tmp-140
40b7707
@dezren39
fix(web): regenerate bun.lock and bun.nix for vitest 5
963fc55
@renovate

renovate Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Oct 28, 2026
mcpx: design a comprehensive docs and testing strategy #1892
Open
mcpx: the backlog build-out — every theme, in one order, with the disagreements between them (super tracker) #1900
Open
mcpx testing: a fast, sharded CI with a time budget, linters and auto-format #1901
Closed
mcpx testing: integration tests for every feature, across environments #1905
Closed
mcpx testing: CI workflow skeleton -- init, matrix, final job; triggers, concurrency, caching, checkout #1985
Closed
mcpx testing: extended platforms -- which artifacts ship static; alpine, scratch, distroless, flatpak, Fedora, Windows tiers #1987
Closed
mcpx testing: shard the suite by measured time, and a rule for when to stop splitting #1994
Closed
mcpx testing: every formatter and linter in the CI matrix, pinned by the flake (and run the plugin's bun test) #1996
Closed
mcpx testing: format.yaml -- auto-format after a green run; PR head vs main #1997
Closed
mcpx testing: first CI iteration -- unit + e2e shards + lint + nix build, and a recorded baseline #1998
Closed
ci(mcpx): first measured iteration — static e2e shards + unit + lint + ci-ok (#1998) #2888
Merged
@dezren39 dezren39 mentioned this pull request Nov 13, 2026
Retroactive home for PR #140: Update dependency vitest to v5 [SECURITY] #9297
Closed
@dezren39 dezren39 mentioned this pull request Nov 21, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] left review comments
@dezren39 dezren39 Awaiting requested review from dezren39

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@dezren39 dezren39

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.