---
id: CVE-2026-105218
title: >-
  gopay before 1.5.119 disables TLS certificate verification in defaultClient()
  in pkg/xhttp/client.go, allowing man-in-the-middle attackers to impersonate
  payment provider APIs
summary: >-
  gopay before 1.5.119 disables TLS certificate verification in defaultClient()
  in pkg/xhttp/client.go, allowing man-in-the-middle attackers to impersonate
  payment provider APIs. Attackers can present any certificate to read merchant
  crede…
severity: high
cvss: 7.4
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N'
cwe:
  - CWE-295
vendor: go-pay
product: gopay
affected:
  - gopay < 1.5.119
published: '2026-10-04'
updated: '2026-10-04'
sourceUpdated: '2026-10-04T18:16:34.630'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-105218'
references:
  - url: 'https://github.com/go-pay/gopay'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/go-pay/gopay/blob/v1.5.118/pkg/xhttp/client.go#L15-L37'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/go-pay/gopay/commit/f6df04fd4f64a2ad2c303ba063b6502bfdd259fd
    label: disclosure@vulncheck.com
  - url: 'https://github.com/go-pay/gopay/issues/540'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/gopay-before-1.5.119-disabled-tls-certificate-verification-in-xhttp-client
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ingestedAt: '2026-10-04T18:02:47.902Z'
---

## Overview

gopay before 1.5.119 disables TLS certificate verification in defaultClient() in pkg/xhttp/client.go, allowing man-in-the-middle attackers to impersonate payment provider APIs. Attackers can present any certificate to read merchant credentials, signatures and transaction data, and modify payment, refund and order query responses.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
