CVE-2026-28434: cpp-httplib's default exception handler leaks e.what() to clients via EXCEPTION_WHAT response header

Published Mar 4, 2026
·
Updated

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 setexceptionhandler(), the library catches the exception and writes its message directly into the HTTP response as a header named EXCEPTIONWHAT. 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 setexceptionhandler() will ship a server that leaks internal exception messages to any client. This vulnerability is fixed in 0.35.0.

Affected Software

2 affected components
cpp-httplib<0.35.0
Yhirose Cpp-httplib<0.35.0

Event History

Mar 4, 2026
CVE Published
via MITRE·07:34 PM
Data Sourced
via MITRE·07:34 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Dec 1, 58158
Event
via FIRST·10:57 AM

Frequently Asked Questions

1

What is the severity of CVE-2026-28434?

CVE-2026-28434 is considered a medium severity vulnerability due to the potential leakage of error information to clients.

2

How do I fix CVE-2026-28434?

To fix CVE-2026-28434, upgrade cpp-httplib to version 0.35.0 or later where the vulnerability is resolved.

3

What are the risks associated with CVE-2026-28434?

The risks associated with CVE-2026-28434 include the potential exposure of sensitive error messages in the EXCEPTION_WHAT response header.

4

Which versions of cpp-httplib are affected by CVE-2026-28434?

CVE-2026-28434 affects all versions of cpp-httplib prior to 0.35.0.

5

Is CVE-2026-28434 a remote code execution vulnerability?

No, CVE-2026-28434 is not a remote code execution vulnerability, but it does involve information leakage.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203