OkHttp through 5.5.1 Certificate Pinning Bypass via Trailing-Dot Hostname
- State
- Published
- Severity
- 6.3 Medium
- Published
- Nov 15, 2026
- Updated
- Nov 16, 2026
- Reserved
- Nov 15, 2026
Description
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.
| Product | Versions |
|---|---|
| OkHttp Square | 5.5.1 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.3 Medium | VulnCheck | |
| 3.1 | 4.8 Medium | VulnCheck |
Weaknesses
- CWE-295 Improper Certificate Validation
References
- https://github.com/lysine-dev/okhttp/issues/9724Issue Tracker
- https://github.com/lysine-dev/okhttp/pull/9734PatchIssue Tracker
- https://github.com/lysine-dev/okhttp/commit/30aa589761a9b4f5fe84c00e21e5ab44b22bd7c1Patch
- https://github.com/lysine-dev/okhttp/blob/parent-5.5.1/okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt#L293-L314Technical Details
- VulnCheck Advisory: OkHttp through 5.5.1 Certificate Pinning Bypass via Trailing-Dot HostnameThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.