CVE-2026-77358
Last modified
CVE-2026-77358 is a high-severity vulnerability rated 8.2/10 on the CVSS scale. cpp-httplib is a C++ header-only HTTP/HTTPS library. In versions 0.33.0 through 0.50.0, the TLS-enabled WebSocket client frees the TLS session before closing the WebSocket that still uses it, producing a use-after-free.
Description
cpp-httplib is a C++ header-only HTTP/HTTPS library. In versions 0.33.0 through 0.50.0, the TLS-enabled WebSocket client frees the TLS session before closing the WebSocket that still uses it, producing a use-after-free. In WebSocketClient::shutdown_and_close the SSL object is freed and the pointer cleared, but the subsequent WebSocket close still sends a close frame through the SSL socket stream, which holds a raw copy of the now-dangling session pointer and reads from and writes to the freed memory. The same freed-then-used ordering is reachable through the client's destructor and its connect path, so ordinary teardown of a secure WebSocket connection triggers the defect. This issue is fixed in version 0.50.1.
Metrics
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| yhirose | cpp-httplib | >= 0.33.0, < 0.50. |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-77358?
How severe is CVE-2026-77358?
How do I fix CVE-2026-77358?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-77337CakePHP Authentication is an authentication plugin for CakeP…9.1
- CVE-2026-7734A vulnerability has been found in osrg GoBGP up to 4.3.0. Th…7.5
- CVE-2026-77341cpp-httplib is a C++ header-only HTTP/HTTPS library. In vers…5.3
- CVE-2026-7735A vulnerability was found in osrg GoBGP up to 4.3.0. Affecte…7.3
- CVE-2026-77354kin-openapi is a Go project for handling OpenAPI files. From…8.7
- CVE-2026-77357Mesop is a Python-based UI framework that allows users to bu…8.7
- CVE-2026-7736A vulnerability was determined in osrg GoBGP up to 4.3.0. Af…7.5
- CVE-2026-77365The Optimole – Optimize Images | Convert WebP & AVIF | CDN &…7.2
- CVE-2026-77368SeaweedFS is a distributed storage system for files and blob…7.6
- CVE-2026-7737A vulnerability was identified in osrg GoBGP up to 4.3.0. Af…7.5
- CVE-2026-7738A security flaw has been discovered in puchunjie doc-tools-m…6.3
- CVE-2026-77384libp2p is a JavaScript implementation of the libp2p networki…7.5
Are you affected by CVE-2026-77358?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
