OkHttp before 2.7.4 and 3.x before 3.1.2 allows man-in-the-middle attackers to bypass…
Priority LOW 30CWE-295Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-295.
Summary
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.
Why it matters now
EPSS 0.0194 80th percentileScored 2026-11-07
Fix Fixed com.squareup.okhttp3:okhttp (Maven): 2.7.4, 3.1.2
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | com.squareup.okhttp3:okhttp (Maven) | before 2.7.4 | 2.7.4 | Patch available | GHSA-4hc2-jh7r-wrc3 |
| — | com.squareup.okhttp3:okhttp (Maven) | 3.0.0 to before 3.1.2 | 3.1.2 | Patch available | GHSA-4hc2-jh7r-wrc3 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- com.squareup.okhttp3:okhttp (Maven) Vendor— Affected before 2.7.4 Fixed in 2.7.4 Patch available GHSA-4hc2-jh7r-wrc3
- com.squareup.okhttp3:okhttp (Maven) Vendor— Affected 3.0.0 to before 3.1.2 Fixed in 3.1.2 Patch available GHSA-4hc2-jh7r-wrc3
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:squareup:okhttp:*:*:*:*:*:*:*:* | up to 2.7.3 | Vulnerable | Squareup |
| cpe:2.3:a:squareup:okhttp3:3.0.0:*:*:*:*:*:*:* | 3.0.0 | Vulnerable | Squareup |
| cpe:2.3:a:squareup:okhttp3:3.0.0:rc1:*:*:*:*:*:* | 3.0.0 rc1 | Vulnerable | Squareup |
| cpe:2.3:a:squareup:okhttp3:3.0.1:*:*:*:*:*:*:* | 3.0.1 | Vulnerable | Squareup |
| cpe:2.3:a:squareup:okhttp3:3.1.0:*:*:*:*:*:*:* | 3.1.0 | Vulnerable | Squareup |
| cpe:2.3:a:squareup:okhttp3:3.1.1:*:*:*:*:*:*:* | 3.1.1 | Vulnerable | Squareup |
- cpe:2.3:a:squareup:okhttp:*:*:*:*:*:*:*:* Versions up to 2.7.3 Vulnerable ·Squareup
- cpe:2.3:a:squareup:okhttp3:3.0.0:*:*:*:*:*:*:* Versions 3.0.0 Vulnerable ·Squareup
- cpe:2.3:a:squareup:okhttp3:3.0.0:rc1:*:*:*:*:*:* Versions 3.0.0 rc1 Vulnerable ·Squareup
- cpe:2.3:a:squareup:okhttp3:3.0.1:*:*:*:*:*:*:* Versions 3.0.1 Vulnerable ·Squareup
- cpe:2.3:a:squareup:okhttp3:3.1.0:*:*:*:*:*:*:* Versions 3.1.0 Vulnerable ·Squareup
- cpe:2.3:a:squareup:okhttp3:3.1.1:*:*:*:*:*:*:* Versions 3.1.1 Vulnerable ·Squareup
Remediation
- Fix · GHSA-4hc2-jh7r-wrc3 com.squareup.okhttp3:okhttp (Maven) Fixed in 2.7.4 Advisory →
- Fix · GHSA-4hc2-jh7r-wrc3 com.squareup.okhttp3:okhttp (Maven) Fixed in 3.1.2 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2016-2402
- 2026-10-03 Alias added: GHSA-4hc2-jh7r-wrc3
References
Advisory 5
- https://koz.io/pinning-cve-2016-2402/
- https://publicobject.com/2016/02/11/okhttp-certificate-pinning-vulnerability/
- [oss-security] 20160210 CVE request - OkHttp Certificate Pining Bypass
- [oss-security] 20160217 Re: CVE request - OkHttp Certificate Pining Bypass
- https://nvd.nist.gov/vuln/detail/CVE-2016-2402
Other 5
- [pulsar-commits] 20201215 [GitHub] [pulsar] yanshuchong opened a new issue #8967: CVSS issue list
- https://github.com/square/okhttp
- https://koz.io/pinning-cve-2016-2402
- https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@%3Ccommits.pulsar.apache.org%3E
- https://publicobject.com/2016/02/11/okhttp-certificate-pinning-vulnerability
More Squareup Okhttp vulnerabilities
- TI-2018-14320 CertificatePinner.java in OkHttp 3.x through 3.12.0 allows man-in-the-middle attackers to… CVSS 3.0MEDIUM 5.9
- TI-2023-00789 Red hat a-mq streams: component version with information disclosure flaw CVSS 3.1MEDIUM 5.5
Sources
- CVE-2016-2402 · CVE Program
- CVE-2016-2402 · NVD
- FIRST EPSS
- GHSA-4hc2-jh7r-wrc3 · GitHub Advisory Database · CC BY 4.0
- CVE-2016-2402 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences