{"id":"CVE-2026-21428","published":"2026-01-01T17:54:43Z","modified":"2026-01-02T18:50:20Z","title":"cpp-httplib has CRLF injection in http headers","vendor":"yhirose","product":"cpp-httplib","tier":"tail","description":{"text":"cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to version 0.30.0, the ``write_headers`` function does not check for CR & LF characters in user supplied headers, allowing untrusted header value to escape header lines.\nThis vulnerability allows attackers to add extra headers, modify request body unexpectedly & trigger an SSRF attack. When combined with a server that supports http1.1 pipelining (springboot, python twisted etc), this can be used for server side request forgery (SSRF). Version 0.30.0 fixes this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00595,"percentile":0.42504,"provenance":"source"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"references":[{"url":"https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-wpc6-j37r-jcx7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/yhirose/cpp-httplib/commit/98048a033a532ff22320ce1d11789f8d5710dfcd","tags":["x_refsource_MISC"]},{"url":"https://github.com/yhirose/cpp-httplib/releases/tag/v0.30.0","tags":["x_refsource_MISC"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":8.5},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"yhirose","affectedVersions":[{"vendor":"yhirose","product":"cpp-httplib","versions":["< 0.30.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-01-02T18:50:07.704892Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-0026","exploited":false,"provenance":"source"}}