Live threats

All CVEs / Squareup

CVE-2016-2402Squareup Okhttp

Medium 5.9 No auth needed

Priority
51
CVSS 3.1
5.9
EPSS
1.9%
probability of exploitation in 30 days · percentile 81
Auth required
No
Published
Jan 30, 2017
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-295
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Okhttp.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven com.squareup.okhttp3:okhttp < 2.7.4 2.7.4 —
Maven com.squareup.okhttp3:okhttp ≥ 3.0.0 < 3.1.2 3.1.2 —

Per OSV / GitHub Advisories (GHSA-4hc2-jh7r-wrc3). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
squareupokhttp≤ 2.7.3
squareupokhttp33.0.0
squareupokhttp33.0.0
squareupokhttp33.0.1
squareupokhttp33.1.0
squareupokhttp33.1.1

Official sources

References

Links published by the sources. Open them with care.