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. EPSS estimates a 0.29% chance of exploitation in the next 30 days.
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
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
- Deferred
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-7735A vulnerability was found in osrg GoBGP up to 4.3.0. Affecte…7.3
- CVE-2026-77351Wallos is an open-source, self-hostable personal subscriptio…3.5
- CVE-2026-77352Wallos is an open-source, self-hostable personal subscriptio…4.3
- CVE-2026-77353Wallos is an open-source, self-hostable personal subscriptio…4.6
- 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-77360oRPC is an tool that helps build APIs that are end-to-end ty…6.3
- CVE-2026-77361obsidian-tc is a governed, agent-ready Model Context Protoco…4.7
- CVE-2026-77362obsidian-tc is a governed, agent-ready Model Context Protoco…4.3
- CVE-2026-77363obsidian-tc is a governed, agent-ready Model Context Protoco…8.8
- CVE-2026-77364obsidian-tc is a governed, agent-ready Model Context Protoco…6.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
