Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. com.squareup.okhttp3/okhttp
  4. ›
  5. CVE-2016-2402

CVE-2016-2402: Improper Certificate Validation

January 30, 2017 (updated January 1, 2021)

OkHttp 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.

References

  • nvd.nist.gov/vuln/detail/CVE-2016-2402

Code Behaviors & Features

Detect and mitigate CVE-2016-2402 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 3.1.2

Fixed versions

  • 3.1.2

Solution

Upgrade to version 3.1.2 or above

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-295: Improper Certificate Validation

Source file

maven/com.squareup.okhttp3/okhttp/CVE-2016-2402.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:25 +0000.