Read the docs
TI-2016-02158 Aliases CVE-2016-2402GHSA-4hc2-jh7r-wrc3

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

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
—com.squareup.okhttp3:okhttp (Maven)before 2.7.42.7.4Patch availableGHSA-4hc2-jh7r-wrc3
—com.squareup.okhttp3:okhttp (Maven)3.0.0 to before 3.1.23.1.2Patch availableGHSA-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

CPEVersionsRoleVendor
cpe:2.3:a:squareup:okhttp:*:*:*:*:*:*:*:*up to 2.7.3VulnerableSquareup
cpe:2.3:a:squareup:okhttp3:3.0.0:*:*:*:*:*:*:*3.0.0VulnerableSquareup
cpe:2.3:a:squareup:okhttp3:3.0.0:rc1:*:*:*:*:*:*3.0.0 rc1VulnerableSquareup
cpe:2.3:a:squareup:okhttp3:3.0.1:*:*:*:*:*:*:*3.0.1VulnerableSquareup
cpe:2.3:a:squareup:okhttp3:3.1.0:*:*:*:*:*:*:*3.1.0VulnerableSquareup
cpe:2.3:a:squareup:okhttp3:3.1.1:*:*:*:*:*:*:*3.1.1VulnerableSquareup
  • 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

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2016-2402
  2. 2026-10-03 Alias added: GHSA-4hc2-jh7r-wrc3

References

  • 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