SRE-951: bump apps/hash-api nanoid pin to 3.3.18 [SECURITY] - #9231
Merged
Conversation
The exact pin sat at 3.3.17, still inside the affected range of GHSA-2v37-7h3g-55p8 (<3.3.18). Regenerating the lockfile with Yarn 4 removes the standalone nanoid@npm:3.3.17 entry and collapses the exact spec into the existing 3.3.18 resolution.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
1 task
PR SummaryCursor Bugbot is generating a summary for commit aaea4e3. Configure here. |
TimDiekmann
approved these changes
Aug 17, 2026
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.
Requested by Tim Diekmann · Slack thread
🌟 What is the purpose of this PR?
Finishes clearing GHSA-2v37-7h3g-55p8 (high) in
apps/hash-api.Before:
apps/hash-apipinnednanoidto the exact version3.3.17. npm's advisory range for GHSA-2v37-7h3g-55p8 is<3.3.18, so 3.3.17 is still affected —customAlphabet/customRandomloop forever when handed a size of 0. Because the pin is exact,yarn.lockcarried a separatenanoid@npm:3.3.17entry that no range resolution could move, even though the rest of the tree had already gone to 3.3.18.After: the pin is
3.3.18. The standalonenanoid@npm:3.3.17lockfile entry is gone, and the exact spec now shares the existing3.3.18resolution. Everynanoidversion still resolved in the tree (3.3.18 and 5.1.16) is outside the affected range.The earlier bump (#9182, 3.3.11 → 3.3.17) landed short of the fixed release: it stopped the old version matching the scanner without actually clearing the advisory.
Advisory closed
<3.3.18Verified against npm's bulk advisory endpoint (
registry.npmjs.org/-/npm/v1/security/advisories/bulk) per resolved version, not just by the old version disappearing:nanoid 3.3.17→ GHSA-2v37-7h3g-55p8, range<3.3.18, highnanoid 3.3.18→ no advisories;nanoid 5.1.16→ no advisoriesnanoid3.3.18 was published 2026-08-07 and is ~9 days old, so it clears the repo'snpmMinimalAgeGate: 7dwith no age-gate override needed.🔗 Related links
nanoidto v3.3.18 [SECURITY] #9221, which changed onlyapps/hash-api/package.json; Renovate could not regenerateyarn.lock(its runner has Yarn 1.22.22 against this repo'spackageManager: yarn@4.16.0), so the bump never reached the resolved tree.🚫 Blocked by
🔍 What does this change?
nanoidpin inapps/hash-api/package.jsonfrom3.3.17to3.3.18.yarn.lockwith Yarn 4 (--mode=update-lockfile), removing thenanoid@npm:3.3.17entry.Two files, three insertions, twelve deletions — the lockfile change is a removal, not just an addition.
Pre-Merge Checklist 🚀
🚢 Has this modified a publishable library?
This PR:
📜 Does this require a change to the docs?
The changes in this PR:
🕸️ Does this require a change to the Turbo Graph?
The changes in this PR:
None.
nanoid3.3.18 is a single patch release on the same line; its only change is the infinite-loop fix.🐾 Next steps
Two other
hashfindings from the 2026-08-17 scan are not addressed here:esbuild0.27.7 (GHSA-g7r4-m6w7-qqqr, low, Windows dev-server only). A fix now exists — 0.28.1 and 0.28.2 are published, correcting an earlier report that there was none. It is still not reachable by a parent bump alone:tsupis the blocker, with 8.5.1 the latest release and still capped atesbuild: ^0.27.0. Details in the scan thread.extract-zip2.0.1 (GHSA-jmr9-qjv8-65gv, high). Needspuppeteer-core22.15.0 → 25.x inapps/hash-ai-worker-ts; worth its own scoped ticket.🛡 What tests cover this?
No new tests — a dependency version bump with no API change. Existing CI covers
apps/hash-apibuild and tests.❓ How to test this?
grep -A2 'nanoid@npm' yarn.lockand confirm no3.3.17resolution remains.apps/hash-api/package.jsonpins3.3.18.