Skip to content

fix(deps): bump hono→4.12.26 and vite→8.0.16 (clears 7 Dependabot alerts)#31

Merged
stxkxs merged 2 commits into
mainfrom
deps-bump-hono-vite-security
Jun 20, 2026
Merged

fix(deps): bump hono→4.12.26 and vite→8.0.16 (clears 7 Dependabot alerts)#31
stxkxs merged 2 commits into
mainfrom
deps-bump-hono-vite-security

Conversation

@stxkxs

@stxkxs stxkxs commented Jun 20, 2026

Copy link
Copy Markdown
Member

See commit message for full details.

Summary

  • Bumps two transitive deps to patched versions — package-lock.json only, no package.json change, no breaking jumps.
  • hono 4.12.23 → 4.12.26 (via @anthropic-ai/claude-agent-sdk + @hono/node-server) — clears 5 advisories incl. the HIGH CORS-wildcard-with-credentials.
  • vite 8.0.7 → 8.0.16 (via vitest) — clears 2 advisories incl. the HIGH server.fs.deny bypass.
  • Verified: npm audit → 0 vulnerabilities; npm run build + full vitest suite (302 tests) pass.

Resolves all 7 open Dependabot alerts (#1#7).

stxkxs and others added 2 commits June 19, 2026 20:39
Resolves all 7 open Dependabot alerts on the repo. Both packages are
transitive — neither is a direct dependency — so the fix is confined to
package-lock.json; package.json is unchanged and there are no breaking
version jumps (both bumps stay within the installed major).

hono 4.12.23 → 4.12.26 (pulled in via @anthropic-ai/claude-agent-sdk and
@hono/node-server) clears 5 advisories:
- GHSA-88fw-hqm2-52qc (HIGH) CORS middleware reflects any Origin with
  credentials when origin defaults to wildcard
- GHSA-rv63-4mwf-qqc2  Body Limit middleware bypass on AWS Lambda via
  understated Content-Length
- GHSA-wgpf-jwqj-8h8p  Lambda@Edge adapter drops repeated request headers
- GHSA-wwfh-h76j-fc44  serve-static path traversal on Windows via %5C
- GHSA-j6c9-x7qj-28xf  Lambda adapter merges Set-Cookie headers, dropping
  cookies on ALB single-header / Lattice

vite 8.0.7 → 8.0.16 (pulled in via vitest) clears 2 advisories:
- GHSA-fx2h-pf6j-xcff (HIGH) server.fs.deny bypass on Windows alt paths
- GHSA-v6wh-96g9-6wx3  launch-editor NTLMv2 hash disclosure on Windows UNC

Verified: `npm audit` reports 0 vulnerabilities; `npm run build` and the
full vitest suite (302 tests, 23 files) pass on the bumped tree.

Co-authored-by: stxkxsbot <275011021+stxkxsbot@users.noreply.github.com>
…ssions

Folds the code-scanning half of the security sweep into this PR so it clears
all 11 of fab's open alerts (the 7 Dependabot advisories + these 4 CodeQL).

- js/polynomial-redos (high) ×2:
  - src/workflows.ts parseIntakeJson: the greedy /\{[\s\S]*\}/ backtracks
    O(n²) on input full of unmatched braces. Replaced with indexOf('{') +
    lastIndexOf('}') + slice — the same first-brace-to-last-brace span in
    linear time, behavior-identical.
  - src/git.ts slugForBranch: /^-+|-+$/g's -+$ alternative backtracks. After
    the prior /[^a-z0-9]+/g collapse, leading/trailing dashes are always
    single, so /^-|-$/g is equivalent; the /-{2,}/g pass was already dead code
    (the collapse leaves no runs) and is dropped.
- actions/missing-workflow-permissions (medium) ×2: added a least-privilege
  top-level `permissions: contents: read` to .github/workflows/ci.yml; both
  jobs only read.

build / lint / format / test all pass; slug + JSON-extraction behavior verified
unchanged.

Co-authored-by: stxkxsbot <275011021+stxkxsbot@users.noreply.github.com>
@stxkxs stxkxs marked this pull request as ready for review June 20, 2026 04:07
@stxkxs stxkxs merged commit ba8d9f6 into main Jun 20, 2026
5 checks passed
@stxkxs stxkxs deleted the deps-bump-hono-vite-security branch June 20, 2026 04:07
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.

1 participant