From 26cfecc4b00353bef8b51f58626fae7b4f523c60 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Fri, 13 Nov 2026 17:46:11 +0100 Subject: [PATCH 1/2] Bump webtransport to 0.5.8 Security release: an unusable cacertfile no longer falls back to the system trust store, and per-session memory is now bounded. --- rebar.config | 2 +- rebar.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rebar.config b/rebar.config index 1ff56988..07dddc0e 100644 --- a/rebar.config +++ b/rebar.config @@ -57,7 +57,7 @@ %% Pure Erlang HTTP/2 stack {h2, "~>0.17.0"}, %% WebTransport client (HTTP/3 and HTTP/2) - powers the wt_* API - {webtransport, "~>0.5.6"}, + {webtransport, "~>0.5.8"}, {idna, "~>8.0.0"}, {mimerl, "~>1.5"}, {certifi, "~>2.18.0"}, diff --git a/rebar.lock b/rebar.lock index 792ebdd2..db5ba04d 100644 --- a/rebar.lock +++ b/rebar.lock @@ -6,7 +6,7 @@ {<<"parse_trans">>,{pkg,<<"parse_trans">>,<<"3.4.2">>},0}, {<<"quic">>,{pkg,<<"quic">>,<<"2.7.0">>},0}, {<<"ssl_verify_fun">>,{pkg,<<"ssl_verify_fun">>,<<"1.1.9">>},0}, - {<<"webtransport">>,{pkg,<<"webtransport">>,<<"0.5.6">>},0}]}. + {<<"webtransport">>,{pkg,<<"webtransport">>,<<"0.5.8">>},0}]}. [ {pkg_hash,[ {<<"certifi">>, <<"BD5F34EB8FE7C3EEE3C705C1F9472174E8D4C353FC9C09A4CB937B891E80E329">>}, @@ -16,7 +16,7 @@ {<<"parse_trans">>, <<"C352DDC1A0D5E54F9B1654D45F9C432EEF76F9CEA371C55DDFF769EF688FDB74">>}, {<<"quic">>, <<"CA84638D8EC023576BF9339CEA027E939EF7B671EDF4CACE2873BC87F5237A55">>}, {<<"ssl_verify_fun">>, <<"4FF292DC16E728FDE1235CF5FA6BCD3CA01864004526F71A4A70935509D1A7F1">>}, - {<<"webtransport">>, <<"71F398045D5BA3A679B249E31528E7681DC122199C79E5EC3E303D395044246B">>}]}, + {<<"webtransport">>, <<"5120BB57E10C5949A26F8F6CB308FFE9CEEF01FE103D30C44A5D0497FD6AAE68">>}]}, {pkg_hash_ext,[ {<<"certifi">>, <<"A8B61115E393A2298B20451A36BEFFDABE08E61BC16CC1926D7991F6721103BF">>}, {<<"h2">>, <<"1BDD05C8622B87C0D68992875F8802029C53EE634EA83A4FE4C20B178942CA4D">>}, @@ -25,5 +25,5 @@ {<<"parse_trans">>, <<"4C25347DE3B7C35732D32E69AB43D1CEEE0BEAE3F3B3ADE1B59CBD3DD224D9CA">>}, {<<"quic">>, <<"88CCB9CAA42D2A315327A624D677C8A63E793F3530451F50CEC04A7957167124">>}, {<<"ssl_verify_fun">>, <<"19F24AD715EF6255D530B2F0DB8B2D2191AE435B6527234E943F523E84ED0895">>}, - {<<"webtransport">>, <<"AD017A7B3643344519910BA281A83F28CE928AEE3AFDEDF6B0DBE390E7267710">>}]} + {<<"webtransport">>, <<"62F1075FB8FF3717B291971C541E888BC8AAE1363E45226DA0D310105E9BB24D">>}]} ]. From 863f7a0127c9a5079386045a61585bbdc3feed01 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Fri, 13 Nov 2026 17:46:11 +0100 Subject: [PATCH 2/2] Release 4.11.1 --- NEWS.md | 27 +++++++++++++++++++++++++++ src/hackney.app.src | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index ffc2f26a..f2620903 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,32 @@ # NEWS +4.11.1 - 2026-11-13 +------------------- + +### Security + +- WebTransport: a `cacertfile` that could not be read or held no + certificate was silently skipped, and over HTTP/3 the server was then + checked against the system trust store instead of the CAs you chose. + Connecting now fails with `{error, {cacertfile, File, Reason}}`. An + unusable `certfile` or `keyfile` fails the same way over HTTP/3. +- WebTransport: a server could make a session use memory without limit, + by sending datagrams faster than they were read, by never granting + flow-control credit, by holding large unfinished capsules, or simply + by keeping a stream open. Each of these is now bounded. + +### Fixed + +- WebTransport over HTTP/2: a session that ended, for example after the + server drained the connection, could kill the hackney WebTransport + process. Over HTTP/3, a session now ends when its connection closes. + +### Changed + +- webtransport 0.5.8. A WebTransport send that would exceed 4 MiB of + data waiting for the server's flow-control credit now returns + `{error, send_buffer_full}`. + 4.11.0 - 2026-11-13 ------------------- diff --git a/src/hackney.app.src b/src/hackney.app.src index d26f5dba..a3e1a399 100644 --- a/src/hackney.app.src +++ b/src/hackney.app.src @@ -4,7 +4,7 @@ {application, hackney, [ {description, "Simple HTTP client with HTTP/1.1, HTTP/2, and HTTP/3 support"}, - {vsn, "4.11.0"}, + {vsn, "4.11.1"}, {registered, [hackney_pool]}, {applications, [kernel, stdlib,