Repository navigation
Pin bundled zod to 4.6.6 (GHSA-mrhx-c7xc-m3w5) - #119
Draft
MaheshtheDev wants to merge 1 commit into
Draft
MaheshtheDev wants to merge 1 commit into
MaheshtheDev wants to merge 1 commit into
Conversation
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Security: zod bundled into dist
dependencies;bun buildinlines zod (viatool()from@opencode-ai/plugin) intodist/index.js,dist/server.jsanddist/v2/index.js.@opencode-ai/pluginand@opencode/pluginpinzodto exactly4.1.8, so a lockfile bump is not possible and anoverridesentry is used.Change:
"overrides": {"zod": "4.6.6"}in package.json plus the matching bun.lock edit (zod entry and integrity from the registry; bun also re-keyed some nested effect entries, +14/-14 lines total).bun install --frozen-lockfilepasses,bun run typecheck,bun test(33 pass) andbun run buildpass.Other first-pass findings are not fixed here, all dev-only: seroval (via solid-js peer), toml-node and undici (via
@opencode-ai/plugin-> effect), http-cache-semantics and undici 6.x (via@opencode/util-> pacote/node-gyp). I built dist and confirmed none of them end up in the bundle; the published package has no runtime dependencies.Release consequence of merging to main
.github/workflows/release.ymlruns on push to main whenpackage.jsonchanges (this PR does). It publishes to npm only if thepackage.jsonversion differs from the version on npm. The version here is 2.0.17, already published, so merging will not publish. Users get the fixed zod only after a version bump is merged (a separate decision; I did not bump the version).