CVE-2016-2402

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.

Severity
MEDIUM
CVSS v3
5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N · source nvd
Exploit chance (EPSS)
1.940%
chance of exploitation in the next 30 days
higher than 80.5% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2017-01-30Published by the CNA22:00 UTC
  2. 2022-05-13GitHub advisory published (GHSA-4hc2-jh7r-wrc3)1929 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-4hc2-jh7r-wrc3, affected packages:

EcosystemPackageVulnerable rangePatched
Mavencom.squareup.okhttp3:okhttp< 2.7.42.7.4
Mavencom.squareup.okhttp3:okhttp>= 3.0.0, < 3.1.23.1.2

Affected products

VendorProduct
squareupokhttp
squareupokhttp3

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources