Repository navigation
[GHSA-8f6w-7m2h-mfwg] gopay before 1.5.119 disables TLS certificate... #10179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ranjiGT
wants to merge
1
commit into
ranjiGT/advisory-improvement-10179
Choose a base branch
from
ranjiGT-GHSA-8f6w-7m2h-mfwg
base: ranjiGT/advisory-improvement-10179
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,40 @@ | ||
| { | ||
| "schema_version": "1.4.0", | ||
| "id": "GHSA-8f6w-7m2h-mfwg", | ||
| "modified": "2026-10-04T18:30:21Z", | ||
| "modified": "2026-10-04T18:30:27Z", | ||
| "published": "2026-10-04T18:30:21Z", | ||
| "aliases": [ | ||
| "CVE-2026-105218" | ||
| ], | ||
| "details": "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.", | ||
| "summary": "GoPay xhttp client disables TLS certificate verification by default", | ||
| "details": "GoPay versions 1.5.27 through 1.5.118 disable TLS certificate verification by default in the xhttp client.\n\nThe default client configures `http.Transport` with `tls.Config{InsecureSkipVerify: true}`, causing TLS connections made through the default xhttp client to skip server certificate verification.\n\nAs a result, applications relying on the affected default client may fail to authenticate the remote TLS endpoint, potentially allowing a network-positioned attacker to perform a man-in-the-middle attack.\n\nThe insecure default was introduced before the v1.5.27 release. Version 1.5.119 removes the default `InsecureSkipVerify: true` configuration and enables normal TLS certificate verification. Applications that intentionally require a custom TLS configuration can configure it explicitly.", | ||
| "severity": [ | ||
| { | ||
| "type": "CVSS_V3", | ||
| "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N" | ||
| }, | ||
| { | ||
| "type": "CVSS_V4", | ||
| "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/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" | ||
| "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N" | ||
| } | ||
| ], | ||
| "affected": [ | ||
| { | ||
| "package": { | ||
| "ecosystem": "Go", | ||
| "name": "github.com/go-pay/gopay" | ||
| }, | ||
| "ranges": [ | ||
| { | ||
| "type": "ECOSYSTEM", | ||
| "events": [ | ||
| { | ||
| "introduced": "1.5.27" | ||
| }, | ||
| { | ||
| "fixed": "1.5.119" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
|
Comment on lines
+18
to
36
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Confirmed against the upstream release tags.
Starting with
The upstream -module github.com/iGoogle-ink/gopay
+module github.com/go-pay/gopay |
||
| ], | ||
| "affected": [], | ||
| "references": [ | ||
| { | ||
| "type": "ADVISORY", | ||
|
|
@@ -29,10 +46,14 @@ | |
| }, | ||
| { | ||
| "type": "WEB", | ||
| "url": "https://github.com/go-pay/gopay/commit/f6df04fd4f64a2ad2c303ba063b6502bfdd259fd" | ||
| "url": "https://github.com/go-pay/gopay/commit/988e18a0f7e75ce002e96614e8d8a1a354f593f8" | ||
| }, | ||
| { | ||
| "type": "WEB", | ||
| "url": "https://github.com/go-pay/gopay/commit/f6df04fd4f64a2ad2c303ba063b6502bfdd259fd" | ||
| }, | ||
| { | ||
| "type": "PACKAGE", | ||
| "url": "https://github.com/go-pay/gopay" | ||
| }, | ||
| { | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment 2 — Retain CVSS v3.1