Security mailing lists by PureSourceCode

CVE-2016-2402

MEDIUM 5.9CVSS 3.1

Improper Certificate Validation in OkHttp

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.

Published
30 Jan 2017
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-295
Also known as
GHSA-4hc2-jh7r-wrc3
Sources
NVDJSONOSV GHSA-4hc2-jh7r-wrc3JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD squareup okhttp
cpe:2.3:a:squareup:okhttp:*:*:*:*:*:*:*:*
<= 2.7.3
NVD squareup okhttp3
cpe:2.3:a:squareup:okhttp3:3.0.0:*:*:*:*:*:*:*
= 3.0.0
NVD squareup okhttp3
cpe:2.3:a:squareup:okhttp3:3.0.0:rc1:*:*:*:*:*:*
= 3.0.0
NVD squareup okhttp3
cpe:2.3:a:squareup:okhttp3:3.0.1:*:*:*:*:*:*:*
= 3.0.1
NVD squareup okhttp3
cpe:2.3:a:squareup:okhttp3:3.1.0:*:*:*:*:*:*:*
= 3.1.0
NVD squareup okhttp3
cpe:2.3:a:squareup:okhttp3:3.1.1:*:*:*:*:*:*:*
= 3.1.1
OSV Maven com.squareup.okhttp3:okhttp < 2.7.4 2.7.4
OSV Maven com.squareup.okhttp3:okhttp >= 3.0.0, < 3.1.2 3.1.2

References

History

  • 25 Nov 2026 20:19 UTC · NVD: first stored (published 30 Jan 2017)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 May 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.