CVE-2018-20200: Squareup Okhttp

Medium severity, CVSS 5.9. EPSS: 2.5% chance of exploitation in the next 30 days.

CertificatePinner.java in OkHttp 3.x through 3.12.0 allows man-in-the-middle attackers to bypass certificate pinning by changing SSLContext and the boolean values while hooking the application. NOTE: This id is disputed because some parties don't consider this is a vulnerability. Their rationale can be found in https://github.com/square/okhttp/issues/4967

Affected products

  • Squareup Okhttp: from 3.0.0, up to and including 3.12.0

Published 2019-04-18. Last modified 2026-06-17.