libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

NEWS (18628B)


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