BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2026-21428 in Yhirose Cpp-Httplib

High 7.5

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, m...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.5
CVSS v47.7
EPSS0.6%
EPSS percentile43th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Yhirose Cpp-Httplib < 0.30.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-21428
BreachSpider IDBS-2026-GLOBAL-065110-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Published2026-01-01
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-93: CWE-93

Related attack patterns (CAPEC)

CAPEC-81 Web Server Logs Tampering via CWE-93

CAPEC-15 Command Delimiters via CWE-93

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2026-21428 affects cpp-httplib versions prior to 0.30.0, where the write_headers function does not validate CR & LF characters in user-supplied headers, leading to potential SSRF attacks and header injection.

An attacker can inject malicious headers by exploiting the lack of validation in the write_headers function, which can lead to SSRF attacks and unexpected modifications to the request body.

Questions

What is CVE-2026-21428?

CVE-2026-21428 affects cpp-httplib versions prior to 0.30.0, where the write_headers function does not validate CR & LF characters in user-supplied headers, leading to potential SSRF attacks and header injection.

What is the CVSS score for CVE-2026-21428?

CVE-2026-21428 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. EPSS: 0.6%.

Is CVE-2026-21428 actively exploited?

No confirmed active exploitation of CVE-2026-21428 as of 2026-09-25.

How do I remediate CVE-2026-21428?

Priority: HIGH.

What systems are affected by CVE-2026-21428?

CVE-2026-21428 affects Yhirose Cpp-Httplib.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Yhirose","product":"Cpp-Httplib","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.