#1151203 cpp-httplib: CVE-2026-103930

Package:
src:cpp-httplib
Source:
src:cpp-httplib
Submitter:
Salvatore Bonaccorso
Date:
2026-11-11 04:03:05 UTC
Severity:
normal
Tags:
#1151203#5
Date:
2026-10-18 07:01:49 UTC
From:
To:
Hi,

The following vulnerability was published for cpp-httplib.

CVE-2026-103930[0]:
| cpp-httplib is a C++ header-only HTTP/HTTPS library. From 0.29.0
| until 0.51.0, Client::open_stream in httplib.h accepts a caller-
| controlled path that reaches detail::write_request_line() without
| the detail::encode_path() protection used by the ordinary buffered
| request path. Raw carriage-return and line-feed bytes in the path
| can therefore split the outbound HTTP/1.1 request line and inject
| attacker-shaped request metadata. Exploitation requires an embedding
| application to pass remote user input into the open_stream path and
| a backend or intermediary that interprets the injected bytes; the
| established impact is modification of backend-visible request data,
| not direct confidentiality or availability impact. This issue is
| fixed in version 0.51.0.


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-103930
https://www.cve.org/CVERecord?id=CVE-2026-103930
[1] https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-vq69-f637-8fhr
[2] https://github.com/yhirose/cpp-httplib/pull/2501
[3] https://github.com/yhirose/cpp-httplib/commit/255c075b82cf9f221e6e607e8e6789e6e2bf4c2a

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore

#1151203#12
Date:
2026-11-03 13:50:51 UTC
From:
To:
Hi,

The fix commits from the security tracker, all touching httplib.h only
(plus test/test.cc):

