HIGH 7.5

CVE-2026-50010

Netty: Wrapping plain trust manager silently disables hostname verification

Description

SimpleTrustManagerFactory.engineGetTrustManagers() and related paths wrap any user-supplied plain X509TrustManager in X509TrustManagerWrapper, which extends X509ExtendedTrustManager but implements the 3-arg checkServerTrusted(chain, authType, SSLEngine) by discarding the SSLEngine and calling the 2-arg delegate. Because the object now IS an X509ExtendedTrustManager, neither SunJSSE's internal AbstractTrustManagerWrapper nor Netty's own OpenSslX509TrustManagerWrapper will re-wrap it to add endpoint-identification. Consequently, even though Netty 4.2 sets endpointIdentificationAlgorithm="HTTPS" by default, a client built with SslContextBuilder.forClient().trustManager(somePlainX509TrustManager) performs no hostname verification at all.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
io.netty » netty-handler
< 4.1.135.Final>= 4.2.0.Final, < 4.2.15.Final
4.1.135.Final, 4.2.15.Final

Blast radius

1affected artifacts
348affected versions
56,775dependent artifacts (est.)
2,320,036dependent versions

70% of the dependent artifacts (39,841) still pull an affected version in their latest release.

DepthDependent versions
Direct
90,679
2 hops
422,875
3 hops
777,396
4 hops
514,903
5 hops
325,626
6 hops
188,557

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.