ADVISORIES

GitHub Advisory Database

GHSA-4hc2-jh7r-wrc3

Improper Certificate Validation in OkHttp

Moderate CVE-2016-2402

Details

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.

Affected packages

EcosystemPackageAffected versions
Mavencom.squareup.okhttp3:okhttp
All versions before 2.7.4 (fixed in 2.7.4)
Mavencom.squareup.okhttp3:okhttp
From 3.0.0 before 3.1.2 (fixed in 3.1.2)

References