LiveActive security incident?Get immediate response
CVE Record

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

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.

HighCVSS 7.7Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2026-21428 affects cpp-httplib before 0.30.0. An attacker who can influence HTTP header values may inject unintended headers or alter request handling. In some deployments, this can contribute to server-side request forgery. There is no cited evidence of active exploitation, and it is not listed in KEV.

Executive priority

Prioritize remediation for internet-facing services, proxy components, and systems that make internal HTTP requests based on user-controlled data. The main business concern is unauthorized internal request routing or request manipulation. Treat as high priority, but not an emergency based solely on current sources.

Technical view

The vulnerable write_headers function did not reject carriage return or line feed characters in user-supplied header values. This is CWE-93 CRLF injection. The advisory says this can add extra headers, unexpectedly modify request bodies, and, with HTTP/1.1 pipelining-capable servers, enable SSRF. Version 0.30.0 fixes the issue.

Likely exposure

Exposure exists where applications compile or vendor cpp-httplib versions earlier than 0.30.0 and pass untrusted input into outbound or proxied HTTP headers. Header-only usage may be embedded directly in source trees, so dependency scanners may miss it.

Exploitation context

The issue is remotely reachable when attackers control header values used by an affected application. The source notes SSRF potential when combined with servers supporting HTTP/1.1 pipelining, such as Spring Boot or Python Twisted. Public sources provided do not show active exploitation.

Researcher notes

The public record identifies the root cause, affected range, CVSS 4.0 score 7.7, CWE-93, and the fixing release. The provided sources do not include exploit-in-the-wild evidence or detailed environmental prevalence. Validate embedded copies carefully because cpp-httplib is header-only.

Mitigation direction

  • Upgrade cpp-httplib to version 0.30.0 or later.
  • Replace any vendored single-header copies with the fixed release.
  • Review applications that place user input into HTTP headers.
  • Check the GitHub advisory and release notes for vendor guidance.

Validation and detection

  • Inventory direct, transitive, and vendored cpp-httplib usage.
  • Confirm deployed code uses cpp-httplib 0.30.0 or later.
  • Review header construction paths for untrusted input.
  • Verify builds include the updated header-only library.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-93: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Cloud metadata behavior lookup

The CVE wording references SSRF or metadata access, so cloud discovery and credential material review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-21428 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.7 (4.0)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.7CVSS 4.0HighCVSS: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——Primary CVE score

Vulnerability scoring details

Base CVSS 4.0 score

7.7High
CVSS 4.0 vector shape for CVE-2026-21428Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
yhirosecpp-httplib< 0.30.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-93 · source CWE mapping

Improper Neutralization of CRLF Sequences ('CRLF Injection')

Improper Neutralization of CRLF Sequences ('CRLF Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.