CVE-2016-2402: squareup okhttp Improper Certificate Validation
Vulnerability summary
CVE-2016-2402 is a medium (CVSS 5.9) Improper Certificate Validation vulnerability in squareup okhttp. EPSS estimates a 1.94% chance of exploitation in the next 30 days, higher than 80.1% of scored vulnerabilities.
Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 30-01-2017PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
Description
OkHttp before 2.7.4 and 3.x before 3.1.2 allows man-in-the-middle attackers to bypass certificate pinning by sending a certificate chain with a certificate from a non-pinned trusted CA and the pinned certificate.
CVSS metrics
3 scores · 2 sources · 2 versions- OSV · MavenEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS trend
Probability
1.94%
Chance of exploitation in the next 30 days
Percentile
80%
Versus all other CVEs
30-day change
Decrease -0.31 pp
From 2.25% on 05-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Com.squareup.okhttp31 product
- okhttp< 2.7.4 | ≥ 3.0.0, < 3.1.2
2 vendors · 3 products
References
10 links- publicobject.com/2016/02/11/okhttp-certificate-pinning-vulnerability/X Refsource CONFIRMVendor Advisory
- www.openwall.com/lists/oss-security/2016/02/10/8Mailing ListX Refsource MLISTThird Party AdvisoryWEB
- www.openwall.com/lists/oss-security/2016/02/18/7Mailing ListX Refsource MLISTThird Party AdvisoryWEB
- github.com/square/okhttpPACKAGE