CVE-2016-2402Squareup Okhttp
Medium 5.9 No auth needed
Follow: this CVE · Squareup · Squareup Okhttp We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Okhttp.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| squareup | okhttp | ≤ 2.7.3 |
| squareup | okhttp3 | 3.0.0 |
| squareup | okhttp3 | 3.0.0 |
| squareup | okhttp3 | 3.0.1 |
| squareup | okhttp3 | 3.1.0 |
| squareup | okhttp3 | 3.1.1 |
Official sources
References
Links published by the sources. Open them with care.
- www.openwall.com Mailing List Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- koz.io Technical Description Third Party Advisory
- lists.apache.org
- publicobject.com Vendor Advisory