Skip to content

Releases

Mongoose 7.23

Choose a tag to compare

@scaprile scaprile released this 12 Aug 12:46

Overview

This release adds fixes and improvements, and more examples.

Security fixes

  • [CVE-2026-73261] Built-in TCP/IP malformed TCP option handling
  • [CVE-2026-73260] Built-in TLS X.509 DER parsing bounds check
  • [CVE-2026-63626] Built-in TCP/IP PPP IPV6CP option parsing bounds check
  • [CVE-2026-73252] Built-in TLS short-record handling
  • [CVE-2026-73251] Built-in TLS certificate-chain verification with CA bundles

Important Changes

Minor changes

  • Improved mg_aton() IPv6 address processing
  • Added %zu formatting support for printf-like functions
  • Improved JSON malformed hex input handling
  • Improved Ethernet FCS validation on big-endian and unaligned-access platforms
  • Built-in TLS now initializes its time source when needed
  • Improved built-in TCP/IP testing
  • Improved built-in TLS testing
  • Improved test coverage

Mongoose 7.22

Choose a tag to compare

@scaprile scaprile released this 24 Jun 15:19

Overview

This release includes a substantial number of security fixes, reflecting increased use of AI-powered security tools and valuable contributions from the security research community.

Please note that many of the resolved issues have not yet been assigned CVE identifiers. The assignment process is underway, and these release notes will be updated as additional CVEs become available.

Security fixes

  • [CVE-2026-52073] ppp_handle_ipcp attacker-controlled IPCP length -- OOB read
  • [CVE-2026-52054] find_opt zero-length PPP option -- infinite loop
  • [CVE-2026-52068] rx_ndp_na NDP NA missing option length check -- OOB read
  • [CVE-2026-52070] rx_ndp_ns ICMPv6 NS minimum length insufficient -- OOB read
  • [CVE-2026-52053] rx_ip6 IPv6 extension header OOB read; 16-bit len wrap
  • [CVE-2026-52062] NDP RA allows any value for MTU
  • [CVE-2026-52047] w5100_rx wraparound RX path copies n instead of r bytes
  • [CVE-2026-52076] cyw_spi_tx SPI alignment padding indexes uint32_t* buffer with byte offset
  • [CVE-2026-52067] rx_ip truncated DHCP options size_t underflow OOB read
  • [CVE-2026-52069] rx_dhcp_client 32-bit overflow in DHCP lease millisecond conversion
  • [CVE-2026-52078] opendir() stack overflow via wcscat on MAX_PATH path
  • [CVE-2026-52079] ENET_IRQHandler RX descriptor not re-owned on error -- RX ring stall
  • [CVE-2026-52064] DNS transaction ID is sequential -- enables response injection
  • [CVE-2026-52048] MQTT v5 properties bounds check uses relative offset against absolute position
  • [CVE-2026-52056] skip_chunk off-by-one OOB read in chunked HTTP CRLF check
  • [CVE-2026-52050] precompute_slide_window NULL deref on OOM
  • [CVE-2026-52050] more_comps NULL deref after failed calloc
  • [CVE-2026-52050] bi_initialize / alloc NULL deref on OOM
  • [CVE-2026-52072] mg_tls_client_recv_hello size_t underflow in ext_len bounds check
  • [CVE-2026-52072] mg_tls_client_recv_hello ext_len fixed-offset OOB read
  • [CVE-2026-52051, CVE-2026-11404] mg_tls_server_recv_hello session_id_len OOB read
  • [CVE-2026-52065] mg_tls_client_recv_hello key_share extension OOB read
  • [CVE-2026-52071] mg_tls_verify_cert_signature OOB read for short ECDSA integers
  • [CVE-2026-52052] mg_tls_parse_cert_der pubkey BIT STRING length underflow -- OOB read
  • [CVE-2026-52058, CVE-2026-52055] mg_der_to_tlv long-form DER length OOB read
  • [CVE-2026-52057] mg_der_find_oid unbounded recursion on constructed DER tags
  • [CVE-2026-52061] mg_tls_recv_cert certificate chain length unchecked -- OOB read
  • [CVE-2026-52075] mg_random rand() fallback used for TLS secrets
  • [CVE-2026-52066, CVE-2026-52060] TLS certificate notAfter validated against hardcoded 2025-01-01 string
  • [CVE-2026-52059] RSA-PSS CertificateVerify checks only 0xbc trailer
  • MQTT server stack overflow
  • mqtt_next_topic OOB
  • Remote Denial of Service (Infinite Loop) via Integer Overflow in Built-in TLS DER Parser
  • Built-in TLS accepts non-CA certificates as issuing intermediates
  • ETH L2 footer
  • AES GCM no tag verify
  • TCP option infinite loop
  • mg_http_get_header_var OOB Read
  • RSA Zero-Length Modulus OOB Read
  • X25519 Low-Order Point Unchecked
  • ICMPv6 NDP NA OOB Read
  • [CVE-2026-73258] Multipart Boundary/Header Scan Logic Error Causes Data Corruption and Content-Type Bypass
  • [CVE-2026-73256, CVE-2026-73257] HTTP/1.0 Detection Off-by-One Enables Request Smuggling
  • [CVE-2026-73255] SSI Path Traversal -- Arbitrary File Read via #include Directives
  • [CVE-2026-73254, CVE-2026-73259] Stored XSS via Unescaped Filenames in Directory Listing
  • mg_tcpip_driver_tms570_tx short frames transmit stale buffer contents
  • ssl_keylog_cb NULL deref on fopen failure
  • ff_open missing f_close on allocation failure leaks FatFs lock
  • mg_file_write temp file opened without O_EXCL -- symlink following
  • mg_file_write temp name truncation causes original file deletion
  • mg_getlocaddr socket leaked on UDP connect() failure
  • ppp_rx fixed-size hexdump OOB read on short unknown-protocol frame
  • mg_ssi 1-byte OOB stack read in SSI end-of-tag check
  • mg_ssi iobuf buffer leaked on allocation failure
  • mg_rsa_parse_key OOB read in debug logging before bounds check
  • gcm_finish unbounded tag_len OOB read
  • mg_dtoa stack overflow appending exponent suffix
  • mg_tls_init EC key corruption via missing return + memory leak on error paths
  • [CVE-2026-73253] Built-in TLS hostname verification wildcard matching
  • [CVE-2026-115473] mg_path_is_sane OOB reads on short paths

Important Changes

  • Mongoose built-in TCP/IP stack now includes an RTOS-powered BSD compatibility layer. All existing applications using the event-driven API remain as they are, and new traditional applications using the Berkeley Sockets API can now take advantage of Mongoose built-in TCP/IP stack. See this example
  • Added support for Modbus-TCP
  • Built-in TLS is now able to support secp384r1 signatures
  • Built-in TLS now accepts CA bundles for clients, it will search for the proper certificate in the bundle. This is, of course, slower and more demanding than simply feeding the proper CA.
  • Mongoose built-in TCP/IP stack now supports PPP and PPPoE. The former PPP driver has been refactored into a configurable AT-command driver over a serial line, freeing PPP to work over Ethernet (PPPoE) and connect directly to an ISP, on (for example) bridged ATM connections. See an example
  • Mongoose built-in TCP/IP stack now supports 802.1Q VLAN tagging, Mongoose can be a host in a VLAN.
  • PPP now supports IPv6
  • Added an mDNS resolver. Mongoose can now resolve .local hosts in URIs, reusing an existing user mDNS server
  • The OTA firmware update API now supports rollback and firmware signing; see this example
  • FreeRTOS handling has changed, instead of MG_ARCH=FREERTOS use MG_ENABLE_FREERTOS=1. The former has been deprecated and trying to build using it will result in a compiler error
  • The Embedded Filesystem feature is now always enabled, and it has a new usability add-on, so you can have your own filesystems in RAM. To point to a filesystem, you need to configure mg_mem_files = mg_packed_files. The former is a global variable, the latter is generated by the packing utility.
  • Built-in TCP/IP stack states MG_TCPIP_EV_ST_CHG and MG_TCPIP_EV_ST6_CHG have been renamed to MG_TCPIP_EV_STATE_CHANGE and MG_TCPIP_EV_STATE6_CHANGE respectively
  • Improved support for MbedTLS in general and version 4 in particular
  • Added docstrings to all headers and a "dashboard interface" layer, this allows fast and easy AI-generation of complex web-based user interfaces

