Square OkHttp can accept the wrong certificate
High severity
GitHub Reviewed
Published
May 24, 2022
to the GitHub Advisory Database
•
Updated Nov 13, 2025
Description
Published by the National Vulnerability Database
Feb 10, 2021
Published to the GitHub Advisory Database
May 24, 2022
Reviewed
Nov 13, 2025
Last updated
Nov 13, 2025
In verifyHostName of OkHostnameVerifier.java, there is a possible way to accept a certificate for the wrong domain due to improperly used crypto. This could lead to remote information disclosure with no additional execution privileges needed. User interaction is not needed for exploitation. Product: AndroidVersions: Android-8.1 Android-9 Android-10 Android-11 Android ID: A-171980069
References