Sitemap
Udaya Murthy

Udaya Murthy

Lead Android Engineer | 12 Yrs Experience | Kotlin & Java | Jetpack Compose | MVVM & MVI Architect | EMV Payments | Mobile, Kiosk & POS Solutions

2 min readOct 26, 2026

--

Press enter or click to view image in full size

๐Ÿšจ ๐—”๐—ป๐—ฑ๐—ฟ๐—ผ๐—ถ๐—ฑ ๐——๐—ฒ๐˜ƒ๐—ฒ๐—น๐—ผ๐—ฝ๐—ฒ๐—ฟ๐˜€: ๐—–๐—ต๐—ฒ๐—ฐ๐—ธ ๐—ฌ๐—ผ๐˜‚๐—ฟ ๐—ข๐—ธ๐—›๐˜๐˜๐—ฝ ๐—ฉ๐—ฒ๐—ฟ๐˜€๐—ถ๐—ผ๐—ป

A security issue, CVE-2026โ€“111943, affects certificate validation in certain OkHttp versions.

Letโ€™s understand it with a simple real-world example ๐Ÿ‘‡

๐Ÿข ๐—œ๐—บ๐—ฎ๐—ด๐—ถ๐—ป๐—ฒ ๐—ฎ ๐—ฆ๐—ฒ๐—ฐ๐˜‚๐—ฟ๐—ฒ ๐—–๐—น๐˜‚๐—ฏ

Your club trusts IDs issued by a particular authority.

But suddenly, you discover that the authorityโ€™s signing keys have been compromised.

An attacker can now create a fake ID that looks completely legitimate.

Your existing security check says:

โœ… โ€œThe ID is from a trusted authority.โ€

But it doesnโ€™t know that this particular certificate is compromised.

Thatโ€™s the problem.

๐Ÿ”ด ๐—ช๐—ต๐—ฎ๐˜ ๐—–๐—ผ๐˜‚๐—น๐—ฑ ๐—›๐—ฎ๐—ฝ๐—ฝ๐—ฒ๐—ป?

An attacker could potentially use a compromised certificate to impersonate a server and perform a man-in-the-middle attack.

For an Android app communicating with APIs, that could put sensitive traffic at risk.

๐Ÿ›ก๏ธ ๐—ง๐—ต๐—ฒ ๐—ช๐—ผ๐—ฟ๐—ธ๐—ฎ๐—ฟ๐—ผ๐˜‚๐—ป๐—ฑ

Get Udaya Murthyโ€™s stories inย yourย inbox

Join Medium for free to get updates fromย thisย writer.

Before an official OkHttp update was available, developers could use a custom HostnameVerifier to reject certificates known to be compromised.

Conceptually:

val safeClient = client.newBuilder()
.hostnameVerifier(
ForbiddenCertificatesHostnameVerifier()
)
.build()

Think of it as adding a temporary โ€œDo NOT accept these specific IDsโ€ blacklist to your security guard.

โœ… ๐—ง๐—ต๐—ฒ ๐—•๐—ฒ๐˜€๐˜ ๐—ฆ๐—ผ๐—น๐˜‚๐˜๐—ถ๐—ผ๐—ป

Instead of maintaining custom security code, upgrade OkHttp to a version containing the official fix.

๐Ÿ“Œ OkHttp 4.12.1
๐Ÿ“Œ OkHttp 5.5.1

After upgrading, OkHttp can reject the affected certificates without requiring your application to maintain its own workaround.

๐Ÿ’ก ๐—ž๐—ฒ๐˜† ๐—ง๐—ฎ๐—ธ๐—ฒ๐—ฎ๐˜„๐—ฎ๐˜†

Security vulnerabilities arenโ€™t always solved by writing more application code.

Sometimes the safest fix is simply:

๐Ÿ‘‰ Check your dependency version.
๐Ÿ‘‰ Upgrade to the patched release.
๐Ÿ‘‰ Remove temporary workarounds when theyโ€™re no longer needed.

As Android developers, keeping dependencies updated isnโ€™t just about getting new features.

๐Ÿ” Itโ€™s part of application security.

Would you check your Android projects for vulnerable OkHttp versions today?

#AndroidDev #AndroidSecurity #OkHttp #Kotlin #CyberSecurity #AndroidDevelopment #AppSecurity

--

--

Udaya Murthy
Udaya Murthy

Written by Udaya Murthy

Lead Android Engineer | 12 Yrs Experience | Kotlin & Java | Jetpack Compose | MVVM & MVI Architect | EMV Payments | Mobile, Kiosk & POS Solutions