Minor changes

  • Improved MG_ARCH_CUBEsupport, along with a tighter integration with the STM32Cube environment
  • Mongoose built-in TCP/IP stack now honors peer's TCP window
  • Mongoose built-in TCP/IP stack now sends gratuitous ARP and NA when ready
  • Mongoose built-in TCP/IP stack now automatically closes any existing TCP connections when DHCP/SLAAC forces an IP/IPv6 address change
  • Mongoose built-in TCP/IP stack DHCP now honors lease owner, supporting servers announcing other servers' leases
  • Mongoose built-in TCP/IP stack SPI helper API has changed, see here
  • Mongoose built-in TLS now honors IPv6 SAN in certificates
  • Mongoose built-in TLS now supports not configuring client certificates for some not-enforced two-way authentication scenarios
  • Added an example on how to support RTSP video streaming
  • Improved built-in TCP/IP IPv6 compatibility with C89 compilers
  • Improved built-in TCP/IP testing, particularly IPv6
  • Improved built-in TLS testing
  • Improved test coverage
  • Simplified STM32 and Raspberry Pi Pico families examples structure into a more concise board-oriented scheme

Mongoose 7.21

Choose a tag to compare

@scaprile scaprile released this 01 Apr 14:16
b1c2ffe

Overview

This release adds fixes and improvements, and more examples.

Security fixes

  • [CVE-2026-37635] JSON floating-point number parsing performance
  • [CVE-2026-5244] Built-in TLS certificate public-key parsing bounds check
  • [CVE-2026-2968] ChaCha20-Poly1305 authentication-tag verification
  • [CVE-2026-5245] mDNS record parsing bounds check
  • [CVE-2026-2967] Built-in TCP/IP TCP RST sequence validation
  • [CVE-2026-5246] Built-in TLS certificate signature verification for mutual TLS
  • [CVE-2026-2966] DNS transaction-ID entropy
  • [CVE-2026-6985] Built-in TCP/IP malformed TCP option handling
  • [CVE-2026-6986] Built-in TLS GCM authentication-tag verification

Important Changes

  • Built-in TLS is now able to support RSA signatures
  • Fixed ChaCha to work in big-endian platforms
  • Fixed mg_aton() not setting is_ip6 with scope_ids
  • Fixed checksum generation in big-endian platforms
  • mg_connect() now fast fails if network is down, when using Mongoose built-in TCP/IP stack
  • Improved TCP server local information: c->loc now holds the local address to where the remote client has connected, instead of the address given when opening the listener (usually 0.0.0.0)
  • Added support for DNS-SD using mDNS
  • Added support for Windriver's Diab v4
  • Added support for the RTL8211 PHY
  • Added support for GbE PHYs
  • Added support for MbedTLS 4
  • Added support for Wiznet's W55RP20
  • Added support for the ST67W6 Wi-Fi module
  • Added support for working with DCACHE enabled in STM32H7 and STM32N6 boards
  • Added support for MQTT unsubscribe: mg_mqtt_unsub()
  • Mongoose built-in TCP/IP stack now performs checksum validation
  • Improved handling of PEM certificate files, comments and chained certificates are now supported
  • Fixed a long standing certificate verification failure that caused apparently random verify failures
  • Deprecated MG_ARCH_NEWLIB
  • Introduced a new mDNS API, and added an mDNS client example

Minor changes

  • Added support for no options in DHCP messages
  • Allowed more than one address in received DHCP options. The client still uses the first one, but more than one can be sent by the server
  • Added support for STM32N6 in MG_ARCH_CUBE
  • Mongoose built-in TCP/IP stack now coexists with protocols using TCP reserved space in 'flags'
  • Improved Zephyr support and integration
  • Improved multicast and broadcast handling across all supported TCP/IP stacks
  • Improved handling of HTTP fast closures
  • Improved built-in TCP/IP and TLS compatibility with C89 compilers
  • Added OTA firmware update over MQTT example
  • Added HTTP redirect and singleton client examples
  • Improved handling of malformed MQTT5 properties
  • Added more Wi-Fi security definitions
  • Improved built-in TCP/IP testing
  • Improved built-in TLS testing
  • Improved test coverage

