CVE-2016-2402 · mitre
CVE-2016-2402
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 2017-01-30, last changed 2026-06-17. Weakness: CWE-295.
How to fix
Upgrade to a fixed version: com.squareup.okhttp3:okhttp 2.7.4, 3.1.2 (Maven) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Timeline
| 2017-01-30 | Published |
| 2022-05-13 | Package advisory GHSA-4hc2-jh7r-wrc3 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 1.96% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-4hc2-jh7r-wrc3 | com.squareup.okhttp3:okhttp (Maven) | 2.7.4 |
| GHSA-4hc2-jh7r-wrc3 | com.squareup.okhttp3:okhttp (Maven) | 3.1.2 |
Also known as: GHSA-4hc2-jh7r-wrc3
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2021-0341 | 2021-02-10 | 7.5 | same package: com.squareup.okhttp3:okhttp (Maven) |
| CVE-2026-88648 | 2026-10-08 | 3.7 | same weakness (CWE-295) from the same CNA (mitre) |
| CVE-2026-95210 | 2026-10-08 | 4.8 | same weakness (CWE-295) from the same CNA (mitre) |
| CVE-2026-90651 | 2026-09-13 | 8.1 | same weakness (CWE-295) from the same CNA (mitre) |
| CVE-2026-90647 | 2026-09-12 | 9.1 | same weakness (CWE-295) from the same CNA (mitre) |
| CVE-2026-87733 | 2026-09-09 | 6.2 | same weakness (CWE-295) from the same CNA (mitre) |
| CVE-2026-57826 | 2026-08-18 | 6.8 | same weakness (CWE-295) from the same CNA (mitre) |
| CVE-2026-38974 | 2026-07-15 | 5.3 | same weakness (CWE-295) from the same CNA (mitre) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-2402, or call /api/v1/vulnerabilities/CVE-2016-2402. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.