Skip to content

Update hono to fix five security advisories - #4408

Merged
capy-ai[bot] merged 2 commits into
mainfrom
update-hono-security-advisories
Nov 16, 2026
Merged

capy-ai[bot] merged 2 commits into
mainfrom
update-hono-security-advisories

Conversation

@garrytan

@garrytan garrytan commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Contributor checkouts now install hono 4.13.16, which fixes five advisories the weekly dependency scan found in 4.13.13, keeping gstack's own install free of known-vulnerable packages.

What changed

The new hono floor row fails on main's lockfile (4.13.13) and passes on this branch (4.13.16)

The new hono floor row fails on main's lockfile (4.13.13) and passes on this branch (4.13.16).

Before/after as text: The new hono floor row fails on main's lockfile (4.13.13) and passes on this branch (4.13.16)
--- Before · before.txt · captured output
+++ After · after.txt · captured output
+(pass) security dependency overrides > sharp resolves only versions at or above 0.35.4 [0.55ms]
+(pass) security dependency overrides > adm-zip resolves only versions at or above 0.6.1 [0.16ms]
+(pass) security dependency overrides > qs resolves only versions at or above 6.16.1 [0.28ms]
+(pass) security dependency overrides > @hono/node-server resolves only versions at or above 2.1.3 [0.20ms]
+(pass) security dependency overrides > hono resolves only versions at or above 4.13.16 [0.14ms]
+(pass) security dependency overrides > sharp is a declared dependency, and the pinned override satisfies every range that asks for it [0.86ms]
-(pass) security dependency overrides > sharp resolves only versions at or above 0.35.4 [0.81ms]
-(pass) security dependency overrides > adm-zip resolves only versions at or above 0.6.1 [0.15ms]
-(pass) security dependency overrides > qs resolves only versions at or above 6.16.1 [0.15ms]
-(pass) security dependency overrides > @hono/node-server resolves only versions at or above 2.1.3 [0.25ms]
-(fail) security dependency overrides > hono resolves only versions at or above 4.13.16 [0.22ms]
-(pass) security dependency overrides > sharp is a declared dependency, and the pinned override satisfies every range that asks for it [0.57ms]
 (pass) security dependency overrides > sharp loads the patched runtime [0.02ms]
+(pass) security dependency overrides > adm-zip still extracts ordinary archives [8.54ms]
+(pass) security dependency overrides > adm-zip refuses an extraction through a directory symlink [0.68ms]
+(pass) security dependency overrides > adm-zip refuses an extraction through a file symlink [0.40ms]
+ 10 pass
+ 0 fail
+Ran 10 tests across 1 file. [83.00ms]
-(pass) security dependency overrides > adm-zip still extracts ordinary archives [5.64ms]
-(pass) security dependency overrides > adm-zip refuses an extraction through a directory symlink [0.54ms]
-(pass) security dependency overrides > adm-zip refuses an extraction through a file symlink [0.32ms]
- 9 pass
- 1 fail
-Ran 10 tests across 1 file. [67.00ms]
 

Why

The weekly OSV scan on 2026-11-16 failed and filed #4406: "vulnerable dependency needs triage". It flagged five hono advisories (GHSA-3gg2-335m-rxc6, GHSA-46wx-v44x-9hh2, GHSA-4h7h-rv7c-7m2v, GHSA-4m76-xfj5-7975, GHSA-h7mg-cq63-vhpq), all fixed in 4.13.16. Moving the override clears the scan, and a new floor row in the dependency test stops the old version from coming back.

Blast radius

Only the dev and test toolchain changes. hono reaches gstack through @modelcontextprotocol/sdk (which asks for ^4.11.4) and @hono/node-server (peer ^4 || ^5.0.0-0), and both ranges accept 4.13.16. No tracked file imports hono and gstack never starts a hono server (git grep, read), and bun install --frozen-lockfile resolves the single 4.13.16 copy with no changes (script ran).

Summary

The scan reported five advisories in hono 4.13.13. This PR pins hono to 4.13.16 in the package.json overrides, regenerates bun.lock so it holds that one copy, and adds a hono >= 4.13.16 row to the lockfile floor check in test/dependency-security.test.ts, which fails on main and passes here. The contributor guide's description of that test now names hono too.

Test Coverage

All new code paths have test coverage: the one changed runtime input (bun.lock) has a changed test naming it.
Tests ran: deps 10
Tests ran: test 1671 (files, carried from CI run 43884585058)