Mongoose 7.20

Choose a tag to compare

@scaprile scaprile released this 19 Nov 13:09

Overview

This release adds fixes and improvements, and more examples.

Security fixes

  • [CVE-2025-65502] OpenSSL SSL_CTX_get_cert_store() may fail under low-memory conditions and crash a server using OpenSSL

Important Changes

  • Mongoose built-in TCP/IP stack now handles MSS when acting as a server
  • Added support for NXP Wifi in RW612, with a usage example
  • Added Ethernet driver for STM32N devices
  • Added Ethernet driver for NXP MCXE devices
  • MG_ARCH_NEWLIB will be deprecated in 7.21
  • Built-in TLS is now able to work in two-way authentication mode (mTLS, mutual authentication)
  • Built-in TLS is now able to skip host name validation
  • Built-in TLS is now able to validate certificates with IP Address SAN
  • Improved resiliency to low-memory conditions

Minor changes

  • DHCP name size is now configurable
  • Improved built-in TCP error handling
  • Improved built-in TCP/IP handling of IP options
  • Improved built-in TLS 1.3 client connection start
  • Improved built-in TCP/IP and TLS compatibility with C89 compilers
  • Added compatibility with MbedTLS >= 3, defaulting to TLS 1.3
  • Fixed mg_queue_vprintf usage of va_args, causing problems with some compilers
  • Added a memory management example, based on the o1heap library
  • Mongoose Wi-Fi API continues evolving, now with common start actions moved to an internal handler
  • Improved built-in TLS testing
  • Improved test coverage

Mongoose 7.19

Choose a tag to compare

@scaprile scaprile released this 21 Aug 16:14

Overview

This release adds fixes and improvements, and more examples.

Important Changes

  • Mongoose built-in TCP/IP stack now has a driver for SDIO, e.g.: the Murata Wi-Fi modules in the Arduino Portenta H7 and Infineon CY8CPROTO-062S2-43439
  • Added support for Renesas RA8
  • Added MG_ARCH_TREADX, supporting Eclipse ThreadX and NetXDuo.
  • Function mg_millis() now autodetects the STM32 HAL, a custom time base function no longer needs to be provided
  • Added MG_ARCH_CUBE, this autodetects time base and random number generator, and removes the need to provide custom functions
  • Renamed MG_ARCH_NEWLIB to MG_ARCH_ARMGCC. The former name is still accepted, but it will be deprecated in a further release this year
  • The is_tls flag is now set when calling mg_listen() and mg_connect(), TLS connections no longer need to parse the URL at connect/accept time in order to initiate the handshake; just check that flag. The URL is still needed when host name validation is required
  • When using Mongoose built-in TCP/IP stack, mg_send() and mg_io_send() now return failure when UDP fails to send a datagram
  • Fixed DNS client and built-in TCP/IP stack interactions preventing proper functioning of local DNS servers and numeric addresses for non-local SNTP servers
  • Built-in TLS now is able to validate RSA certificates and use either SAN or CN for host name validation

Minor changes

  • Allowed tildes in URIs and HTTP header values
  • Improved built-in TCP handling of connection start and connection closure
  • Improved built-in TLS 1.3 client connection start
  • Improved TLS operation under high load in socket environments
  • Improved Zephyr support, updated to LTS version 3.7 and stable 4.2.0
  • Built-in TCP/IP stack now accepts TCP Keep-Alive probes from erroneous implementations
  • Introduced mg_calloc() and MG_ENABLE_CUSTOM_CALLOC, to collaborate with custom memory handling
  • Using select() now has a minimum 1ms wait time, instead of no wait, same as how using poll() behaves
  • Added more embedded examples using Wi-Fi, including Arduino Portenta H7 with STM32CubeIDE and RW612 with MCUXpresso
  • Changed more embedded examples to make use of our Wizard
  • Added verbose MbedTLS error logging
  • Built-in TCP/IP and TLS can now be built on C89 compilers
  • Improved built-in TLS testing
  • Improved test coverage

Mongoose 7.18

Choose a tag to compare

@scaprile scaprile released this 21 May 12:48

Overview

This release adds fixes and improvements, and more examples.

Security fixes