#1145977 CVE-2026-77358 2f986fd5e56e "Fix use-after-free of TLS
session in WebSocketClient::shutdown_and_close()" (v0.50.1+)
#1145976 CVE-2026-77341 568d434e72fc "Fix CRLF injection in chunked
response trailers" (v0.50.0+)
#1151203 CVE-2026-103930 255c075b82cf "Reject CR/LF in the request
target and fail the request cleanly (#2501)" (v0.51.0+)

unstable 0.41.0+ds-3: applying all three in that order to httplib.h
from
https://www.google.com/url?q=http://sources.debian.org&source=gmail&ust=1793800251483000&sa=E
works, with line offsets only (no fuzz):
2f986fd5 -292/-288, 568d434e -175, 255c075b -213/-524

trixie 0.18.7-1+deb13u1: 568d434e applies (offset -2967); 2f986fd5 and
255c075b do not apply and would need backports. 0.18.7 may not even
have the WebSocket client that 2f986fd5 fixes; I have not checked.

Mechanical patch-applies check only; not built or tested.

Regards

#1151203#17
Date:
2026-11-11 04:00:25 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
cpp-httplib, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1151203@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mario Limonciello <superm1@debian.org> (supplier of updated cpp-httplib package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 04 Nov 2026 06:36:37 -0600
Source: cpp-httplib
Binary: libcpp-httplib-dev libcpp-httplib0.64 libcpp-httplib0.64-dbgsym
Architecture: source amd64
Version: 0.64.0+ds-0.1~exp1
Distribution: experimental
Urgency: medium
Maintainer: Mario Limonciello <superm1@debian.org>
Changed-By: Mario Limonciello <superm1@debian.org>
Description:
 libcpp-httplib-dev - C++ HTTP/HTTPS server and client library - development files
 libcpp-httplib0.64 - C++ HTTP/HTTPS server and client library
Closes: 1138578 1142290 1145976 1145977 1151203 1151204
Changes:
 cpp-httplib (0.64.0+ds-0.1~exp1) experimental; urgency=medium
 .
   [ Non-maintainer upload ]
   * New upstream version (Closes: #1142290)
     - CVE-2026-45352 (Closes: #1138578), fixed in 0.43.4
     - CVE-2026-45372, CVE-2026-46527 (Closes: #1138578), fixed in 0.44.0
     - CVE-2026-77341 (Closes: #1145976), fixed in 0.50.0
     - CVE-2026-77358 (Closes: #1145977), fixed in 0.50.1
     - CVE-2026-102944 (Closes: #1151204), fixed in 0.51.0
     - CVE-2026-103930 (Closes: #1151203), fixed in 0.51.0
   * d/control:
     - 0.41->0.64 binaries
     - pkg-config -> pkgconf
   * d/tests/control: pkg-config->pkgconf
Checksums-Sha1:
 14e37e62648809d27ee150d6e9ca12b0755e74d2 2351 cpp-httplib_0.64.0+ds-0.1~exp1.dsc
 0daf3f5b4edb4802b48a0a1a20841827ea78800c 1323396 cpp-httplib_0.64.0+ds.orig.tar.xz
 e700abaff6e23d644c971b4f7d95b920b93f7bb8 6424 cpp-httplib_0.64.0+ds-0.1~exp1.debian.tar.xz
 f879e0b48c16f5af6fe10db1024461f55c0c4104 8830 cpp-httplib_0.64.0+ds-0.1~exp1_amd64.buildinfo
 7e10ffb7037c827106509a47e204fac77bf9ec73 37676 libcpp-httplib-dev_0.64.0+ds-0.1~exp1_amd64.deb
 f19d9a58dcaee5bdd976548917adbb734c68b2c7 3534712 libcpp-httplib0.64-dbgsym_0.64.0+ds-0.1~exp1_amd64.deb
 ee87db89d2756d3393f80d37d2ad46050553bad5 331892 libcpp-httplib0.64_0.64.0+ds-0.1~exp1_amd64.deb
Checksums-Sha256:
 220f14c7049f14623eab57701aaada32d1a7aa018eda7349f406b8da0da5bbca 2351 cpp-httplib_0.64.0+ds-0.1~exp1.dsc
 dd2a826c46227ee38f43d70ee466c942ed929bf587a63350d672e6b38dfe662a 1323396 cpp-httplib_0.64.0+ds.orig.tar.xz
 ad3a7859a4a267766429f5edf9c163aa70ae85c6c96776b0f143ab63515b0c79 6424 cpp-httplib_0.64.0+ds-0.1~exp1.debian.tar.xz
 d8def2125603224bdb0e4564611b6cb4000ccaf548b6b0cab44ec156cf485ad2 8830 cpp-httplib_0.64.0+ds-0.1~exp1_amd64.buildinfo
 b32c7b9fca8a13912ec41d5731bad663b4b41cf5d020d8bc3f10c8ba82f2e7a4 37676 libcpp-httplib-dev_0.64.0+ds-0.1~exp1_amd64.deb
 cb92ffcf6dd0bd8b6a37724e8d27824aadeb72e29b8cbf815a25b73f19df2cca 3534712 libcpp-httplib0.64-dbgsym_0.64.0+ds-0.1~exp1_amd64.deb
 be6e671149562e45e904d4f1d3cae7088663fccc2ce61e98c2b2c46c2124ad4c 331892 libcpp-httplib0.64_0.64.0+ds-0.1~exp1_amd64.deb
Files:
 175abc768df5f0e2a5bac6c58662cee7 2351 libs optional cpp-httplib_0.64.0+ds-0.1~exp1.dsc
 a2234d962f24413163efc4eac0ffa7bf 1323396 libs optional cpp-httplib_0.64.0+ds.orig.tar.xz
 7df37b1d2d6dee6a89786f83d0d5e08c 6424 libs optional cpp-httplib_0.64.0+ds-0.1~exp1.debian.tar.xz
 394bb5e449ce2958aecd23e8f8a60b9a 8830 libs optional cpp-httplib_0.64.0+ds-0.1~exp1_amd64.buildinfo
 bb62c5d45efcd8ad2c6678c577ee2eb6 37676 libdevel optional libcpp-httplib-dev_0.64.0+ds-0.1~exp1_amd64.deb
 142a5b5e9641742725940fa66db33f93 3534712 debug optional libcpp-httplib0.64-dbgsym_0.64.0+ds-0.1~exp1_amd64.deb
 1b8ba4e5207702b0aeb421e70d9e4e82 331892 libs optional libcpp-httplib0.64_0.64.0+ds-0.1~exp1_amd64.deb
-----BEGIN PGP SIGNATURE-----

iQJHBAEBCgAxFiEECwtuSU6dXvs5GA2aLRkspiR3AnYFAmryRDUTHHN1cGVybTFA
ZGViaWFuLm9yZwAKCRAtGSymJHcCdrvAD/40XpR4XebUO5DbPAx3p0OD2WY7oHB2
U4Fb+WlI3B8gezws6pbE2IHkoRQOkCOMNCZ+Vfjb01aZm2s/UmOJTYWW2QvpZW5V
KNI6fsNDeFcOPR4ni+mtWM4z8WhcVp+xWwE8aE4hnGynwzrcWmcoqhQZAsIAhBry
XP2rKXj5CFrFwLxfw+HlnClmcQc6/h6jphXvJHLHifvCXcwDh4IhFiBVsPyJJt3M
yLTuXdkdjyIH+fS5/Bx1xejJVsL+xu368itwLWuAOUjQhj22vKC1Y1cWyGNvozQJ
75HjBuu5U+TZenYBo2C2DNlUkoJxTSdAqcq8OsTDWjR7Xhr/+VeiQfzHvsFjmTQ8
E1V2bltg5bniDCqozxDZxLXHQbfHqWal185dX39aftXTWR9Fbn2lhaHjzYRDddsW
t3Zjs3f4UFzX0yq/hcGtep8Fbv4exvT2DZO4kvyxAfDYNXGGlQpoMbXZY2hGxFgu
8YyfcQ55OfAhgbOLf6FWpxGZU52wPd0gWQzcjlZzLl0UJ3c/WZT44ixR4+SB6ivW
2b58JxNBUJGA81d/d+agLkbtIvcI8oiH/dEqzvnwgeag+H6hxmTpg7vmc+BNQ51N
myCzr8Mm33hPOGTyftN7+vF+/kgWKH+Yn7O0QYWRpG1rv4Nyj2Az1DyJk0nxehpR
qSoJGCHAVBIKig==
=Tlgw
-----END PGP SIGNATURE-----