Debian Codegraph @

doc/src/guide/migrating_from_2.15.asciidoc

raw
1 [appendix]
2 == Migrating from Cowboy 2.15 to 2.16
3
4 Cowboy 2.16 fixes a number of security vulnerabilities.
5 It also adds a xref:security_checklist[security checklist]
6 to automate finding flaws in your own applications via
7 an AI agent.
8
9 Cowboy 2.16 updates Cowlib to 2.17.0. Both applications
10 must be updated as they both contain security fixes.
11
12 Cowboy 2.16 requires Erlang/OTP 24.0 or greater.
13
14 === Features added
15
16 * Add a xref:security_checklist[security checklist] chapter
17 to the user guide. The security checklist can be given to
18 an AI agent to automate finding flaws in applications
19 built using Cowboy.
20
21 * Add `cowboy_constraints:from_fun/1`. It simplifies
22 creating constraints to validate request data when
23 parse or validation functions already exist.
24
25 * Add `invalid_response_headers` HTTP/1 option. It
26 is enabled by default and causes responses to be
27 rejected with a 500 internal error response when
28 the user tries to send invalid headers.
29
30 * Add `max_headers` HTTP/2 decode option. It is
31 meant to protect against HPACK bomb attacks
32 similar to CVE-2026-49975. Note that Cowboy
33 is not vulnerable to this CVE, stalling has
34 no effect as Cowboy uses a memory efficient
35 representation after parsing. This new option
36 aims to avoid allocating more memory than we'd
37 like during parsing.
38
39 * Update Cowlib to 2.17.0.
40
41 === Bugs fixed
42
43 * Cowboy's security model is now properly described
44 in the documentation. It was previously only
45 described in external venues.
46
47 * The user certificate could appear in logs on stream
48 handler crash. It is now hidden.
49
50 * Add missing options to `cowboy_http:opts/0` type.