CVE-2026-28434: yhirose cpp-httplib · Information Exposure
Affects yhirose cpp-httplibSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium : upgrade to 0.35.0 when convenient.
Data as of 29 Oct 2026, 19:04 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 24% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.35.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 4 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade cpp-httplib and yhirose/cpp-httplib to 0.35.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| yhirosecpp-httplib | Affected
| Fixed in
|
GitHubyhirose/cpp-httplibpkg:github/yhirose/cpp-httplibOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate this vulnerability, organizations should upgrade cpp-httplib to version 0.35.0 or later, where the issue is fixed by requiring explicit registration of a custom exception handler. If upgrading is not immediately feasible, developers should implement and register a custom exception handler via set_exception_handler() that safely handles exceptions without exposing sensitive details in HTTP responses. This handler should log exception details securely on the server side and return generic error messages to clients. Additionally, developers should audit their code to ensure no other mechanisms leak internal information. Network-level protections such as web application firewalls (WAFs) can be configured to detect and block suspicious requests that might trigger exceptions. Monitoring HTTP response headers for unexpected EXCEPTION_WHAT headers can help detect vulnerable deployments. Finally, security teams should incorporate this vulnerability into their vulnerability management and patching processes to ensure timely remediation.
Description
cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.35.0, when a request handler throws a C++ exception and the application has not registered a custom exception handler via set_exception_handler(), the library catches the exception and writes its message directly into the HTTP response as a header named EXCEPTION_WHAT. This header is sent to whoever made the request, with no authentication check and no special configuration required to trigger it. The behavior is on by default. A developer who does not know to opt in to set_exception_handler() will ship a server that leaks internal exception messages to any client. This vulnerability is fixed in 0.35.0.