CVE-2026-45372: cpp-httplib: HTTP header value percent-decoding in server-side `parse_header` enables CRLF injection

Published May 29, 2026
·
Updated

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.44.0, when cpp-httplib's server parses an incoming request, it applies percent-decoding to every header value except Location and Referer. The validity check (isfieldvalue) is run before decoding, so encoded %0D%0A passes the check and is then expanded to a literal \r\n byte pair inside the stored header value. This vulnerability is fixed in 0.44.0.

Affected Software

3 affected components
Yhirose Cpp-httplib<0.44.0
Yhirose Cpp-httplib<0.44.0
debian/cpp-httplib<=0.11.4+ds-1+deb12u1, <=0.18.7-1+deb13u1, <=0.41.0+ds-3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade cpp-httplib to a version that resolves this vulnerability.

    Fixed in 0.44.0

Event History

May 29, 2026
CVE Published
via MITRE·07:21 PM
Data Sourced
via MITRE·07:21 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeaknessAffected Software
Jun 25, 2026
Data Sourced
via Debian·04:26 PM
DescriptionAffected Software
Data Sourced
via Launchpad·04:26 PM
Description
Jun 26, 2026
Data Sourced
via Ubuntu·04:26 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-45372?

The severity of CVE-2026-45372 is critical with a score of 9.9.

2

What is the main issue described in CVE-2026-45372?

CVE-2026-45372 describes a CRLF injection vulnerability caused by improper handling of percent-decoding in HTTP header values.

3

How do I fix CVE-2026-45372?

To fix CVE-2026-45372, update cpp-httplib to version 0.44.0 or later where the vulnerability has been patched.

4

What impact does CVE-2026-45372 have on applications using cpp-httplib?

CVE-2026-45372 can allow attackers to perform CRLF injection, potentially leading to HTTP response splitting and header manipulation.

5

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

CVE-2026-45372 affects versions prior to 0.44.0 of cpp-httplib.

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