Critical TLS Hostname Verification Flaw in Apache HttpComponents Client

httpcomponents-client Updated 13 Aug 2026

Summary

11/08/2026
N/A
No i
Critical
9.1

DEBIAN-CVE-2026-71290: Improper TLS hostname verification vulnerability in Apache HttpComponents Client 5.4 or newer. HostnameVerificationPolicy#BUILTIN setting has no effect when used with the async version of HttpClient. Affects httpcomponents-client versions 4.5.13-2 – 4.5.14-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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Apache HttpComponents Client is a widely-used library for building HTTP clients in Java. It provides essential features for handling HTTP requests and responses, including connection management, cookie handling, and authentication. The library is crucial for applications that require reliable communication over the web. However, a recent vulnerability has been identified that compromises the security of the library when used in asynchronous mode.

Vulnerability Detail

The vulnerability arises from improper TLS hostname verification in Apache HttpComponents Client version 5.4 and newer. Specifically, the HostnameVerificationPolicy#BUILTIN setting is ineffective when the async version of HttpClient is utilized. This flaw allows an attacker who can intercept and modify traffic between the client and server to impersonate the server by presenting a valid certificate for a different domain. This could lead to severe security implications, including data breaches and unauthorized access to sensitive information.

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, users can avoid using the async version of HttpClient until the upgrade is applied. Additionally, implementing custom hostname verification logic may help mitigate the risk until a proper fix is in place.

Conclusion

The improper TLS hostname verification vulnerability in Apache HttpComponents Client poses significant risks to applications using the library. It is crucial for users to upgrade to the patched version 5.6.4 or later to mitigate these risks. Understanding the nature of this vulnerability and taking appropriate actions can help safeguard applications against potential attacks.

See every vulnerability recorded for httpcomponents-client →

Share this vulnerability

FAQ

The CVSS score for this vulnerability is 9.1, indicating a critical level of severity.

Versions 5.4 and newer of Apache HttpComponents Client are affected by this vulnerability.

No, the classic version of HttpClient is not affected by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If an immediate upgrade is not possible, consider avoiding the async version of HttpClient and implementing custom hostname verification as a temporary measure.

Related vulnerabilities

Recent vulnerabilities recorded for httpcomponents-client.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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