CVE-2026-28435: Payload size limit bypass via gzip decompression in ContentReader (streaming) allows oversized request bodies in cpp-httplib

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, cpp-httplib (httplib.h) does not enforce Server::setpayloadmaxlength() on the decompressed request body when using HandlerWithContentReader (streaming ContentReader) with Content-Encoding: gzip (or other supported encodings). A small compressed payload can expand beyond the configured payload limit and be processed by the application, enabling a payload size limit bypass and potential denial of service (CPU/memory exhaustion). 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:36 PM
Data Sourced
via MITRE·07:36 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Dec 1, 58158
Event
via FIRST·05:19 PM

Frequently Asked Questions

1

What is the severity of CVE-2026-28435?

CVE-2026-28435 is categorized as a high severity vulnerability due to the potential for oversized request bodies leading to denial of service attacks.

2

How do I fix CVE-2026-28435?

To fix CVE-2026-28435, update cpp-httplib to version 0.35.0 or later where payload size limits are enforced.

3

What kind of attacks can CVE-2026-28435 lead to?

CVE-2026-28435 can lead to denial of service (DoS) attacks by allowing oversized request bodies that can exhaust resources.

4

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

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

5

Is there a workaround for CVE-2026-28435?

Implementing your own checks for payload size prior to upgrading cpp-httplib could serve as a temporary workaround for CVE-2026-28435.

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