CVE-2026-34441
JSON

4.8medium

cpp-httplib: HTTP Request Smuggling via Unconsumed GET Request Body

Severity
4.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to version 0.40.0, cpp-httplib is vulnerable to HTTP Request Smuggling. The server's static file handler serves GET responses without consuming the request body. On HTTP/1.1 keep-alive connections, the unread body bytes remain on the TCP stream and are interpreted as the start of a new HTTP request. An attacker can embed an arbitrary HTTP request inside the body of a GET request, which the server processes as a separate request. This issue has been patched in version 0.40.0.

Affected

Product or packageVersionsReported by
yhirose cpp-httplib< 0.40.0, before 0.40.0CVE List, NVD

All scores

GitHub_M4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Classification

CWE-444

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to version 0.40.0, cpp-httplib is vulnerable to HTTP Request Smuggling. The server's static file handler serves GET responses without consuming the request body. On HTTP/1.1 keep-alive connections, the unread body bytes remain on the TCP stream and are interpreted as the start of a new HTTP request. An attacker can embed an arbitrary HTTP request inside the body of a GET request, which the server processes as a separate request. This issue has been patched in version 0.40.0.

NVD (es)

cpp-httplib es una biblioteca HTTP/HTTPS multiplataforma de C++11 de un solo archivo de solo encabezado. Antes de la versión 0.40.0, cpp-httplib es vulnerable a Contrabando de Solicitudes HTTP. El gestor de archivos estáticos del servidor sirve respuestas GET sin consumir el cuerpo de la solicitud. En conexiones keep-alive de HTTP/1.1, los bytes del cuerpo no leídos permanecen en el flujo TCP y son interpretados como el inicio de una nueva solicitud HTTP. Un atacante puede incrustar una solicitud HTTP arbitraria dentro del cuerpo de una solicitud GET, que el servidor procesa como una solicitud separada. Este problema ha sido parcheado en la versión 0.40.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-34441 changed 2026-04-01CVE Terms of Use
NVDCVE-2026-34441 changed 2026-07-24Public domain