chore(deps): bump `@hono/node-server` to `2.1.6` in `package-lock.json` (2 advisories)

未關閉 適合新手
#5,545 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
68/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
node.js, typescript

研究方向

從根目錄的 package.json 和 package-lock.json 開始,其中 node_modules/@hono/node-server 被鎖定在 2.1.4,然後閱讀 AGENTS.md 中的 Dependencies 章節。新增一個 overrides 項目,將 @hono/node-server 固定為 >=2.1.6,接著重新產生 lockfile,並確認鎖定的副本為 2.1.6 或更新版本。當分支上的 node scripts/dependabot-alerts.mjs --dry-run 回報兩個 advisory 皆已清除時,即完成。

由索引模型根據 Issue 內容生成。

描述

chore dependencies v2

Filed automatically from 2 open Dependabot alerts by the daily alert sweep (#4874). The fix is written by hand against v2/main.

Package @hono/node-server (npm)
Manifest package-lock.json
Vulnerable on v2/main 2.1.4
Bump to 2.1.6: the lowest listed patched version that no range below covers
Scope runtime
Highest severity medium

Advisories

GHSA CVE Severity Vulnerable range Fixed in Summary
GHSA-jpvv-r467-5p4w CVE-2026-126210 medium >= 2.0.0, < 2.1.6 2.1.6 @hono/node-server: Backslash in the request path is parsed as a path separator, bypassing path-based access control at a reverse proxy
GHSA-qv5m-9pm6-hqp3 CVE-2026-126343 medium >= 2.0.0, < 2.1.6 2.1.6 @hono/node-server: Unhandled ECONNRESET on the socket during an asynchronous WebSocket upgrade crashes the process

Fix

Add an overrides entry in the root package.json pinning @hono/node-server to >=2.1.6, for the copies below, which no declared range reaches. Not npm audit fix, which can resolve an advisory by silently downgrading.

Then verify before opening the PR: every locked copy must be outside every range in the Advisories table. node scripts/dependabot-alerts.mjs --dry-run against the branch should report this exposure cleared.

Vulnerable copy Version
node_modules/@hono/node-server 2.1.4

[!NOTE]
The GHSA, CVE, severity, range and summary are the advisory's own, as Dependabot reports them. What this sweep verified against v2/main is the installed versions and whether each advisory's range still matches them: GitHub computes alerts from the default branch, so an alert is filed only after that re-check.

主要語言
TypeScript
星號
92k
分支
12k
平均合併
3 小時 12 分鐘
30 天內合併 PR
174

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

modelcontextprotocol/servers 的其他 Issue

查看 modelcontextprotocol/servers 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。