Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain MITM position on network path
-
DeliveryPresent CA-trusted certificate not matching pins
-
ExploitApp requests trailing-dot form of pinned host
-
ExecutionCertificatePinner skips pin check
-
ImpactIntercept or modify TLS traffic
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
|
| Exploitation Conditions | Exploitation requires all of: (1) the application configures certificate pinning via OkHttp's CertificatePinner; (2) the connection targets the trailing-dot (absolute DNS) form of a pinned hostname, e.g. 'example.com.', because ConnectPlan preserves a trailing dot from address.url.host while developer-authored pin patterns never carry one; and (3) a network man-in-the-middle attacker who possesses a CA-trusted certificate for that host that does NOT match the configured pins. Limiting factors that reduce realistic risk: applications that do not use CertificatePinner are unaffected; connections using the normal (non-dotted) spelling still enforce pins correctly; and the attacker must independently obtain a CA-trusted (e.g. mis-issued) certificate for the target, since pinning bypass alone degrades protection only to standard CA validation. No user interaction is required and the attacker needs no credentials on the app. |
| Impact | Signals point to a real but conditional, medium-severity issue rather than a top priority. The supplied CVSS:4.0 base score is 6.3 (Medium) with AV:N/AC:L/AT:P and partial confidentiality and integrity impact (VC:L/VI:L), reflecting a man-in-the-middle certificate-pinning bypass rather than full code execution or data theft. The AT:P (Attack Requirements: Present) metric and the description together confirm exploitation is gated on two preconditions: the application must use CertificatePinner AND must request the trailing-dot absolute form of a pinned hostname, and the attacker must already possess a CA-trusted certificate for that host that does not match the configured pins. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a moderate-urgency, patch-on-normal-cadence item. No CISA KEV listing and no EPSS score are present in the input, and no exploit/PoC reference is provided - only the vendor issue, fix PR, commit, source link, and a VulnCheck advisory. There is therefore no evidence of active exploitation or public weaponization; the realistic risk is targeted network interception of specific pinned hosts, not widespread automated attack. The main nuance to verify: because the attacker still needs a CA-trusted certificate, the flaw effectively downgrades pinning protection to ordinary CA trust for the trailing-dot spelling, so impact depends on whether an adversary can obtain a mis-issued or otherwise CA-trusted cert for the target host. |
| Exploit ScenarioDerived | A network attacker in a man-in-the-middle position (e.g., rogue Wi-Fi or a compromised upstream) who holds a CA-trusted certificate for a pinned host that does not match the app's configured pins waits for the application to connect to the trailing-dot absolute form of that host (e.g., 'example.com.'). Because Pin.matchesHostname does not normalize the trailing dot, CertificatePinner silently skips the pin check and accepts the attacker's CA-trusted certificate, allowing the TLS session to be intercepted or modified. No public exploit code was identified; the fix PR includes a unit test demonstrating the bypass but that is a regression test, not a working attack tool. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 15, 2026
Certificate pinning configured through OkHttp's CertificatePinner is silently skipped when an application connects to the trailing-dot (absolute DNS) spelling of a pinned hostname, such as 'example.com.', affecting OkHttp through 5.5.1. The bypass is conditional rather than a general defeat of pinning: the app must actually use CertificatePinner, the request must use the dotted hostname form, and a network-positioned attacker must already hold a CA-trusted certificate for that host that does not match the configured pins - at which point interception succeeds purely on standard CA validation. Scored 6.3 by the reporter and re-assessed as CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N, with no confirmed active exploitation (not in CISA KEV) and no public exploit identified at time of analysis; vendor patch information is available and an upstream fix exists as a pull request and commit, so this is a this-month remediation item rather than an emergency.
RemediationAI
Apply the vendor fix: upstream patch is available as pull request https://github.com/lysine-dev/okhttp/pull/9734, which adds trailing-dot normalization to Pin.matchesHostname and a regression test, with the corresponding commit https://github.com/lysine-dev/okhttp/commit/30aa589761a9b4f5fe84c00e21e5ab44b22bd7c1; patch availability is reported by the vendor, but a released patched OkHttp version number is not confirmed in the available data, so track the next okhttp release beyond 5.5.1 before relying on a published artifact. Because the bypass only triggers on the dotted hostname form, a targeted compensating control is to canonicalize outbound hostnames before the OkHttp call - strip a single trailing dot from address.url.host so the connection is made as 'example.com' and the existing pin logic runs - accepting that this changes the hostname spelling the app presents and must be applied consistently in every client path; alternatively, reject or rewrite trailing-dot hosts at the application layer, at the cost of breaking legitimate absolute-DNS usage. Note that pinning bypass alone only degrades protection to standard CA validation, so an attacker still needs a CA-trusted certificate that does not match the pins; but neither of these workarounds removes the need to update to a fixed OkHttp build, per the referenced advisory.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OkHttp's CertificatePinner implements public-key pinning on top of normal TLS hostname verification: CertificatePinner.Pin.matchesHostname compares a developer-authored pin pattern (an exact host or a wildcard such as '*.example.com') against the hostname used for the connection. That hostname is derived by ConnectPlan from address.url.host, which explicitly preserves a trailing dot on absolute DNS names, while pin patterns written by developers never carry one. Because Pin.matchesHostname performed no normalization, a pin configured for 'example.com' did not match 'example.com.' and no pin was found, so the pin check was skipped. This is CWE-295 (Improper Certificate Validation): the flaw is not in X.509 chain validation - OkHostnameVerifier already treats the dotted and undotted spellings as equivalent, and certificate verification itself still succeeds - but in the pinning layer, which degrades silently to plain CA trust for the dotted spelling. The upstream fix adds a trailing-dot strip at the top of matchesHostname and a test (testMatchesHostnameWithTrailingDot) covering exact pins, wildcard pins and CertificatePinner.findMatchingPins on a dotted host. The CPE record (cpe:2.3:a:square:okhttp:*:*:*:*:*:*:*:*) is unversioned, so version scoping rests on the advisory statement of 'through 5.5.1'; the trigger surface is limited to code paths that pass a trailing-dot host to OkHttp, and the flaw is not described as reachable in any other way in the available sources.
Know when Okhttp gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network MITM (AV:N) with no auth (PR:N); AC:H because it depends on the app requesting the trailing-dot form and the attacker holding a non-matching CA-trusted cert; pinning bypass yields partial read/modify of TLS traffic (C:L/I:L).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
A flaw was found in Red Hat's AMQ-Streams, which ships a version of the OKHttp component with an information disclosure
OkHttp before 2.7.4 and 3.x before 3.1.2 allows man-in-the-middle attackers to bypass certificate pinning by sending a c
EUVD-2026-126033
GHSA-p22c-cv6w-qc6x
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB