CVE-2026-28434 json
cpp-httplib's default exception handler leaks e.what() to clients via EXCEPTION_WHAT response header
published 2026-03-04 8 mo ago modified 2026-06-17 4 mo ago also EUVD-2026-9495
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 28%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- cpp-httplib_project cpp-httplib 0.35.0
- yhirose cpp-httplib 0.35.0
- cpp-httplib Debian 14 0.41.0+ds-3
debian advisories DEBIAN-CVE-2026-28434
- cpp-httplib openSUSE Tumbleweed 0.38.0-1.1
opensuse advisories openSUSE-SU-2026:10435-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-28434 updated cvss 5.3
cpp-httplib: default exception handler leaks e.what() to clients via EXCEPTION_WHAT response header
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 8 mo ago
Exploit prediction
0.35% chance of exploitation in the next 30 days, higher than 28% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-8mpw-r4gc-xm7q referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected products
- yhirose cpp-httplib
Classification
- Weakness
-
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
References
-
github.com
/yhirose/cpp-httplib/commit/defd907c7469c5c8281247b73bbd07be24c31164
patch
-
github.com
/yhirose/cpp-httplib/security/advisories/GHSA-8mpw-r4gc-xm7q
exploit, mitigation, vendor-advisory
Sources
- CVE List CVE-2026-28434
- NVD CVE-2026-28434
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.