Vulnerability · Published Apr 22, 2026 · Assigned by apache
CVE-2026-40542Apache HttpClient: SCRAM-SHA-256 mutual authentication bypass may cause the client to accept authentication without proper mutual authentication verification
High 7.3
In plain English
A high-severity security flaw in Apache HttpClient from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.3High
Exploit odds (30 days)0.5%top 54.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
Missing critical step in authentication in Apache HttpClient 5.6 allows an attacker to cause the client to accept SCRAM-SHA-256 authentication without proper mutual authentication verification. Users are recommended to upgrade to version 5.6.1, which fixes this issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.apache.httpcomponents.client5:httpclient5 | 5.6.1 | GHSA-v468-qcjx-r72w |
| Ubuntu:22.04:LTS | httpcomponents-client | no fix listed | UBUNTU-CVE-2026-40542 |
| Ubuntu:24.04:LTS | httpcomponents-client | no fix listed | UBUNTU-CVE-2026-40542 |
| Ubuntu:25.10 | httpcomponents-client | no fix listed | UBUNTU-CVE-2026-40542 |
| Ubuntu:26.04:LTS | httpcomponents-client | no fix listed | UBUNTU-CVE-2026-40542 |
| Ubuntu:26.10 | httpcomponents-client | no fix listed | UBUNTU-CVE-2026-40542 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache HttpClient | 5.6 – before 5.6.1 |
Weakness: CWE-304, CWE-325 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
References
- https://lists.apache.org/thread/tfmgv86xr0z1y096vs3z0y315t1v3o97 vendor-advisory
- http://www.openwall.com/lists/oss-security/2026/04/22/5
- https://access.redhat.com/security/cve/CVE-2026-40542 vdb-entry, x_refsource_REDHAT
- RHBZ#2460518 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40542.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:60247 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:60249 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:60248 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:60239 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:60251 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:60246 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:60250 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:60252 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:60259 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:60254 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:60256 vendor-advisory, x_refsource_REDHAT