Home / Squareup / Okhttp / CVE-2018-20200
CVE-2018-20200: is it exploited, and which versions of Squareup Okhttp are affected and fixed?
CVE-2018-20200 is an improper certificate validation vulnerability in Squareup Okhttp. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 09:08 UTC). Affected: okhttp from 3.0.0 through 3.12.0 (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (5.9, CVSS 3.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 09:08 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:23 UTC.
Disputed: a party (often the vendor) disputes that this is a vulnerability. The record is kept as published.
What is CVE-2018-20200?
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
From the CVE record by mitre, last updated August 5, 2024, 11:58 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| squareup | okhttp | from 3.0.0 through 3.12.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 01:52 UTC.
How severe is CVE-2018-20200?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.9 | CVSS 3.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N | NVD |
| Medium 4.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:P/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2018-20200 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 2.48% probability of exploitation activity in the next 30 days, percentile 85.0 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-295 Improper Certificate Validation
Where are the vendor advisories and references?
- https://square.github.io/okhttp/3.x/okhttp/ x_refsource_MISC
- https://github.com/square/okhttp/releases x_refsource_MISC
- https://github.com/square/okhttp/commits/master x_refsource_MISC
- https://cxsecurity.com/issue/WLB-2018120252 x_refsource_MISC
- https://github.com/square/okhttp/issues/4967 x_refsource_MISC
- [drill-dev] 20191017 Dependencies used by Drill contain known vulnerabilities mailing-list, x_refsource_MLIST
- [drill-dev] 20191021 [jira] [Created] (DRILL-7416) Updates required to dependencies to resolve potential security vulnerabilities mailing-list, x_refsource_MLIST
- [drill-issues] 20191021 [jira] [Created] (DRILL-7416) Updates required to dependencies to resolve potential security vulnerabilities mailing-list, x_refsource_MLIST
- [flink-user] 20201022 Dependency vulnerabilities with flink 1.11.1 version mailing-list, x_refsource_MLIST
- [flink-issues] 20201023 [jira] [Assigned] (FLINK-19784) Upgrade okhttp to 3.13.0 or newer due to CVE-2018-20200 mailing-list, x_refsource_MLIST
- [flink-issues] 20201023 [jira] [Commented] (FLINK-19784) Upgrade okhttp to 3.13.0 or newer due to CVE-2018-20200 mailing-list, x_refsource_MLIST
- [flink-issues] 20201023 [jira] [Updated] (FLINK-19784) Upgrade okhttp to 3.13.0 or newer due to CVE-2018-20200 mailing-list, x_refsource_MLIST
- [flink-issues] 20201026 [jira] [Closed] (FLINK-19784) Upgrade okhttp to 3.13.0 or newer due to CVE-2018-20200 mailing-list, x_refsource_MLIST
- [flink-issues] 20201026 [jira] [Commented] (FLINK-19784) Upgrade okhttp to 3.13.0 or newer due to CVE-2018-20200 mailing-list, x_refsource_MLIST
- [pulsar-commits] 20201215 [GitHub] [pulsar] yanshuchong opened a new issue #8967: CVSS issue list mailing-list, x_refsource_MLIST
When was it published, and where is the official record?
- Reserved
- December 18, 2018
- Published
- April 18, 2019, 18:31 UTC
- CVE record updated
- August 5, 2024, 11:58 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 01:52 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:23 UTC; KEV December 3, 2026, 09:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Okhttp?
- Jan 30, 2017CVE-2016-2402 Squareup Okhttp: improper certificate validation
Questions about CVE-2018-20200
Is CVE-2018-20200 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 09:08 UTC. FIRST's EPSS gives it a 2.48% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Squareup Okhttp are affected by CVE-2018-20200?
okhttp from 3.0.0 through 3.12.0, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2018-20200?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2018-20200?
Medium (5.9, CVSS 3.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2018-20200?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.