Important Changes

  • Mongoose now includes Wi-Fi connection setup functions, including network scan and Access Point mode
  • Mongoose built-in TCP/IP stack now has drivers for the CYW43439 and CYW4343W Wi-Fi chips
  • Changed TCP/IP stack driver internal API, allowing seamless handling of polled drivers like the above and others like Tiny-USB
  • Added support for Access Point mode in Raspberry Pi Pico-SDK (The example code is for Pico 2 W, but should be also valid for Pico W)
  • Added support for the RM2 Wi-Fi breakout by Pimoroni on the NUCLEO-STM32F429 and NUCLEO-STM32F746 boards.
  • Added support for iMXRT-1050, including OTA firmware updates
  • Added support for RW612 OTA firmware updates
  • Changed the timer API: completed timers are now removed from memory
  • When using Mongoose built-in TCP/IP stack, mg_mgr_free() now calls mg_tcpip_free()
  • Added mDNS server code and example

Minor changes

  • Improved built-in TCP handling of connection start and connection closure
  • Improved built-in TLS 1.3 operation
  • Improved TLS connection start when using Mongoose built-in TCP/IP stack
  • Improved TLS handling of socket flow control responses
  • Improved htons/htonl/ntohs/ntohl with faster code
  • Added more embedded examples, including RW612 with MCUXpresso
  • Raspberry Pi Pico 2 W examples updated for compatibility with version 2.1.1
  • DHCP name can now be set to a custom name
  • Added support to allow other stack than WinSock in Windows
  • Changed more embedded examples to make use of our Wizard
  • Finished reformatting the tutorials section (formerly 'examples')
  • Integrated reference-projects into tutorials
  • Improved built-in TLS testing
  • Improved test coverage

Mongoose 7.17

Choose a tag to compare

@scaprile scaprile released this 19 Feb 13:24

Overview

This release adds fixes and improvements, and more examples.

Important Changes

  • Improved TLS handling
  • Fixed IP checksum calculation in 8-bit architectures
  • Fixed ARP lookup sudden timeouts
  • Fixed built-in TLS not triggering the MG_EV_TLS_HS event
  • MG_IO_SIZE now defaults to 512 on embedded platforms, increasing performance
  • Mongoose built-in TCP/IP stack now has drivers for Pico-SDK Wi-Fi
  • Added driver for PPP, Mongoose can now also run on cellphone modules
  • Added support for Pico 2 W
  • Added support for Wiznet's W5100

Minor changes

  • Improved HTTP error handling and version checking
  • Improved random number generation in Windows
  • Renamed field priv in struct mg_mgr to ifp. This field now has an explicit struct mg_tcpip_if * type and so fields within the built-in TCP/IP stack interface struct can now be accessed directly, e.g.: mgr->ifp->ip for the IP address. As a consequence, removed the recently added macro MG_TCPIP_IFACE(mgr), as it is no longer needed
  • Improved built-in TCP connection closure timing, improving performance and RAM usage on repeated connection scenarios
  • Improved built-in TLS server RSA certificate handling
  • Added more embedded examples
  • Added bare metal support for the Raspberry Pi Pico 2 W
  • Raspberry Pi Pico-SDK examples updated for compatibility with version 2.0.0
  • Added a PPP example with an Arduino as an MQTT client using a SIM800 cell modem
  • More examples now default to using our built-in TLS, without preventing the use of other choices
  • Changed more embedded examples to make use of our Wizard
  • Continued reformatting the examples section
  • Improved built-in TLS testing
  • Improved test coverage
  • Started adding (experimental) support for NXP's RW612

News

  • Added a Mongoose Guru on Gurubase.io, you can ask questions and an AI will check our docs for you:
    Gurubase

Mongoose 7.16

Choose a tag to compare

@scaprile scaprile released this 20 Nov 13:04

Overview

This release adds fixes and improvements, and more examples.

Important Changes

  • Improved TLS handling
  • Improved ARP and UDP handling in LANs
  • Fixed IP fragmentation detection in big-endian architectures
  • MG_IO_SIZE defaults now to 256 on embedded platforms
  • mg_http_serve_opts.mime_types now accepts a user settable default for unknown file types
  • Improved mg_random() strength, changed function signature to bool mg_random(void *buf, size_t len)
  • TLS now aborts on weak RNGs (e.g.: when mg_random() returns false)
  • Renamed ARCH_RP2040 to ARCH_PICOSDK
  • Added support for the RNG in Pico-SDK
  • Added support for RP2350 and W5500-EVB-Pico2
  • Added support for TMS570 and the ARM-CGT compiler
  • Refactored the OTA firmware update API
  • Added support for OTA firmware update in most supported platforms

