Unknown · Cpp-Httplib · CVE-2026-21428
**Name of the Vulnerable Software and Affected Versions**
cpp-httplib versions prior to 0.30.0
**Description**
The `write headers` function in cpp-httplib does not properly validate user-supplied headers, specifically failing to check for carriage return (CR) and line feed (LF) characters. This allows attackers to inject additional headers, potentially modify the request body, and trigger a Server-Side Request Forgery (SSRF) attack. When used with servers supporting HTTP/1.1 pipelining, the risk of SSRF is increased. The vulnerable component is the `write headers` function.
**Recommendations**
Update to version 0.30.0 or later.