fix(deps): pin hono to 4.13.3 and nanoid to 3.3.18 - #395
Open
d-cryptic wants to merge 1 commit into
Open
Conversation
Clears all 29 Oneleet dependency-scanning findings on this repo - and 4 more that the scanner did not surface. javascript-sdks/ hono 4.12.9 + 4.12.30 -> 4.13.3 javascript-sdks/legacy/n8n exporter nanoid 3.3.8 -> 3.3.18 hono carried 27 CVEs at 4.12.9, mostly cookie handling and routing: setCookie() missing cookie-name validation, sameSite/priority not sanitised (Set-Cookie injection), and app.mount() stripping the mount prefix using an undecoded path, causing incorrect routing. The lockfile actually held TWO hono ranges - ^4.11.4 resolving to 4.12.9 and ^4.8.3 resolving to 4.12.30. Only 4.12.9 was flagged, but 4.12.30 carries 4 advisories of its own, so the scanner under-reported. A single resolution collapses both to 4.13.3, which OSV reports clean - 31 advisories closed rather than 27. hono is transitive (no workspace package declares it directly), so this is a resolutions pin. nanoid lives in the legacy n8n exporter's own separate yarn.lock, not the main workspace tree - which is why the root resolutions entry (nanoid 6.0.1) never applied to it. Pinned to 3.3.18 there: OSV shows CVE-2026-67213 was backported to the 3.x line, so the 3.x -> 6.x major jump is unnecessary. CVE-2026-67213 [{introduced: 0}, {fixed: 3.3.18}] [{introduced: 4.0.0}, {fixed: 5.1.6}] Both locks regenerated with yarn 4.9.2 via corepack, --mode=update-lockfile. Refs DEV-11091
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.
Clears all 29 Oneleet dependency-scanning findings on this repo — and 4 more the scanner did not surface.
Changes
javascript-sdks/honojavascript-sdks/legacy/respan-exporter-n8n/nanoidThe scanner under-reported hono
The lockfile held two hono ranges —
^4.11.4resolving to 4.12.9, and^4.8.3resolving to 4.12.30. Only 4.12.9 was flagged, but 4.12.30 carries 4 advisories of its own. A single resolution collapses both to 4.13.3.Verified against OSV:
33 advisories closed, against the 29 the scanner reported.
The hono set is mostly cookie handling and routing:
setCookie()missing cookie-name validation,sameSite/prioritynot sanitised (Set-Cookie injection), andapp.mount()stripping the mount prefix using an undecoded path, causing incorrect routing. The most severe is CVE-2026-54290 (HIGH 7.1) — CORS middleware reflecting any Origin with credentials whenorigindefaults to the wildcard.hono is transitive here (no workspace package declares it directly), so this is a
resolutionspin rather than a dependency bump.nanoid stays on the 3.x line
nanoidlives in the legacy n8n exporter's own separateyarn.lock, not the main workspace tree — which is why the rootresolutionsentry (nanoid 6.0.1) never applied to it.Pinned to 3.3.18, not npm
latest. OSV shows the fix was backported to the 3.x line, so the 3.x -> 6.x major jump is unnecessary:Lockfiles
Both regenerated with yarn 4.9.2 via
corepack,--mode=update-lockfile. The diff is 11 insertions / 16 deletions across 4 files — tworesolutionsentries and the resulting lock changes, nothing else. Collapsing the two hono ranges into one is why the main lock shrinks.Ref: DEV-11091