Pre-Landing Review

No issues found.
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen ledgers_read=3 dispatches=1 est_input_tokens=1934
Gate edits: none detected (1 listed, 1 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Outside review: completed, clean (second-model review on openai/gpt-6.1-sol: no findings).

Review notes

Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.

  • INFORMATIONAL CONTRIBUTING.md:435 Contributor guide lists the dependency floors without hono
  • INFORMATIONAL changelog.d/update-hono-security-advisories.md:2 important: security fast-tracks a change whose advisories are unreachable in gstack
  • INFORMATIONAL package.json:110 hono 4.13.16 tightens RegExpRouter route acceptance; only matters if the MCP SDK registers an empty-matching pattern

The documentation audit later fixed the CONTRIBUTING.md note; see Documentation.

Exploratory QA

Functional smoke on the CLI surface, 4 captures, verdict pass. The floor check passes on the branch (10 pass, 0 fail). Against main's bun.lock and package.json only the new hono row fails (9 pass, 1 fail). bun install --frozen-lockfile reports no changes and the MCP SDK resolves hono 4.13.16. One capture was superseded: the first main-lockfile fixture lacked package.json, so the sharp row also failed there; the next capture fixed the fixture. Not covered: runtime use of the patched hono helpers, because gstack never imports hono.

Design Review

No frontend files changed — design review skipped.

Eval Results

No prompt-related files changed — evals skipped.

Review bot comments

No review bot comments.

Plan Completion

Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). This is a dependency security bug fix, exempt from plan review.

Issues

Fixes #4406

TODOS

No TODO items completed in this PR.

Documentation

Scope: the hono 4.13.13 to 4.13.16 security pin (package.json overrides, bun.lock, test/dependency-security.test.ts floor check, changelog.d fragment). I searched every Markdown doc and authored template for hono references.

Result: CONTRIBUTING.md's Dependency security regressions entry now lists hono among the version floors the test checks, matching the new test case. No other docs needed changes.

Debt: none.

Test plan

  • bun test test/dependency-security.test.ts: 10 pass, 0 fail
  • bun run test: carried from CI run 43884585058 at this tree (1671 files)
  • bun run build: ok
Agent notes

Refs #4406

Approvals

No approvals recorded for branch update-hono-security-advisories.
Plan: exempt: bug fix
Plan check: exempt bug fix

REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen ledgers_read=3 dispatches=1 est_input_tokens=1934
Gate edits: none detected (1 listed, 1 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)

{
  "schema_version": 1,
  "pr": 4408,
  "head": "14e7feebfbf3bd5b4226c0d973ef456ee94a600b",
  "version": "1.99.5.0",
  "base": "main",
  "gate": {
    "deps": {
      "pass": 10,
      "fail": 0,
      "skip": 0
    },
    "test": {
      "pass": 1671,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "test",
      "run": 43884585058,
      "attempt": 1,
      "tree": "30a6d3e4b0504063dd2c2bc714002559bf45c2f9"
    }
  ],
  "session_kind": "unattended",
  "head_tree": "30a6d3e4b0504063dd2c2bc714002559bf45c2f9",
  "product_patch_id": "1068eed308c7600f533112280382b623df310b2f",
  "gstack_version": "1.99.5.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 6,
    "rules": "66e5174161eecc2c",
    "base": "a15a0de7b1b2098ec59d158c90275adb75d7812b",
    "registry": "a15a0de7b1b2098ec59d158c90275adb75d7812b",
    "gate_scan": {
      "tagged": 0,
      "head": "14e7feebfbf3bd5b4226c0d973ef456ee94a600b"
    },
    "reasons": [
      "runtime=6"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @30a6d3e4b050 (8 checks, current for 14e7feebfbf3)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/43884585058/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=30a6d3e4b050 tests=37334 skipped=105 runs=43884585058/1 profiles=ci-reuse/free-tests heads=14e7feebfbf3 verified=2026-11-16T14:32:59.424Z"
  ],
  "issues": {
    "fixes": [
      4406
    ],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "README.md, CONTRIBUTING.md, CLAUDE.md, AGENTS.md, docs/, changelog.d/ (hono references and the dependency-security floor list)"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 0,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "est_input_tokens": 1934,
    "ledgers_read": 3,
    "dispatches": {
      "specialist-batched": 1
    }
  },
  "gate_dispositions": []
}

