NEWS (18435B)
1 Wed Jul 8 12:47:35 PM CEST 2026 2 Released GNU libmicrohttpd 1.0.6. 3 4 This is a bugfix release, fixing minor bugs mostly in error handling, 5 theoretical integer overflows, and rare memory leaks. 6 7 -- Christian Grothoff 8 9 Thu Apr 16 10:36:54 AM CEST 2026 10 Released GNU libmicrohttpd 1.0.5. 11 12 This is a bugfix release. 13 It fixes a additional HTTP request smuggling issues (CWE-444). 14 15 -- Christian Grothoff 16 17 Mon Apr 13 11:42:06 AM CEST 2026 18 Released GNU libmicrohttpd 1.0.4. 19 20 This is a bugfix release. 21 It fixes a minor HTTP request smuggling issue (CWE-444). 22 23 -- Christian Grothoff 24 25 Thu Apr 2 12:16:28 AM CEST 2026 26 Released GNU libmicrohttpd 1.0.3. 27 28 This is a bugfix release. 29 It primarily fixes a list traversal issue that could 30 cause connection handling issues when other connections 31 were suspended. 32 33 -- Christian Grothoff 34 35 Mon Jul 14 2025 05:03:07 PM CEST 36 Released GNU libmicrohttpd 1.0.2. 37 38 This is a bugfix release. 39 It primarily fixes a double-close() bug on bind() errors. 40 41 -- Christian Grothoff 42 43 Fri 23 Feb 2024 21:00:00 UZT 44 Released GNU libmicrohttpd 1.0.1. 45 46 This is a correction release. 47 This release mainly fixes and improves builds with non-default configure 48 parameters. 49 50 -- Evgeny Grin (Karlson2k) 51 52 Thu 01 Feb 2024 15:00:00 CET 53 Released GNU libmicrohttpd 1.0.0. 54 55 This is the first non-bugfix release since version 0.9.75 and the first 56 ever stable release of GNU libmicrohttpd. It is a huge one with new 57 features and fixes. 58 59 The major changes: 60 * Rewritten parsing of clients' requests, fully aligned with current 61 RFCs (9110 and 9112) requirements. Added detailed control of strict 62 or lenient specification enforcement. Application may choose between 63 more compatible mode or more strict and secure mode. 64 * Reworked Digest Auth, greater enhanced support for current RFC 7617 65 features. MHD currently is the only known server-side implementation 66 with support for SHA-512/256, userhash and username in extended 67 notation. At the same time the very old RFC2069 is supported, as 68 well as MD5 and SHA-256. 69 * Improved functionality in multi-threading environment, especially with 70 external sockets polling modes. 71 * Reworked Basic Auth, adding new convenient API functions. 72 * Re-implemented GnuTLS initialisation. Now supported 73 libmicrohttpd-specific system-wide configuration, as well as generic 74 GnuTLS system-wide configuration. Application may adjust settings based 75 on system configuration instead of specifying its own full 76 configuration. 77 * Tons of other new functionality and various fixes. For detailed changes 78 see the ChangeLog or Git commit logs. 79 80 81 Since last non-bugfix release there are 1062 commits added with 82 67007 lines insertions and 26616 deletions. 83 84 -- Evgeny Grin (Karlson2k) 85 86 Sun 28 May 2023 18:00:00 MSK 87 Released GNU libmicrohttpd 0.9.77. 88 89 This is mostly a bugfix release. 90 This version created by taking patches from the current development 91 branch and back-porting them on top of version 0.9.76. 92 The most notable changes are: some improvements for Digest and Basic 93 authorizations, fixed efficiency for TLS upgraded connections, fixed 94 processing of folded headers in requests, fixed functionality with 95 blocking sockets, improved and fixed internal test-suite. 96 97 The more detailed list of the important changes: 98 99 API changes: 100 + Added new function MHD_get_version_bin(). 101 102 Improvements and enhancements: 103 * Digest Auth: changed algorithm identifiers in server generated 104 headers from "md5" / "sha-256" to "MD5" / "SHA-256" to better match 105 RFC (while clients should use caseless matching). 106 * Improved Base64 decoding by new implementation with robust input 107 data validation checks. 108 * Improved configure for cross-compiling, for better compatibility 109 with POSIX and for better compatibility with the latest compiler 110 versions. 111 * New internal tests: for Base64 decoding, Basic Auth and folded 112 headers. 113 * Supported new libcurl API in tests to mute deprecation warnings. 114 * Supported ARM and ARM64 for VC compilers. 115 116 Functionality changes: 117 * any negative number returned by response data generation callback 118 function is treated as an error. Previously negative values except 119 predefined error codes could produce undefined behaviour. 120 * Added handling of "DEBUG" preprocessor macro as an alias of "_DEBUG". 121 122 Fixes: 123 # Fixed functionality with blocking sockets. 124 # Fixed very inefficient data pumping for upgraded TLS connections. 125 # Fixed processing of folded headers in the requests. 126 # Fixed data races when closing upgraded connection. 127 # Removed duplication of "Connection: upgrade" header. 128 # Digest auth: fixed thread sync to avoid "stale hash" results. 129 # Fixed harmless unwanted extra data processing resulting in triggering 130 of the assert. 131 # Fixed tests for LTO. 132 # Removed removed non-portable functions in examples. 133 # Fixed delayed call of connection notification callback in 134 thread-per-connection mode. 135 # Fixed Address Sanitizer unpoison of memory when memory pool is 136 destroyed. This fixed periodic ASAN error when used for a long time 137 with the sanitizer. 138 # Fixed compiler warnings in library code, examples, tests and configure 139 checks. 140 # New TLS certificates for test-suite: all with SAN fields and SHA-256 141 hash. 142 # Tests: fixed tests on Darwin 22.x (Ventura). 143 # Tests: redesigned one tests group to avoid stress-testing of the OS. 144 145 -- Evgeny Grin (Karlson2k) 146 147 Sun 26 Feb 2023 17:49:30 CET 148 Released GNU libmicrohttpd 0.9.76 hotfix. -CG 149 150 This is a hotfix release. 151 This only change since previous release is fixed potential DoS vector 152 in MHD_PostProcessor discovered by Gynvael Coldwind and Dejan 153 Alvadzijevic (CVE-2023-27371). 154 While the researchers have not been able to exploit this attack vector 155 when libmicrohttpd is compiled with the standard GNU C library, it is 156 recommended that you update MHD as soon as possible if your 157 applications are using (optional) MHD_PostProcessor functionality. 158 159 -- Evgeny Grin (Karlson2k) 160 161 Sun 26 Dec 2021 20:30:00 MSK 162 Released GNU libmicrohttpd 0.9.75 -EG 163 164 This is a correction release. 165 The main improvement is the implementation of workaround for some 166 OSes (like OpenBSD 7) where "monotonic" clock may jump back. Now 167 MHD is able to automatically detect such situation and recover if 168 the jump is small. This workaround is needed with increased 169 accuracy of connection timeout introduced in previous version, as 170 with lower accuracy (v0.9.73 and before) these jumpbacks were 171 unnoticeable. 172 Other changes: fixed some compiler, Makefile, and configure 173 warnings on specific platforms; one test further improved. 174 175 -- Evgeny Grin (Karlson2k) 176 177 178 Sun 19 Dec 2021 18:30:00 MSK 179 Released GNU libmicrohttpd 0.9.74 180 181 This release brings a lot of fixes and improvements, and 182 important new features. 183 The most significant addition is the new experimental 184 implementation of WebSockets contributed by David Gausmann. This 185 implementation is not fully tested yet so currently it is disabled 186 by default. 187 Other changes include a lot of improvements and clarifications 188 in doxy comments in microhttpd.h header file, improved compliance 189 with the RFC HTTP specifications, the new implementation of reply 190 header forming, the new implementation of request chunked encoding 191 parsing, new automatic error replies, internal optimisations, and 192 many important fixes, including fixes for long-standing bugs. 193 194 More detailed list of notable changes: 195 196 API changes: 197 + Added new function MHD_get_reason_phrase_len_for(). 198 + Added MHD_CONNECTION_INFO_HTTP_STATUS type of information 199 queried by MHD_get_connection_info(). 200 + Added new response flag MHD_RF_SEND_KEEP_ALIVE_HEADER to force 201 sending of "keep-alive" header even if not required by RFC. 202 + Added new response creation function 203 MHD_create_response_from_buffer_with_free_callback_cls() with 204 custom cleanup callback. 205 + Added new response flag MHD_RF_HTTP_1_0_COMPATIBLE_STRICT with 206 the same functionality as existing MHD_RF_HTTP_VERSION_1_0_ONLY 207 flag. The old flag will be deprecated. 208 + Added new response flag MHD_RF_HTTP_1_0_SERVER with the same 209 functionality as existing MHD_RF_HTTP_VERSION_1_0_RESPONSE flag. 210 The old flag will be deprecated. 211 212 New features: 213 + Added experimental WebSockets extension with separate header. 214 Disabled by default as it is not fully tested yet. 215 + Added '--enable-sanitizers[=address,undefined,leak,user-poison]' 216 configure parameter (instead of '--enable-sanitizer'), 217 implemented custom memory poisoning for memory pools. 218 219 Improvements and enhancements: 220 * Doxy function descriptions was corrected, clarified, extended, 221 and improved. Now it should be much easier to learn MHD just by 222 reading the headers. 223 * Completely rewritten reply header forming. New implementation is 224 more robust, simpler maintainable and expandable, and better 225 follows RFC HTTP specifications. 226 * Performance improvements: now HTTP version and request method are 227 decoded one time only (previously MHD used string comparison many 228 times during processing the data). 229 * Rewritten request chunked payload decoding. The new 230 implementation better conforms to the HTTP RFC, detects format 231 problems earlier, replies to the clients with description of 232 detected problems, handles untypical (but syntactically correct) 233 values properly. 234 * Added special replies for wrong/unsupported HTTP versions in 235 requests, broken HTTP chunked encoding in requests, 236 * As required by HTTP RFC, added automatic error replies if client 237 used broken chunked encoding, too large chunk size, too large 238 payload size, or broken Content-Length header. 239 * Optimized connection's memory pool handling. 240 * Changed timeout precision from one second to one millisecond. 241 * Added some checks for incorrect user data, reporting problems in 242 MHD log. 243 * Improved performance of hash calculations functions by using 244 compiler built-ins (if available). 245 * Implemented SHA-1 calculations (required for WebSockets). 246 * Added universal MSVC project that works with any (sufficiently 247 new) version of MSVC. 248 * Developed simple HTTP client to test MHD under very special 249 conditions. 250 * Implemented 45 new tests. 251 * Improved existing tests to test more aspects of MHD. 252 * Added check for correct results of system and libcurl functions. 253 * Response headers are checked during forming of responses. 254 * HTTPS tests were improved. 255 * Added rebuild on W32 of all required files if files are missing. 256 * Many internal optimisations and improvements. 257 258 Functionality changes: 259 * Keep-alive header is omitted by default for HTTP/1.1 connections. 260 Use of header can be enforced by response flag. 261 * Chunked encoding is used for HTTP/1.1 non-keep-alive connections 262 for responses with unknown size. Previously MHD used "indication 263 of the end of the response by closing connection" in such cases, 264 however it is not correct for HTTP/1.1 connections as per HTTP 265 RFC. 266 * As required by HTTP RFC, use HTTP/1.1 version instead of HTTP/1.0 267 in reply headers when client is HTTP/1.0 . HTTP/1.0 version can 268 be enforced by response flag. 269 * User response headers are used in replies in the same order as 270 was added by application. 271 * Allowed tab characters in response header values. 272 * All custom "Connection:" response headers are automatically 273 combined into single "Connection:" header. 274 * "keep-alive" token silently dropped from custom "Connection:" 275 response header. "Keep-alive" cannot be enforced and used 276 automatically if possible. 277 * Allow tab character in custom response header value. 278 * Disallow space character in custom response header value. 279 * Do not allow responses with 1xx codes for HTTP/1.0 requests. 280 * Detected and reported incorrect "Upgrade" responses. 281 * W32 targets are changed to Vista+ by default. XP is supported 282 still. 283 284 Fixes: 285 # Fixed short busy-waiting (up to one second) when connection is 286 going to be expired and closed. 287 # Fixed handling of errors during start of new connection, fixed 288 inability to accept new connections in thread-per-connection mode 289 due to the missing decrement of number of daemon's connections if 290 start of new thread is failed. 291 # Fixed incorrect parsing of LFLF, LFCR, CRCR, and bare CR as 292 single linefeed in request header and request chunked payload. 293 Now only CRLF or bare LF are recognized as linefeed. 294 # Fixed response chunked encoding handling. Now it works properly 295 with non-keep-alive connection, with fixed size replies (if 296 chunked was enforced by header), and in other situations. 297 # Other fixes for chunked replies. 298 # Fixed handling of custom connection timeout in thread-per- 299 connection mode. 300 # Fixed wrongly used MHD_REQUEST_TERMINATED_COMPLETED_OK code for 301 application notification when MHD_REQUEST_TERMINATED_WITH_ERROR 302 code must be used. 303 # Fixed code MHD_REQUEST_TERMINATED_READ_ERROR not reported (code 304 MHD_REQUEST_TERMINATED_WITH_ERROR was incorrectly used instead). 305 # Fixed handling of request chunked encoding with untypical 306 formatting. 307 # Fixed processing of last part of hex-encoded values under 308 certain conditions. 309 # Fixed value returned for MHD_CONNECTION_INFO_REQUEST_HEADER_SIZE. 310 # Fixed returned value for MHD_FEATURE_AUTOSUPPRESS_SIGPIPE on W32, 311 now it is MHD_YES as W32 does not need SIGPIPE suppression. 312 # Fixed portability of bitwise NOT for enums values. 313 # Fixed SHA-256 and MD5 calculations with unaligned data. 314 # Fixed incorrect caseless matching for HTTP version. 315 # Fixed incorrect caseless matching for request method. 316 # Fixed compatibility with old GnuTLS versions. 317 # Fixed compiler warnings on 32-bits platforms. 318 # Fixed blocking sockets setting in tests and examples for W32. 319 # Fixed examples to really use libmagic if present. 320 # HTTPS tests were fixed. 321 # Fixed libcurl test with case-insensitive match for HTTP methods, 322 method names must use case-sensitive match. 323 # Fixed tests compatibility with old libcurl versions. 324 # Fixed build on W32 with llvm-dlltool (this tool is too 325 oversimplified) 326 327 -- Evgeny Grin (Karlson2k) 328 329 330 Sun 25 Apr 2021 14:00:00 MSK 331 Released GNU libmicrohttpd 0.9.73 332 333 This release brings new features, improvements, and a few fixes. 334 The most important addition is the new function for vector-backed 335 responses, based on the patch contributed by NASA engineers. 336 Other changes include compatibility with autoconf 2.70+, improved 337 testsuite compatibility with CI systems, fixed and improved MSVC 338 builds, and implementation of ALPN support. 339 340 More detailed list of notable changes: 341 342 API changes: 343 + Added new function MHD_create_response_from_iovec(), based on the 344 patch provided by Lawrence Sebald and Damon N. Earp from NASA. 345 + Added MHD_OPTION_SIGPIPE_HANDLED_BY_APP daemon option. 346 + Added new function MHD_run_wait(). 347 + Added MHD_OPTION_TLS_NO_ALPN to disable usage of ALPN even if 348 it is supported by TLS library. 349 350 New features: 351 + Added '--enable-heavy-tests' configure parameter (disabled by 352 default). 353 + Implemented support for ALPN. 354 355 Improvements and enhancements: 356 * Return timeout of zero also for connections awaiting cleanup. 357 * Compatibility with autoconf >=2.70, used new autoconf features. 358 * Warn user when custom logger option is not the first option. 359 * Added information to the header about minimal MHD version when 360 particular symbols were introduced. 361 * Updated test certificates to be compatible with modern browsers. 362 * Added on-fly detection of UNIX domain sockets and pipes, MHD does 363 not try to use TCP/IP-specific socket options on them. 364 * Report more detailed error description in the MHD log for send 365 and receive errors. 366 * Enabled bind port autodetection for MSVC builds. 367 368 Fixes: 369 # Fix PostProcessor to always properly stop iteration when 370 application callback tells it to do so. 371 # Fixed MD5 digest authorization broken when compiled without 372 variable length arrays support (notably with MSVC). 373 # Fixed detection of type of send errors on W32. 374 375 -- Evgeny Grin (Karlson2k) 376 377 378 Mon 28 Dec 2020 21:36:00 MSK 379 Released GNU libmicrohttpd 0.9.72 380 381 This release is mostly a bugfix release, with greatly improved 382 compatibility with various OSes/kernels, including FreeBSD, Windows, 383 OpenBSD, NetBSD, Darwin (macOS), Solaris. Performance is improved, 384 especially with HTTPS connections and stay-alive HTTP connections. 385 386 Notable changes since version 0.9.71: 387 388 API changes: 389 + New function MHD_create_response_from_pipe() 390 391 Improvements and enhancements: 392 * Fully rewritten code for buffering/pushing from kernel network buffers 393 for compatibility with various OSes. Reduced number of additional 394 sys-calls, network is better utilized, responses are delivered faster. 395 * Restored optimal sendfile() usage on FreeBSD. 396 * MHD now takes care about SIGPIPE handling by blocking it in internal 397 threads and avoiding functions (like sendfile()) that could generate 398 SIGPIPE when blocking of this signal is not possible. 399 400 Fixes: 401 # Fixed crash in PostProcessor. 402 # Fixed several resources leaks in corner cases. 403 # Improved thread sync, thread safety and fixed one use-after-free under 404 special conditions during stopping of daemon. 405 # Updated HTTP status codes, header names and methods from the 406 registries. 407 # Fixed functioning without listen socket and with internal threads. 408 # Fixed streaming of chunked responses for both HTTP and HTTPS. 409 # Various compatibility fixes. 410 411 -- Evgeny Grin (Karlson2k) 412 413 414 Tue Jan 9 20:52:48 MST 2007 415 Project posted.