Repository navigation
fix(deps): patch Vitest mock registration vulnerabilities - #69
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Caution Review the following alerts detected in dependencies. According to your organization's Security Policy, you must resolve all "Block" alerts before proceeding. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
LGTM. This is a clean patch bump of the vitest dev dependency to pick up the two @ vitest/mocker security fixes.
What was reviewed:
package.json: vitest moves from 4.1.11 to 4.1.12 with the exact pin kept. Theoverridesblock,enginesand the other devDependencies are unchanged.package-lock.json: vitest and its seven@ vitest/*entries (expect, mocker, pretty-format, runner, snapshot, spy, utils) all move to 4.1.12. Each resolves to registry.npmjs.org and the internal pins between them agree.- The optional
@ vitest/browser-webdriveriopeer pin now reads^4.1.11. This reflects the upstream package metadata, and that package is not installed, so it has no effect here.
Extended reasoning...
The change bumps one dev dependency in package.json, and package-lock.json is regenerated to match. It touches no source code and no configuration. The upgrade fixes advisories in dev-only tooling, and it adds no new packages or registries to the lockfile. I could not check the integrity hashes against the registry from this environment, but the lockfile entries are consistent with each other. The change is small and mechanical, no CODEOWNERS file covers these paths, and the PR has no open reviewer objections.
7fcecc9 to
6475615
Compare
Upgrade Vitest from 4.1.11 to 4.1.12 so its transitive
@vitest/mockerdependency includes both security fixes. A client with access to a Vite development server using the public mocker plugins could otherwise read files outside the allowed directory on Windows or inject JavaScript into modules served to a developer's browser.Addresses Dependabot #11 (GHSA-xp26-3454-mjgp) and Dependabot #12 (GHSA-qxg6-89mg-rqv8). Both advisories identify 4.1.12 as patched. The installed package contains normalized redirect paths and JSON serialization of generated module URLs.
Only the Vitest pin and its matching
@vitest/*lockfile entries change. Vitest is development tooling here; the checked-in configurations use Node test runs and do not configure the public mocker plugins. Live developer-server exposure was not verified.Validation:
npm ci --ignore-scriptssucceeds;npm lsresolvesvitestand@vitest/mockerto 4.1.12, with Vite retained at 8.2.4.npm testpasses: type checking, JSON formatting, generated manifests, Gemini build, and all 48 tests.claude plugin validate --strict .andgh skill publish --dry-runpass.Prompted by: @sds