Download Latest Version v0.52.0 source code.zip (2.1 MB)
Email in envelope

Get an email when there's a new version of cpp-httplib

Home / v0.50.1
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-07-12 805 Bytes
v0.50.1 source code.tar.gz 2026-07-12 1.9 MB
v0.50.1 source code.zip 2026-07-12 2.1 MB
Totals: 3 Items   4.0 MB 0

What's Changed

Security fixes

  • Fix use-after-free of TLS session in WebSocketClient::shutdown_and_close() (GHSA-w7p7-f35j-mw7q). shutdown_and_close() freed the TLS session before ws_->close() sent the WebSocket close frame. The WebSocket's SSLSocketStream keeps a raw pointer to that session, so sending the close frame read/wrote a freed SSL object. This affects any wss:// client that is destroyed (or reconnected via connect()) while the connection is still open, without an explicit close() first. The close frame is now sent while the session is still alive, and the session is freed afterward. Regression tests covering both the destroy-while-open and reconnect-while-open paths were added

Full Changelog: https://github.com/yhirose/cpp-httplib/compare/v0.50.0...v0.50.1

Source: README.md, updated 2026-07-12