CVE-2026-40542

Apache HttpClient: SCRAM-SHA-256 mutual authentication bypass may cause the client to accept authentication without proper mutual authentication verification

Published Apr 22, 2026 CVSS 3.1 · 7.3 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability lies in a missing critical step during SCRAM‑SHA‑256 authentication in Apache HttpClient. Because of this, an attacker can compel the client to accept a SCRAM‑SHA‑256 authentication exchange without the necessary mutual verification, effectively bypassing the intended security check. This bypass allows an attacker to impersonate a legitimate client or service, potentially compromising confidentiality and integrity of all authenticated sessions that rely on this client. Additionally, this flaw is associated with CWE‑325.

Affected Systems

Apache Software Foundation’s Apache HttpClient is affected, specifically version 5.6. The issue is fixed starting with version 5.6.1; earlier releases are vulnerable.

Risk and Exploitability

The vulnerability is an authentication bypass (CWE‑304) and also involves CWE‑325. The CVSS score of 7.3 indicates a high severity, and the EPSS score is below 1 %, implying the likelihood of exploitation is currently low. It is not listed in the CISA KEV catalog. Because the flaw involves the authentication protocol, the likely attack vector is a network‑based request directed at a system that uses HttpClient for SCRAM‑SHA‑256 mutual authentication. The impact is that an attacker can establish a session that the client will treat as authenticated even though mutual verification did not occur. Though exploit data is limited, this loss of authentication control poses a high risk to any application that relies on this client for secure communications.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache HttpClient to version 5.6.1 or later.
  • If upgrading is not immediately possible, disable SCRAM‑SHA‑256 mutual authentication or enforce additional authentication checks at the application layer.
  • Monitor authentication logs for anomalous success messages and validate that mutual authentication is being enforced after the migration.

Generated by OpenCVE AI on May 5, 2026 at 01:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-v468-qcjx-r72w Apache HttpClient accepts SCRAM-SHA-256 authentication without proper mutual authentication verification
History
Type Values Removed Values Added
CPEs cpe:2.3:a:apache:httpclient:5.6:-:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Apache
Apache httpclient
Vendors & Products Apache
Apache httpclient
Type Values Removed Values Added
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.
Title Apache HttpClient: SCRAM-SHA-256 mutual authentication bypass may cause the client to accept authentication without proper mutual authentication verification
Weaknesses CWE-304
References
Weaknesses
  • CWE-304

    Missing Critical Step in Authentication

  • CWE-325

    Missing Cryptographic Step

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Sep 9, 2026, 12:05 PM
Reserved
Apr 14, 2026, 9:11 AM
Status
Modified
Published
Apr 22, 2026, 8:16 AM
Modified
Oct 26, 2026, 9:10 PM
Severity
Important
Public date
Apr 22, 2026, 7:07 AM