Skip to content

Commit 83cb78d

Browse files
docs(changeset): the hono bump note names the streamed-body 500 edge and which clients send a backslash (#33269)
<!-- claude-projects-attribution: {"github_login":"os-elon-musk"} --> _Requested by **Elon** · [project thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9DMscMg6AKHasj3ZXEDorLPH)_ Refs #33211 (landed as #33225) Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:只改 #33225 留下的那个待发布 changeset 里的两句话,不动任何代码。 - 为什么改:review#1 对 #33225 的两条可选意见(PASS 时提出)当时 PR 已进合并队列,没法补进去:一是 node-server 还有一处行为变化(响应流前两次读取出错时,原来发截断的 200,现在是 500 并断开连接),二是“HTTP 库都会把反斜杠变成 /”说得太宽,curl 会原样发送。 - 风险与回滚:只是发布说明文字。回滚 = revert。 - 先看:`.changeset/33211-hono-security-bump.md`。 - 两分钟验证:看本 PR 的 diff,两句话的改动。 - 需要你做的:无,A5 自审落地。 ## What changes **DELIBERATE CORRECTION** of the pending note `.changeset/33211-hono-security-bump.md` (from #33225), before a release consumes it: 1. The `Clause-②:` paragraph now also names the second edge that moves in `@hono/node-server`: a streamed response whose body stream errors within its first two reads was sent as a truncated `200` and is now a `500` (`text/plain`) with the socket closed; of ours, only the raw AI/MCP stream passthrough can meet it. 2. The BREAKING paragraph no longer says every HTTP library rewrites a backslash: browsers and WHATWG-URL clients (`fetch`, undici) do; `curl` sends it as written. Both are review#1's optional notes on #33225 at head `56fd8aeb`, which could not be folded in because that PR was already in the merge queue. `Check Changeset` stays red by design on this class (route 0: a PR that only corrects a pending note); it is not a required context. No `skip-changeset` label. ## Verification Text only: one file, 2 lines changed. No code, no test. --- _Generated by [Claude Code](https://claude.ai/code/session_016WV4cykhsWAtSL6Sr4VWFG)_ Co-authored-by: Claude <noreply@anthropic.com>
1 parent a1604ce commit 83cb78d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.changeset/33211-hono-security-bump.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010

1111
fix(deps)!: hono moves to ^4.13.16 and @hono/node-server to ^2.1.6, the releases that fix seven public advisories; a request path holding a backslash is answered 400
1212

13-
Clause-②: yes (narrowing) — `@hono/node-server` 2.1.6 answers `400 Bad Request` to a request whose path (the part before `?`) holds a backslash, before any route runs. Up to 2.1.5 the backslash was rewritten to `/` and the request reached the route that path names. A backslash after `?` is query data and answers as before. No other status, header, body or error text of ours moves; the request-body limit (`413 PAYLOAD_TOO_LARGE`) answers as before.
13+
Clause-②: yes (narrowing) — `@hono/node-server` 2.1.6 answers `400 Bad Request` to a request whose path (the part before `?`) holds a backslash, before any route runs. Up to 2.1.5 the backslash was rewritten to `/` and the request reached the route that path names. A backslash after `?` is query data and answers as before. One more edge moves in the same transport: a streamed response whose body stream errors within its first two reads used to be sent as a truncated `200`, and is now a `500` (`text/plain`) with the socket closed. Of ours, only a raw stream passthrough (the AI and MCP stream results) can meet it; the SSE path and the adapter's stream writer never error their stream. No other status, header, body or error text of ours moves; the request-body limit (`413 PAYLOAD_TOO_LARGE`) answers as before.
1414
Metadata-protocol: none
1515
Skills-docs: none — no skill under `skills/**` and no page under `content/docs/**` teaches request-path spelling at the HTTP door; the moved answer is the transport refusing a malformed request line.
1616

1717
<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value, metadata type, stored row or export is added, removed, renamed or re-shaped. What moves is the Node transport refusing a request line whose path holds a backslash, so there is nothing for an author or an operator to migrate. -->
1818

19-
**BREAKING** for a client that sends a backslash inside a URL path, such as `GET /api/v1/data\account`: the Node server now answers `400 Bad Request` where it used to route the request as `/api/v1/data/account`. Browsers and HTTP libraries already turn a backslash into `/` (or percent-encode it) before sending, so only a hand-built request line meets this. Send the path with `/`.
19+
**BREAKING** for a client that sends a backslash inside a URL path, such as `GET /api/v1/data\account`: the Node server now answers `400 Bad Request` where it used to route the request as `/api/v1/data/account`. Browsers and WHATWG-URL clients (`fetch`, undici) already turn a backslash into `/` before sending; other clients, `curl` among them, send it as written and meet this. Send the path with `/`.
2020

2121
The fixed advisories: `hono` GHSA-3gg2-335m-rxc6, GHSA-46wx-v44x-9hh2, GHSA-4h7h-rv7c-7m2v, GHSA-4m76-xfj5-7975 and GHSA-h7mg-cq63-vhpq (fixed in 4.13.16); `@hono/node-server` GHSA-jpvv-r467-5p4w and GHSA-qv5m-9pm6-hqp3 (fixed in 2.1.6). The declared ranges move so that a downstream install, which never sees this workspace's overrides, lands on the fixed releases too. The `@objectstack/hono` peer range on `hono` stays `^4.12.8`.

0 commit comments

Comments
 (0)