Minor changes

  • Improved HTTP handling of connection closing and pipelined requests
  • Added the macro MG_TCPIP_IFACE(mgr) to access elements of the built-in TCP/IP stack interface, for example the IP address: MG_TCPIP_IFACE(mgr)->ip
  • Updated support for the latest version of the Zephyr project
  • Added more embedded examples
  • Added bare metal support for the Raspberry Pi Pico W
  • Many examples now default to using our built-in TLS, without preventing the use of other choices
  • Changed many embedded examples to make use of our Wizard
  • Continued reformatting the examples section
  • Updated the AWS MQTT client example to work with Elliptic Curve keys
  • Improved test coverage

Mongoose 7.15

Choose a tag to compare

@scaprile scaprile released this 21 Aug 12:35

Overview

This release adds fixes and improvements, and more examples.

Security fixes

Important Changes

  • Added support for MTLS and Chacha20
  • Added support for NXP FRDM-MCXN947
  • Reinstated mg_strdup(), previously deprecated in 7.14
  • POSIX FS is now disabled by default, except on Linux, Mac, Windows. Define MG_ENABLE_POSIX_FS=1 to enable it in another architectures
  • mg_ssi() fix to correct sscanf() usage. Thanks to Yehia Elghaly for independently identifying a crash scenario on Windows caused by freeing a stack-allocated buffer, which was a consequence of an earlier fix made in response to static analysis.

Minor changes

  • Improved HTTP handling of connection closing and pipelined requests
  • Added support for 10/100 detection in Infineon XMC7 driver
  • Added support for obtaining DNS and SNTP servers via DHCP. See usage example here
  • Added mg_now() to get current time as obtained via SNTP. See docs here
  • Updated support for the latest version of the Zephyr project
  • Updated support for the latest version of FreeRTOS+TCP
  • Updated support for more recent versions of OpenSSL
  • uECC can now be built with VLI
  • Added more embedded examples
  • Improved test coverage

Mongoose 7.14

Choose a tag to compare

@scaprile scaprile released this 20 May 13:56

Overview

This release adds fixes and improvements, and more examples.

Important Changes

  • Added client side built-in support for TLS 1.3
  • Improved built-in TCP/IP stack receiver throughput
  • Improved TLS handling
  • Added support for Renesas CC-RH compiler
  • Added support for Renesas RA6M4, NXP MIMX RT1170, and Infineon XMC4 and XMC7
  • Added support for DP83867 GbE PHY
  • Introduced event MG_EV_HTTP_HDRS, triggered when HTTP headers have been received
  • Deprecated mg_http_match_uri(), use mg_match() instead
  • Deprecated mg_ncasecmp(), mg_vcmp(), and mg_vcasecmp(), use mg_strcmp() and the added function mg_strcasecmp() instead
  • Deprecated mg_strstr()
  • Deprecated mg_strdup(), use b.buf = mg_mprintf("%.*s", a.len, a.buf); b.len = a.len; instead
  • Deprecated mg_hex(), use mg_print_hex and the '%M' specifier with one of the print functions instead
  • Deprecated mg_unhex(), and mg_unhexn(), use the newly added function mg_str_to_num() instead
  • Removed architecture auto-detection for embedded types, must manually define MG_ARCH
  • Renamed mongoose_custom.h to mongoose_config.h
  • Renamed struct mg_str::ptr to struct mg_str::buf

Minor changes

  • Enhanced HTTP upload example to write the uploaded file. Also added a full fledged file transfer server and client example.
  • Added support for ESP32 IDF OTA firmware updates
  • Updated support for the latest version of the Zephyr project
  • Moved non-embedded examples to a tutorials code section. Added a new section with reference projects
  • Added API support for application handling of MQTT pub retries
  • Deprecated mg_lower() and mg_globmatch(), both internal, undocumented functions
  • Improved test coverage