UBUNTU-CVE-2026-129482: Medium severity ubuntu/libokhttp-java vulnerability
OkHttp through 5.5.1 contains an improper certificate validation vulnerability in CertificatePinner that skips pin checks because Pin.matchesHostname does not normalize trailing-dot hostnames. Network attackers with a CA-trusted certificate not matching configured pins can intercept or modify TLS traffic when applications request the trailing-dot form of pinned hosts.
Affected Software
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications using OkHttp CertificatePinner are affected when they make requests to a pinned host using a hostname with a trailing dot. Requests using the normal non-trailing-dot hostname are not described as bypassing pin checks.
What does an attacker need to exploit the bypass?
An attacker must be positioned to intercept the application's network traffic and present a certificate trusted by the application's CA trust store. The certificate does not need to match the configured pins if the application requests the pinned host in trailing-dot form.
Is certificate pinning disabled globally by this vulnerability?
No. The described bypass is specific to trailing-dot hostname handling in Pin.matchesHostname and affects pin checks for requests made with that hostname form.
What can be done if an update cannot be applied immediately?
Avoid making requests to pinned hosts using trailing-dot hostnames. Ensure application URL and hostname construction uses the canonical hostname form without a trailing dot.