chore(deps): bump the npm_and_yarn group across 1 directory with 2 updates
Type: Pull Request
State: Open
Association: Unknown
Comments: 1
(about 7 hours ago)
(about 7 hours ago)
dependencies javascript
Bumps the npm_and_yarn group with 2 updates in the /Projects/Physical RPG Helper directory: @hono/node-server and hono.
Updates @hono/node-server from 2.1.5 to 2.1.8
Release notes
Sourced from @hono/node-server's releases.
v2.1.8
What's Changed
- fix(request): forward duplex to the native request in honojs/node-server#409
- fix(utils): do not chain a promise per chunk while streaming a response in honojs/node-server#417
- fix(listener): cancel the response body when the client has already disconnected in honojs/node-server#412
- fix(utils): cancel late HTTP/2 response bodies in honojs/node-server#419
- fix(listener): do not send a complete response when the body fails during the early read in honojs/node-server#420
Full Changelog: https://github.com/honojs/node-server/compare/v2.1.7...v2.1.8
v2.1.7
Security fixes
This release includes a fix for the following security issue:
serveStaticwithallowPercentInPathstill allows the double-decode middleware bypassAffects:
serveStaticwithallowPercentInPath: true. The fix for GHSA-rmxm-3fg6-px4f rejects a path containing%, but theallowPercentInPathoption skipped that check entirely. A malformed percent sequence such as/static/%%36%31dmin/secret.txtwas routed as/static/%61dmin/secret.txt, so middleware on/static/admin/*did not run, andserveStaticthen decoded%61toaand servedstatic/admin/secret.txt. The default configuration was already fixed in 2.1.3. GHSA-fj57-4f93-cfw6
serveStaticnow accepts the second decode only when its result equals the routed path with%25replaced by%. File names containing a literal%, requested as%25, are served as before.
The same fix ships in
honov4.13.18 (GHSA-74fm-fwc7-3fwp).Full Changelog: https://github.com/honojs/node-server/compare/v2.1.6...v2.1.7
v2.1.6
Security fixes
This release includes fixes for the following security issues:
Backslash in the request path is parsed as a path separator, bypassing path-based access control at a reverse proxy
Affects: all requests. The raw request-target was passed to the WHATWG URL parser, which treats a backslash in the path as
/and resolves..segments, so/admin\secretreached the application as/admin/secret. A reverse proxy that forwards the backslash unchanged applied its path-based rules to the original path. GHSA-jpvv-r467-5p4wA request whose path contains a raw backslash is now rejected with
400 Bad Request, for HTTP/1.1, HTTP/2 and WebSocket upgrades. A percent-encoded backslash (%5C) and a backslash in the query string are still accepted.WebSocket upgrade request-target starting with
//replaces the host inc.req.url, bypassingOriginchecksAffects:
upgradeWebSocket. The URL of an upgrade request was built by resolving the request-target against theHostheader, so a request-target such as//attacker.example/wsset the host ofc.req.urlto a client-chosen value while routing still saw/ws. An application that comparedOriginwith the origin ofc.req.urlcould be bypassed by a page on another site. GHSA-7v5p-43qr-wch5The host of upgrade requests now comes from the
Hostheader, as for ordinary requests.Unhandled
ECONNRESETon the socket during an asynchronous WebSocket upgrade crashes the processAffects:
upgradeWebSocket. 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'error'event and terminated the process. GHSA-qv5m-9pm6-hqp3Error and close events on the socket are now handled while the application runs, and a pending upgrade is released when the socket closes.
... (truncated)
Commits
1fc1dfc2.1.83463817fix(listener): do not send a complete response when the body fails during the...f22b99cfix(utils): cancel late HTTP/2 response bodies (#419)4b885d3fix(listener): cancel the response body when the client has already disconnec...653ec79fix(utils): do not chain a promise per chunk while streaming a response (#417)7da431bfix(request): forward duplex to the native request (#409)abe63c82.1.7cc42986Merge commit from fork123f7822.1.6cfaa79fMerge commit from fork- Additional commits viewable in compare view
Updates hono from 4.13.13 to 4.13.18
Release notes
Sourced from hono's releases.
v4.13.18
Security fixes
This release includes fixes for the following security issues:
validator()skips validation for requests whoseContent-Typeparameters are formatted differentlyAffects:
validator('json')andvalidator('form')inhono/validator. AContent-Typewith whitespace before;, a trailing;, or an unusual parameter name was not recognized, so the validator saw an empty object while the handler could read all fields. This completes the fix for GHSA-4h7h-rv7c-7m2v. The validator now decides by the media type alone, asc.req.parseBody()does. GHSA-92p4-j3wq-jmqx
bodyLimit()keeps every transfer chunk of a request body in memoryAffects:
bodyLimit()inhono/body-limit. A body sent in very small transfer chunks was retained as one object per chunk, so a request within the configured limit could exhaust memory. The body is now buffered in one array bounded bymaxSize. GHSA-39q9-qp46-w8xg
mount()andapp.mount()forward a wrong path when a customgetPathadds a prefixAffects:
mount()inhono/mountandapp.mount()on 4.13.16 and 4.13.17. With agetPaththat prepends a prefix such as the host name, one segment too many was removed from the forwarded path, so middleware scoped inside the mount prefix could be skipped. The prefix is removed from the routed path again. Paths that would change meaning when forwarded now get 400, and an optional regular expression parameter in a mount path throws. GHSA-h25j-2p75-qj33
serveStatic()serves a path that was decoded twice whenallowPercentInPathis enabledAffects:
serveStatic()inhono/serve-staticand the runtime adapters, only withallowPercentInPath: true. A malformed percent escape in the request path was decoded a second time, so a path that middleware registered on the encoded form did not see could still reach a static file. The file path must now be the same as the routed path, and otherwise the response is 404. GHSA-74fm-fwc7-3fwp
Users who rely on
validator(),bodyLimit(),mount()with a customgetPath, orserveStatic()withallowPercentInPathare strongly encouraged to upgrade to this version.Full Changelog: https://github.com/honojs/hono/compare/v4.13.17...v4.13.18
v4.13.17
What's Changed
- fix(cookie): match the
__Secure-and__Host-prefixes case-insensitively in honojs/hono#5608- fix(utils/url): do not match a query key across separators in honojs/hono#5607
- fix(etag,pretty-json): cancel the discarded response body in honojs/hono#5606
- fix(client): detect the JSON media type with whitespace before a parameter in honojs/hono#5609
- fix(timing): honor a precision of 0 in
setMetricin honojs/hono#5363- fix(utils/mime,ssg): match media types case-insensitively in honojs/hono#5449
- fix(timing): escape double quotes and backslashes in Server-Timing descriptions in honojs/hono#5478
- fix(etag): preserve commas within quoted entity tags in honojs/hono#5353
- fix(accepts): preserve exact media type quality over subtype wildcards in honojs/hono#5427
- fix(cookie): match the
__Secure-and__Host-prefixes case-insensitively inCookieConstraintin honojs/hono#5611- fix(jsx): add the CSP nonce to all scripts generated by
ErrorBoundaryin honojs/hono#5430- fix(ssg): do not reuse created directories across
toSSGruns in honojs/hono#5381- fix(aws-lambda): sanitize non-ASCII header values in API Gateway v2 events in honojs/hono#5483
- fix(jsx): escape element and object attribute values in honojs/hono#5512
- fix(jsx): do not render ref objects as attributes in honojs/hono#5615
- fix(factory): keep independent return types for nine handlers in honojs/hono#5618
Full Changelog: https://github.com/honojs/hono/compare/v4.13.16...v4.13.17
v4.13.16
... (truncated)
Commits
f6fbaf04.13.180809e48test(serve-static) fix test (#5623)c7ff08fMerge commit from forkb982c02Merge commit from fork9aeb45bMerge commit from forkb0af6bbMerge commit from fork61f7c594.13.171534ffafix(factory): keep independent return types for nine handlers (#5618)eb754bdfix(jsx): do not render ref objects as attributes (#5615)6cbe361fix(jsx): escape element and object attribute values (#5512)- Additional commits viewable in compare view
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 commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions
You can disable automated security fix PRs for this repo from the Security Alerts page.
Package Dependencies
Security Advisories
@hono/node-server: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static paths
@hono/node-server: Unhandled `ECONNRESET` on the socket during an asynchronous WebSocket upgrade crashes the process
@hono/node-server: Backslash in the request path is parsed as a path separator, bypassing path-based access control at a reverse proxy
Hono: `validator('form')` skips validation for `multipart/form-data` requests with extra parameters
Technical Details
| ID: | 16817111 |
| UUID: | 6373640476 |
| Node ID: | PR_kwDOOcv8zc8AAAABO8Gjxw |
| Host: | GitHub |
| Repository: | DefinetlyNotAI/Code_DUMP |