fix(deps): bump hono→4.12.26 and vite→8.0.16 (clears 7 Dependabot alerts)#31
Merged
Conversation
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>
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.
See commit message for full details.
Summary
package-lock.jsononly, nopackage.jsonchange, no breaking jumps.hono4.12.23 → 4.12.26 (via@anthropic-ai/claude-agent-sdk+@hono/node-server) — clears 5 advisories incl. the HIGH CORS-wildcard-with-credentials.vite8.0.7 → 8.0.16 (viavitest) — clears 2 advisories incl. the HIGHserver.fs.denybypass.npm audit→ 0 vulnerabilities;npm run build+ full vitest suite (302 tests) pass.Resolves all 7 open Dependabot alerts (#1–#7).