CRLF Injection Affecting cpp-httplib package, versions <0.18.7-1ubuntu0.25.10.2


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.3% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2510-CPPHTTPLIB-17116957
  • published25 Jun 2026
  • disclosed29 May 2026

Introduced: 29 May 2026

CVE-2026-45372  (opens in a new tab)
CWE-93  (opens in a new tab)
CWE-444  (opens in a new tab)

How to fix?

Upgrade Ubuntu:25.10 cpp-httplib to version 0.18.7-1ubuntu0.25.10.2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cpp-httplib package and not the cpp-httplib package as distributed by Ubuntu. See How to fix? for Ubuntu:25.10 relevant fixed versions and status.

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 (is_field_value) 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.