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 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃

调研方向

从根目录的 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 摘要。