# CVE-2026-21428: cpp-httplib has CRLF injection in http headers

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-01T17:54:43.959Z
- Modified: 2026-06-17T10:18:39.177Z
- Weaknesses: CWE-93
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.
This 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.

(As written by CVE List.)

## Affected

- yhirose cpp-httplib: < 0.30.0; before 0.30.0

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-wpc6-j37r-jcx7> (exploit, third-party-advisory)
- <https://github.com/yhirose/cpp-httplib/commit/98048a033a532ff22320ce1d11789f8d5710dfcd> (patch)
- <https://github.com/yhirose/cpp-httplib/releases/tag/v0.30.0> (product, release-notes)

## Sources

- CVE List: [CVE-2026-21428](https://www.cve.org/CVERecord?id=CVE-2026-21428), CVE Terms of Use, modified 2026-01-02
- NVD: [CVE-2026-21428](https://nvd.nist.gov/vuln/detail/CVE-2026-21428), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-21428 · Whole record: https://cve.day/CVE-2026-21428.json · Rebuilt by cve.day 2026-11-25T22:59:12.587Z
