Library

MQTT-C v1.1.7

Versionv1.1.7
Stars★ 898
Released2026-10-29

A portable MQTT C client for embedded systems and PCs alike.

Release notes

### Security
* Fixed an out-of-bounds read and integer underflow when parsing a PUBLISH whose topic length doesn't fit in the packet ([CVE-2026-54412](https://www.cve.org/CVERecord?id=CVE-2026-54412)) courtesy of @NHub4ra (#208) and @denravonska (#200). Thanks to @snej, @GANGE666, @ByamB4, @sermikr0, @TuranSecurityCNA, @afldl and @ojaneri for reporting it.
* Fixed sending memory past the end of a message after reconnecting during a partial send courtesy of @MartinKlang (#179)
* Fixed signed overflow and out-of-bounds read in `mqtt_error_str()` courtesy of @fhgffy (#207)
* Fixed possible bad memory access after reconnect courtesy of @perigoso (#167)

### Fixes
* Message queue entries are now aligned whatever the size of the send buffer, fixing hard faults on targets without unaligned access (#210, reported by @andersonrs66). Up to alignment − 1 bytes at the end of the send buffer can go unused; see the `mqtt_init()` docs.
* Handle TLS 1.3 session tickets with mbedTLS courtesy of @joakim-tjernlund (#182)
* `number_of_keep_alives` now counts keep-alive pings courtesy of @RGNagel (#187)
* Fixed `mqtt_init_reconnect()` initialisation courtesy of @MartinKlang (#172)
* Use `float` instead of `double` for the response time courtesy of @fperrad (#168)

### Other
* Documentation is now at https://liambindle.github.io/MQTT-C/ (liambindle.ca no longer hosts it), with Doxygen improvements courtesy of @fperrad (#175)
* Cross-compilation through the Zig toolchain courtesy of @akgvn (#171)
* Linting courtesy of @fperrad (#170)
* CI now runs the tests against a local broker (#211)

### Thank you
Thank you to everyone who has contributed code, reported issues and helped other users over the years. MQTT-C was always meant to be a small starting point, MIT licensed and provided as is, that people could fork and build on, and it's been great to see it used that way. Updates here will be occasional, arriving in batches when I check in.

Share this resource


Discovered 2026-10-30 Source GitHub Archive 2026-10 →