fix(deps): upgrade locked wrangler toolchain to 4.120.1 (npm audit: 4 high -> 0) - #101
Conversation
…audit findings wrangler 4.103.0 pulled miniflare -> sharp <0.35.0 (GHSA-f88m-g3jw-g9cj, libvips CVEs) and undici 7.0.0-7.28.0 (GHSA-8xcm-r25x-g524 and four more). 4.120.1 ships miniflare 5.20260804.0-alpha with sharp 0.35.2 and undici 7.29.0. npm audit is now clean.
…current main (#PR)
There was a problem hiding this comment.
nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
📝 WalkthroughWalkthroughWrangler was upgraded from ChangesWrangler audit fix
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/evidence/wrangler-toolchain-audit-fix-2026-08-11.md`:
- Around line 60-65: Remove the developer-specific /home/nish/package.json
reference from the note and replace it with a neutral, non-identifying
placeholder while preserving the surrounding explanation.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 0edcb2c6-6726-4973-a3b5-ad03009118e1
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (2)
docs/evidence/wrangler-toolchain-audit-fix-2026-08-11.mdpackage.json
| (One local-environment note: this machine has a stray empty | ||
| `/home/nish/package.json` outside the repo that breaks Node tooling which | ||
| walks three directory levels up from a worktree; the dry-run was | ||
| re-verified with that file moved aside and in a same-depth copy under | ||
| `/tmp`, and passes in both. The self-hosted CI runner checks out under | ||
| `/var/lib/github-runners/verify*/_work/…`, where no such file exists.) |
There was a problem hiding this comment.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
Remove the developer-specific absolute path.
The receipt commits /home/nish/package.json, which exposes a local username and filesystem detail. Replace it with a neutral placeholder before committing the receipt.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/evidence/wrangler-toolchain-audit-fix-2026-08-11.md` around lines 60 -
65, Remove the developer-specific /home/nish/package.json reference from the
note and replace it with a neutral, non-identifying placeholder while preserving
the surrounding explanation.
There was a problem hiding this comment.
nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ab0db5ad5c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| wrangler-bundled Worker, so this PR changes no served bytes. CI runs the same | ||
| gates (`npm ci`, `npm test`, Chromium render-blocking check, | ||
| `wrangler deploy --dry-run`) against this PR before merge. |
There was a problem hiding this comment.
Verify the bundle with the locked Wrangler
When the npm latest tag advances beyond 4.120.1, this statement no longer describes the CI gate: the inspected .github/workflows/ci.yml bundle step runs npx wrangler@latest deploy --dry-run, so it can validate a remotely fetched newer release rather than the version pinned by this PR. The local npx --help explicitly accepts <pkg>[@<version>] from a local or remote package, making the @latest override intentional; use the existing npm run deploy:dry-run script (or unversioned local binary) so CI actually verifies the locked toolchain documented here.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
There was a problem hiding this comment.
nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
There was a problem hiding this comment.
nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
There was a problem hiding this comment.
nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
There was a problem hiding this comment.
nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
What
The lockfile pinned
wrangler 4.103.0, whoseminiflare 4.20260617.1chain pulled vulnerablesharp <0.35.0(GHSA-f88m-g3jw-g9cj, libvips CVEs CVE-2026-33327/33328/35590/35591) andundici 7.0.0-7.28.0(GHSA-8xcm-r25x-g524, GHSA-4cwx-7wf7-3272, GHSA-m8rv-5g2x-5cg5, GHSA-jr45-8vmc-qm54, GHSA-v3r7-h72x-cjcm) — four high-severitynpm auditfindings.package.json:wrangler ^4.93.0→^4.120.1(range floor raised to the first fixed release so the lock cannot resolve back below it).package-lock.jsonregenerated:wrangler 4.120.1→miniflare 5.20260804.0-alpha→sharp 0.35.2,undici 7.29.0. No other dependency changed; no served bytes change (build-toolchain only).docs/evidence/wrangler-toolchain-audit-fix-2026-08-11.md: closeout receipt.Verification
npm audit: 0 vulnerabilities (was 4 high).npm test: all suites green (exit 0), includingnpm run check.npm run check:render-blocking: all six pages pass in real Chromium.wrangler deploy --dry-run(4.120.1): bundles cleanly, 30 assets, binds DB/AI/ASSETS.Closes the unreviewed-by-grok review item "Upgrade the locked Wrangler toolchain from 4.103.0 to a fixed release — npm audit now reports [4 high]".
Summary by CodeRabbit
Chores
Documentation