Critical Man-in-the-Middle Vulnerability in cpp-httplib Package

cpp-httplib Updated 18 Jul 2026

Summary

10/07/2026
N/A
No i
High
7.4

DEBIAN-CVE-2026-54919: cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Affects cpp-httplib versions 0.11.4+ds-1 – 0.41.0+ds-3~bpo13+1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

cpp-httplib is a C++11 single-file header-only cross-platform HTTP/HTTPS library designed for simplicity and ease of use. It allows developers to integrate HTTP functionalities into their applications seamlessly. However, certain versions of cpp-httplib are vulnerable to a critical security flaw that compromises the integrity of SSL/TLS connections when specific backends are used.

Vulnerability Detail

The vulnerability arises in cpp-httplib when built with Mbed TLS or wolfSSL support, specifically in versions from 0.31.0 to 0.46.1. When a client connects to an IP-literal host with server certificate verification enabled, the library fails to validate the certificate chain properly. This oversight allows a man-in-the-middle attacker to intercept traffic and present a forged certificate, enabling them to read or modify the data being transmitted. The potential ramifications include unauthorized access to sensitive information and data manipulation.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can disable server certificate verification in your application. However, this is not recommended as it exposes your application to potential security risks. If you must implement this, you can modify your connection settings to skip certificate validation, but be aware of the implications.

Conclusion

The cpp-httplib package has a critical vulnerability that can lead to severe security risks if not addressed. It is essential to update to the patched version 0.47.0 or later to ensure the integrity of your application's communications. Utilize tools like Vulert to monitor for vulnerabilities and keep your software secure.

See every vulnerability recorded for cpp-httplib →

Share this vulnerability

FAQ

cpp-httplib is a C++ library that provides easy-to-use HTTP/HTTPS functionalities for applications.

Versions from 0.31.0 to 0.46.1 are affected when built with Mbed TLS or wolfSSL support.

A man-in-the-middle attack occurs when an attacker intercepts communication between two parties, allowing them to eavesdrop or alter the information being exchanged.

You can use Vulert, which monitors open-source vulnerabilities in your software. By uploading your manifest file like package-lock.json, you can receive real-time alerts about vulnerabilities.

If an immediate update is not possible, consider implementing temporary workarounds such as disabling certificate verification, but be cautious of the security risks involved.

Related vulnerabilities

Recent vulnerabilities recorded for cpp-httplib.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback