dependabot[bot] opened a new pull request, #78: URL: https://github.com/apache/comdev/pull/78
Bumps [@hono/node-server](https://github.com/honojs/node-server) from 2.1.0 to 2.1.6. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/honojs/node-server/releases">@hono/node-server's releases</a>.</em></p> <blockquote> <h2>v2.1.6</h2> <h2>Security fixes</h2> <p>This release includes fixes for the following security issues:</p> <h3>Backslash in the request path is parsed as a path separator, bypassing path-based access control at a reverse proxy</h3> <p>Affects: all requests. The raw request-target was passed to the WHATWG URL parser, which treats a backslash in the path as <code>/</code> and resolves <code>..</code> segments, so <code>/admin\secret</code> reached the application as <code>/admin/secret</code>. A reverse proxy that forwards the backslash unchanged applied its path-based rules to the original path. <a href="https://github.com/honojs/node-server/security/advisories/GHSA-jpvv-r467-5p4w">GHSA-jpvv-r467-5p4w</a></p> <p>A request whose path contains a raw backslash is now rejected with <code>400 Bad Request</code>, for HTTP/1.1, HTTP/2 and WebSocket upgrades. A percent-encoded backslash (<code>%5C</code>) and a backslash in the query string are still accepted.</p> <h3>WebSocket upgrade request-target starting with <code>//</code> replaces the host in <code>c.req.url</code>, bypassing <code>Origin</code> checks</h3> <p>Affects: <code>upgradeWebSocket</code>. The URL of an upgrade request was built by resolving the request-target against the <code>Host</code> header, so a request-target such as <code>//attacker.example/ws</code> set the host of <code>c.req.url</code> to a client-chosen value while routing still saw <code>/ws</code>. An application that compared <code>Origin</code> with the origin of <code>c.req.url</code> could be bypassed by a page on another site. <a href="https://github.com/honojs/node-server/security/advisories/GHSA-7v5p-43qr-wch5">GHSA-7v5p-43qr-wch5</a></p> <p>The host of upgrade requests now comes from the <code>Host</code> header, as for ordinary requests.</p> <h3>Unhandled <code>ECONNRESET</code> on the socket during an asynchronous WebSocket upgrade crashes the process</h3> <p>Affects: <code>upgradeWebSocket</code>. While the application handled an upgrade request, the socket had no error listener. A client that reset the connection during asynchronous middleware caused an unhandled <code>'error'</code> event and terminated the process. <a href="https://github.com/honojs/node-server/security/advisories/GHSA-qv5m-9pm6-hqp3">GHSA-qv5m-9pm6-hqp3</a></p> <p>Error and close events on the socket are now handled while the application runs, and a pending upgrade is released when the socket closes.</p> <hr /> <p>The backslash fix also ships in <code>@hono/node-server</code> v1.19.18. Users of <code>upgradeWebSocket</code> are encouraged to upgrade to this version.</p> <h2>v2.1.5</h2> <h2>What's Changed</h2> <ul> <li>fix(listener): abort the request signal when an HTTP/2 client resets the stream by <a href="https://github.com/affanmomin"><code>@affanmomin</code></a> in <a href="https://redirect.github.com/honojs/node-server/pull/404">honojs/node-server#404</a></li> <li>fix(serve-static): only serve GET and HEAD requests by <a href="https://github.com/usualoma"><code>@usualoma</code></a> in <a href="https://redirect.github.com/honojs/node-server/pull/405">honojs/node-server#405</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/affanmomin"><code>@affanmomin</code></a> made their first contribution in <a href="https://redirect.github.com/honojs/node-server/pull/404">honojs/node-server#404</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/honojs/node-server/compare/v2.1.4...v2.1.5">https://github.com/honojs/node-server/compare/v2.1.4...v2.1.5</a></p> <h2>v2.1.4</h2> <h2>What's Changed</h2> <ul> <li>chore: allow hono v5 as a peer dependency by <a href="https://github.com/yusukebe"><code>@yusukebe</code></a> in <a href="https://redirect.github.com/honojs/node-server/pull/406">honojs/node-server#406</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/honojs/node-server/compare/v2.1.3...v2.1.4">https://github.com/honojs/node-server/compare/v2.1.3...v2.1.4</a></p> <h2>v2.1.3</h2> <h2>Security fixes</h2> <h3><code>serveStatic</code> decodes the request path a second time, leading to bypass of middleware on static paths</h3> <p>Affects: <code>@hono/node-server/serve-static</code>. Fixes <code>serveStatic</code> decoding an already-decoded path, where a crafted request could be routed as one path and served as another, skipping middleware mounted on a static prefix. GHSA-rmxm-3fg6-px4f</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/honojs/node-server/commit/123f78269626704eb7f4d85a9529e357315ba051"><code>123f782</code></a> 2.1.6</li> <li><a href="https://github.com/honojs/node-server/commit/cfaa79f76dbb0fe9f539438c0c585d94ed7cd01f"><code>cfaa79f</code></a> Merge commit from fork</li> <li><a href="https://github.com/honojs/node-server/commit/61cc0267e613e684401f17c27538ba3bf97339a4"><code>61cc026</code></a> Merge commit from fork</li> <li><a href="https://github.com/honojs/node-server/commit/a152a45b4941f5100c43ca662e0d6db0e60d851e"><code>a152a45</code></a> test: wait for the first chunk before sending the second in the readable-stre...</li> <li><a href="https://github.com/honojs/node-server/commit/fb97395ec36af66567c76976e741110b02804d1c"><code>fb97395</code></a> Merge commit from fork</li> <li><a href="https://github.com/honojs/node-server/commit/4b47a0d8a5c12ed69a9f8493df69918f62fb61c0"><code>4b47a0d</code></a> 2.1.5</li> <li><a href="https://github.com/honojs/node-server/commit/e77824a912c7f12d26f8f200b0b2e9c2b0d72a97"><code>e77824a</code></a> fix(serve-static): only serve GET and HEAD requests (<a href="https://redirect.github.com/honojs/node-server/issues/405">#405</a>)</li> <li><a href="https://github.com/honojs/node-server/commit/1b6e6bfc21f0f018d5725b8bd8f5a230680e2134"><code>1b6e6bf</code></a> fix(listener): abort the request signal when an HTTP/2 client resets the stre...</li> <li><a href="https://github.com/honojs/node-server/commit/d57ed9b9dad4d44b20caa0cdb1b10d8360d8b734"><code>d57ed9b</code></a> 2.1.4</li> <li><a href="https://github.com/honojs/node-server/commit/92b014c1b6a3634a5cb2fcc9ddcc10e9bc68e48d"><code>92b014c</code></a> chore: allow hono v5 as a peer dependency (<a href="https://redirect.github.com/honojs/node-server/issues/406">#406</a>)</li> <li>Additional commits viewable in <a href="https://github.com/honojs/node-server/compare/v2.1.0...v2.1.6">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/apache/comdev/network/alerts). </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
