---
id: "CVE-2026-129482"
page: "https://infrastack.ai/live/CVE-2026-129482"
kind: "vulnerability"
aliases: ["CVE-2026-129482"]
title: "OkHttp: certificate pin check skipped for trailing-dot hostnames"
severity: "medium"
cvss: 6.3
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "okhttp", "fixed": [], "affected": "", "ecosystem": "maven"}]
ecosystems: ["maven"]
tags: ["android", "java", "kotlin", "okhttp", "package"]
not_affected_if: ["no-certificate-pinning", "no-trailing-dot-hostnames"]
published_at: "2026-11-15T14:17:27+00:00"
first_seen_at: "2026-11-15T14:36:16+00:00"
updated_at: "2026-11-15T14:37:44+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129482", "first_seen_at": "2026-11-15T14:36:16+00:00"}]
exploit_sources: []
---

# OkHttp: certificate pin check skipped for trailing-dot hostnames

Link for people: https://infrastack.ai/live/CVE-2026-129482 (this .md is for agents)

OkHttp's CertificatePinner skips pin checks when a hostname is written with a trailing dot, because Pin.matchesHostname does not normalize it. A network attacker holding a CA-trusted certificate for a different name can intercept or modify TLS traffic to pinned hosts.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- maven:okhttp affected range not listed fixed no fixed version listed

## How to check

- Check the OkHttp version in the project's dependency file (for example `okhttp` in build.gradle or pom.xml) and compare it with the range through 5.5.1
- Search the code for `CertificatePinner` to see whether certificate pinning is used at all

## Fix

- OkHttp: unknown fixed version in the sources; the linked patch is on github.com and was not read

## Timeline

- 2026-11-15T14:36:16+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-129482

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/okhttp-through-5.5.1-certificate-pinning-bypass-via-trailing-dot-hostname
- [fix] Patch: github.com https://github.com/lysine-dev/okhttp/commit/30aa589761a9b4f5fe84c00e21e5ab44b22bd7c1

## From the sources

OkHttp through 5.5.1 contains an improper certificate validation vulnerability in CertificatePinner that skips pin checks because Pin.matchesHostname does not normalize trailing-dot hostnames. Network attackers with a CA-trusted certificate not matching configured pins can intercept or modify TLS traffic when applications request the trailing-dot form of pinned hosts.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
