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

Exploit Maturity
Proof of Concept
EPSS
0.09% (26th 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 Learn

Learn about Uncaught Exception vulnerabilities in an interactive lesson.

Start learning
  • 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