Improper SSL/TLS Certificate Validation in gist RubyGem
The gist RubyGem versions prior to 6.1.0 contain an improper certificate validation vulnerability that allows on-path attackers to intercept and modify GitHub API traffic by exploiting the hardcoded use of OpenSSL::SSL::VERIFY_NONE.
CVE search metadata
CVE search record: CVE-2026-105221. Severity: high. CVSS: 7.4. KEV: no. Product: gist (< 6.1.0). Brief: Improper SSL/TLS Certificate Validation in gist RubyGem. Brief link: https://feed.craftedsignal.io/briefs/2026-10-gist-ruby-gem-vulnerability/
The gist RubyGem before version 6.1.0 contains a critical security vulnerability involving improper certificate validation. The underlying issue originates in the 'lib/gist.rb' file, where the 'http_connection' method initializes SSL/TLS connections using 'OpenSSL::SSL::VERIFY_NONE'. This configuration explicitly instructs the library to skip peer certificate verification during the HTTPS handshake.
Because of this, any application or CLI tool utilizing this version of the gist gem is susceptible to man-in-the-middle (MITM) attacks if the traffic is routed through a network segment controlled or accessible by an on-path adversary. Attackers can intercept requests to the GitHub API, present fraudulent certificates, and gain full visibility into or modify the traffic. This exposure allows for the exfiltration of sensitive information, including OAuth tokens, personal access tokens, and other login credentials, which can then be used to gain unauthorized access to and modify a victim's hosted gists.
Impact
Successful exploitation allows for the interception and manipulation of communications between a user and the GitHub API. An attacker can gain control over sensitive authentication credentials, such as OAuth tokens, leading to full account compromise regarding the management of gists. This threat is particularly relevant to developers and automated CI/CD pipelines that rely on the gist gem for internal or public code sharing.
Recommendation
Prioritized actions for development and security teams:
- Upgrade the 'gist' RubyGem to version 6.1.0 or later immediately to resolve the hardcoded 'VERIFY_NONE' configuration (CVE-2026-105221).
- Review environments where the 'gist' gem is deployed, such as CI/CD runners or developer workstations, to identify and update vulnerable instances.
- Audit logs for unexpected outbound network connections originating from systems where the 'gist' gem is installed, specifically targeting traffic directed toward non-GitHub IP ranges or unauthorized endpoints if possible.
- Consider implementing man-in-the-middle proxy testing in local development environments to confirm that SSL/TLS certificate validation is strictly enforced across all outbound API integrations.
Immediate actions
Upgrade gist RubyGem to 6.1.0 or later
Mitigations
Upgrade gist gem to version 6.1.0
CVE-2026-105221