Debian Codegraph @

doc/src/guide/migrating_from_2.17.asciidoc

raw
1 [appendix]
2 == Migrating from Cowboy 2.17 to 2.18
3
4 Cowboy 2.18 fixes a number of security vulnerabilities
5 and improves the xref:security_checklist[security checklist].
6
7 Cowboy 2.18 updates Cowlib to 2.19.0. Both applications
8 must be updated as they both contain security fixes.
9
10 Cowboy 2.18 requires Erlang/OTP 24.0 or greater.
11
12 === Features added
13
14 * Defense-in-depth: Add the `max_cookies` option to
15 `cowboy_req` functions that parse cookies. This new
16 limit is applied in addition to existing length
17 limits. It defaults to 100. Note that the option
18 can't be overriden when parsing the cookie header
19 via `parse_header`.
20
21 === Bugs fixed
22
23 * Concurrent processing of pipelined HTTP/1.1 requests
24 was removed. Pipelined requests are still supported.
25 HTTP/2 should be used when concurrent processing of
26 requests is necessary.
27
28 * Defense-in-depth: request URIs with a fragment
29 component are now rejected instead of the component
30 stripped.
31
32 * Defense-in-depth: CR, LF and NUL bytes are now
33 rejected everywhere applicable. Note that query
34 strings may still contain urlencoded CR, LF or
35 NUL bytes.
36
37 * Defense-in-depth: integers now have a hard limit
38 of 17 digits when parsing headers or using the
39 `int` constraint. A custom constraint can be
40 written should the limit be a problem.
41
42 * The `max_headers` HTTP/1.1 option now better
43 tracks duplicate header field lines.
44
45 * A crash could occur during HTTP/2 Upgrade, it
46 has been resolved.
47
48 * HTTP/2 will now reject requests that have both
49 :authority and host headers with values that
50 are different.
51
52 * HTTP/2 will now reject empty CONTINUATION
53 frames in most cases to prevent abuse.
54
55 * Websocket frames could get over `max_frame_size`
56 under certain conditions. This is now resolved.
57
58 * Noisy crashes could occur when the PROXY protocol is
59 enabled; they should all have been resolved now.
60
61 * Functions `cowboy_req:read_urlencoded_body/2` and
62 `cowboy_req:read_and_match_urlencoded_body/3` will
63 now use the correct defaults for options in all cases.