{"id":"CVE-2026-129482","kind":"vulnerability","aliases":["CVE-2026-129482"],"related":[],"title":"OkHttp: certificate pin check skipped for trailing-dot hostnames","description":"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.","summary":"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.","severity":"medium","cvss":6.3,"epss":null,"exploited":false,"exploited_at":null,"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"],"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\n- 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","status":"open","published_at":"2026-11-15T14:17:27+00:00","first_seen_at":"2026-11-15T14:36:16+00:00","triaged_at":"2026-11-15T14:37:44+00:00","updated_at":"2026-11-15T14:37:44+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-11-15T14:37:44Z","model":"claude-haiku-5-5","output":{"fix":"- OkHttp: unknown fixed version in the sources; the linked patch is on github.com and was not read","reach":"network","title":"OkHttp: certificate pin check skipped for trailing-dot hostnames","impact":"medium","summary":"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.","audience":"developers","category":"package","nicknames":[],"who_cares":["okhttp","java","kotlin","android"],"confidence":0.7,"fix_status":"unknown","needs_auth":"no","worst_case":"attacker intercepts and modifies TLS traffic to pinned hosts","analyst_note":"Confirm the first fixed OkHttp version from the github.com patch link, since the sources state only 'through 5.5.1'.","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\n- Search the code for `CertificatePinner` to see whether certificate pinning is used at all","plain_action":"","product_name":"okhttp","needs_analyst":true,"not_affected_if":["no-certificate-pinning","no-trailing-dot-hostnames"],"who_is_affected":"Applications that use OkHttp with CertificatePinner configured and that request pinned hosts using the trailing-dot form. Apps without certificate pinning, or that never use a trailing-dot hostname, are not exposed by this flaw. unknown whether any other configuration widens exposure.","user_interaction":"no","product_ecosystem":"maven","needs_special_setup":"yes","severity_if_unknown":"medium"},"cost_usd":0.000779,"input_tokens":4618,"output_tokens":635,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-129482':13A,16A '-2026':12A,15A '5.5.1':68C 'android':18B 'applic':109C 'attack':46B,91C 'ca':50B,95C 'ca-trust':49B,94C 'certif':2A,52B,72C,97C 'certificatepinn':25B,76C 'check':4A,28B,80C 'configur':100C 'contain':69C 'cve':11A,14A 'differ':55B 'dot':9A,37B,88C,114C 'form':115C 'hold':47B 'host':65B,118C 'hostnam':10A,31B,89C 'improp':71C 'intercept':58B,103C 'java':19B 'kotlin':20B 'match':99C 'modifi':60B,105C 'name':56B 'network':45B,90C 'normal':42B,85C 'okhttp':1A,17A,21B,23B,66C 'packag':22B 'pin':3A,27B,64B,79C,101C,117C 'pin.matcheshostname':39B,82C 'request':110C 'skip':5A,26B,78C 'tls':61B,106C 'traffic':62B,107C 'trail':8A,36B,87C,113C 'trailing-dot':7A,86C,112C 'trust':51B,96C 'valid':73C 'vulner':74C 'written':33B","nicknames":[],"mitigations":[],"who_affected":"Applications that use OkHttp with CertificatePinner configured and that request pinned hosts using the trailing-dot form. Apps without certificate pinning, or that never use a trailing-dot hostname, are not exposed by this flaw. unknown whether any other configuration widens exposure.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"unknown","audience":"developers","plain_action":null,"pkeys":["okhttp"],"ptokens":["okhttp"],"labels":["android","java","kotlin","maven","medium","okhttp","package"],"campaign_type":null,"search_a":"'-129482':13A,16A '-2026':12A,15A 'certif':2A 'check':4A 'cve':11A,14A 'dot':9A 'hostnam':10A 'okhttp':1A,17A 'pin':3A 'skip':5A 'trail':8A 'trailing-dot':7A","search_b":"'android':18B 'attack':46B 'ca':50B 'ca-trust':49B 'certif':52B 'certificatepinn':25B 'check':28B 'differ':55B 'dot':37B 'hold':47B 'host':65B 'hostnam':31B 'intercept':58B 'java':19B 'kotlin':20B 'modifi':60B 'name':56B 'network':45B 'normal':42B 'okhttp':21B,23B 'packag':22B 'pin':27B,64B 'pin.matcheshostname':39B 'skip':26B 'tls':61B 'traffic':62B 'trail':36B 'trust':51B 'written':33B","search_c":"'5.5.1':68C 'applic':109C 'attack':91C 'ca':95C 'ca-trust':94C 'certif':72C,97C 'certificatepinn':76C 'check':80C 'configur':100C 'contain':69C 'dot':88C,114C 'form':115C 'host':118C 'hostnam':89C 'improp':71C 'intercept':103C 'match':99C 'modifi':105C 'network':90C 'normal':85C 'okhttp':66C 'pin':79C,101C,117C 'pin.matcheshostname':82C 'request':110C 'skip':78C 'tls':106C 'traffic':107C 'trail':87C,113C 'trailing-dot':86C,112C 'trust':96C 'valid':73C 'vulner':74C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-15T14:17:27+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-129482","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129482","severity":null,"published_at":"2026-11-15T14:17:27+00:00","modified_at":"2026-11-15T14:17:27+00:00","first_seen_at":"2026-11-15T14:36:16+00:00","fetched_at":"2026-11-15T14:36:16+00:00","note":null}],"documents":[{"id":163820,"url":"https://github.com/lysine-dev/okhttp/commit/30aa589761a9b4f5fe84c00e21e5ab44b22bd7c1","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":163821,"url":"https://www.vulncheck.com/advisories/okhttp-through-5.5.1-certificate-pinning-bypass-via-trailing-dot-hostname","title":"Third-party advisory: www.vulncheck.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: www.vulncheck.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}