Uncaught Exception Affecting cpp-httplib package, versions [,0.39.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Social Trends
Exploit Maturity
Proof of Concept
EPSS
0.45% (36th 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-CONAN-CPPHTTPLIB-15474308
  • published12 Mar 2026
  • disclosed11 Mar 2026
  • creditUnknown

Introduced: 11 Mar 2026

CVE-2026-31870  (opens in a new tab)
CWE-248  (opens in a new tab)

How to fix?

Upgrade cpp-httplib to version 0.39.0 or higher.

Overview

Affected versions of this package are vulnerable to Uncaught Exception in the ClientImpl::open_stream() function when processing the Content-Length response header in the streaming API. An attacker can cause the client process to crash by sending a malformed or excessively large Content-Length value in an HTTP response.

References

CVSS Base Scores

version 4.0
version 3.1