The weekly OSV scan flagged hono 4.13.13 with five advisories fixed in 4.13.16. hono comes in only through the dev toolchain (claude-agent-sdk, then the MCP SDK), so none was reachable.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

The dependency security test now checks hono >= 4.13.16; the contributor guide's description of that test names it too.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 5dcd76b into main Nov 16, 2026
60 checks passed
@garrytan garrytan mentioned this pull request Nov 17, 2026
capy-ai Bot added a commit that referenced this pull request Nov 17, 2026
- /autoplan's approval page no longer hides a reviewer's product objection behind "keep your direction". (#4431)
- Every skill that loads the shared preamble, on every host, now says to ask a question once and to check a file before handing it over. (#4383)
- The Captain manuals now name the `Failed or skipped:` and `Also changed:` lines that READY and lane reports carry. (#4432)
- gstack's shell locks hold again on Ubuntu 26.04, where `mkdir` reports success when another process won the race (GST-2247). (#4262)
- `test/gstack-lock-race.test.ts` runs the old pattern and the helper against a PATH shim that behaves like uutils 0.8.0 `mkdir`, so it runs on any runner image: the old pattern lets two of four racers win, the helper admits exactly one in each of 60 races and never overlaps across take, hold and release loops, and parallel `gstack-config` writers keep every key. (#4262)
- Windows Setup E2E now runs when `bin/gstack-lock.sh` changes. (#4433)
- Claude Code's skill list now says when to use each gstack skill, so Opus loads /review and /plan-eng-review when a request fits. (#4387)
- A pull request's merge head can no longer keep its `/ship` receipt without a full review. (#4365)
- `/ship` now counts review rounds per pull request, and the head that merges always gets a full review. (#4360)
- /ship's documentation audit no longer accepts a passing result when an earlier line from the same audit said "blocked". (#4434)
- /ship's documentation audit no longer spends an attempt when the audit child writes text after its result. (#4285)
- The README lists the two new guides, and the install doc counts its hooks right. (#4403)
- docs/releases.md now says the stable release cut treats a failed commit status as red and a pending one as still going, as it has since #4257. (#4436)
- /ship's `finish --docs-requested` now accepts a docs fix when the audit named the file with a line number. (#4437)
- Document the `.gstack/approval-classes.json` schema, `gstack-approval-classes` CLI commands, and owner approval citation format in `docs/ship-policy.md#approval-classes`. (#4355)
- `/eval-plan` now runs four result checks instead of leaving them to judgment. (#4384)
- The /review coverage-audit eval no longer fails a run that really read the source file when zsh stops a command line at an `echo ====` separator. (#4364)
- Sixteen in-repo documentation links reach their section again. (#4394)
- gstack agents now open every status report with what failed, what they didn't verify and what else they changed. (#4273)
- Two new short guides. (#4380)
- A skill you wrote whose contract still lists `check_after_last_edit` keeps the rest of its contract. (#4439)
- The ship policy guide now explains how to merge any pull request with `gstack-ship-queue land`, even in a repository with one maintainer. (#4377)
- /ship's test step runs a large unit suite on Linux. (#4426)
- Every skill that loads the shared preamble, on every host, now says never to print a whole environment, git config or process table. (#4382)
- Pull requests from /ship now open with at most three plain lines, and every merge lands as one commit titled with the PR title. (#4438)
- `gstack-pr-wait`, `gstack-ci-gate` and the release cut no longer call a commit green while a check on it failed. (#4257)
- `gstack-runaway` now says what a thread's cold and empty wakes cost, not just how many there were (GST-2770). (#4385)
- The optional Stop hook no longer checks for a test run after the last edit, and /verify asks for it in plain words instead. (#4428)
- /ship's test step says when it ran out of time, and you can set its budget. (#4429)
- The remote test command no longer puts every file on one command line. (#4429)
- The stable release no longer waits on the nightly Windows tests (GST-2815). (#4400)
- Ubicloud fan-outs can no longer overshoot the vCPU limit, and owners no longer delete each other's VMs. (#4430)
- hono is pinned to 4.13.16, which fixes five advisories the weekly OSV scan found in 4.13.13 (gstack#4406). (#4408)
- `package.json` overrides (#4408)
- `test/dependency-security.test.ts`: the lockfile floor check now covers `hono >= 4.13.16`. (#4408)
- The nightly Windows test run finishes again. (#4409)
- A short write-up checklist in ETHOS.md. (#4381)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OSV scanner: vulnerable dependency needs triage

1 participant