Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. com.squareup.okhttp/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. Learn more about Dependency Scanning →

Affected versions

All versions before 2.7.4, all versions after 3.0 before 3.1.2

Fixed versions

  • 2.7.4
  • 3.1.2

Solution

Upgrade to versions 2.7.4, 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.okhttp/okhttp/CVE-2016-2402.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:54 +0000.