Skip to main content

OkHttp CVE-2026-129482

| EUVDEUVD-2026-126033 MEDIUM
Improper Certificate Validation (CWE-295)
2026-11-15 VulnCheck GHSA-p22c-cv6w-qc6x
6.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain MITM position on network path
  2. Delivery
    Present CA-trusted certificate not matching pins
  3. Exploit
    App requests trailing-dot form of pinned host
  4. Execution
    CertificatePinner skips pin check
  5. Impact
    Intercept 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

OkHttp 0 ≤5.5.1

Affected Packages

euvd okhttp no fix

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

Vendor (VulnCheck) PRIMARY 6.3 MEDIUM
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
vuln.today AI 4.8 MEDIUM

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).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 4.8 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.1%
Top 97% exploitable
Prevalence
High
extremely common HTTP client, near-default in Android and JVM apps
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy