The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-26196

CVE-2026-26196: Gogs Information Disclosure Vulnerability

CVE-2026-26196 is an information disclosure vulnerability in Gogs that exposes authentication tokens through URL parameters, risking leakage via logs and browser history. This article covers technical details, affected versions, and mitigation.

Published: March 6, 2026

CVE-2026-26196 Overview

CVE-2026-26196 is an Information Leakage vulnerability affecting Gogs, an open source self-hosted Git service. Prior to version 0.14.2, the Gogs API improperly accepts authentication tokens via URL query parameters such as token and access_token. This insecure practice can result in credential leakage through server logs, browser history, and HTTP referrer headers.

Critical Impact

Authentication tokens passed in URL parameters can be inadvertently exposed in server access logs, browser history, and Referer headers when navigating to external sites, potentially allowing attackers to hijack user sessions or gain unauthorized access to Git repositories.

Affected Products

  • Gogs versions prior to 0.14.2
  • Gogs API endpoints accepting token or access_token query parameters

Discovery Timeline

  • 2026-03-05 - CVE-2026-26196 published to NVD
  • 2026-03-05 - Last updated in NVD database

Technical Details for CVE-2026-26196

Vulnerability Analysis

This vulnerability falls under CWE-598 (Use of GET Request Method With Sensitive Query Strings), which describes the insecure practice of transmitting sensitive information via URL query parameters. When authentication tokens are passed in URLs rather than HTTP headers, they become vulnerable to exposure through multiple channels.

The core issue is that URLs, including their query parameters, are frequently logged and cached in locations that are not designed to securely store credentials. Server access logs typically record the full request URL, browser history preserves visited URLs, and the HTTP Referer header transmits the previous page's URL (including query parameters) to external sites when a user clicks outbound links.

Root Cause

The root cause lies in the Gogs API authentication handler (internal/context/auth.go) which was designed to accept access tokens via both URL query parameters (token and access_token) and the HTTP Authorization header. While header-based authentication is secure, the query parameter method creates an inherent risk of token leakage since URLs are not treated as confidential by browsers, proxies, and web servers.

Attack Vector

An attacker could exploit this vulnerability through several scenarios:

  1. Log File Access: If an attacker gains read access to server logs or reverse proxy logs, they can harvest authentication tokens from logged URLs
  2. Browser History Mining: Malware or shoulder surfing could expose tokens stored in browser history
  3. Referer Header Leakage: When users click external links from Gogs pages, the Referer header sent to the external site may contain the authentication token
  4. Shared Workstations: Tokens remain in browser history on shared or public computers
go
// Security patch in internal/context/auth.go
// Source: https://github.com/gogs/gogs/commit/295bfba72993c372e7b338438947d8e1a6bed8fd

 
 	// Check access token.
 	if isAPIPath(c.Req.URL.Path) {
-		tokenSHA := c.Query("token")
-		if len(tokenSHA) <= 0 {
-			tokenSHA = c.Query("access_token")
-		}
-		if tokenSHA == "" {
-			// Well, check with header again.
-			auHead := c.Req.Header.Get("Authorization")
-			if len(auHead) > 0 {
-				auths := strings.Fields(auHead)
-				if len(auths) == 2 && auths[0] == "token" {
-					tokenSHA = auths[1]
-				}
+		var tokenSHA string
+		auHead := c.Req.Header.Get("Authorization")
+		if auHead != "" {
+			auths := strings.Fields(auHead)
+			if len(auths) == 2 && auths[0] == "token" {
+				tokenSHA = auths[1]
 			}
 		}

Detection Methods for CVE-2026-26196

Indicators of Compromise

  • Review web server and reverse proxy access logs for API requests containing token= or access_token= query parameters
  • Check for unusual API activity patterns that may indicate token reuse by unauthorized parties
  • Monitor for authentication from unexpected IP addresses or geolocations using tokens previously exposed in logs

Detection Strategies

  • Implement log analysis rules to detect and alert on URLs containing authentication tokens in query parameters
  • Deploy network monitoring to identify Gogs API requests using URL-based token authentication
  • Audit browser history and proxy logs for exposed tokens if a compromise is suspected

Monitoring Recommendations

  • Enable detailed logging for the Gogs application and monitor for authentication anomalies
  • Implement Security Information and Event Management (SIEM) rules to flag requests with sensitive data in URLs
  • Consider deploying a Web Application Firewall (WAF) to detect and block requests with tokens in query strings

How to Mitigate CVE-2026-26196

Immediate Actions Required

  • Upgrade Gogs to version 0.14.2 or later immediately
  • Rotate all existing personal access tokens after upgrading to invalidate any potentially leaked credentials
  • Update any automation scripts or CI/CD pipelines to use header-based authentication instead of URL query parameters
  • Review server access logs and purge any entries containing exposed tokens

Patch Information

The vulnerability has been patched in Gogs version 0.14.2. The fix removes support for token-based authentication via URL query parameters, requiring all API clients to use the Authorization HTTP header with the format token {YOUR_ACCESS_TOKEN}. For detailed information about the patch, see the GitHub Security Advisory GHSA-x9p5-w45c-7ffc and the related commit.

Workarounds

  • If immediate upgrade is not possible, configure a reverse proxy to strip token and access_token query parameters from incoming requests
  • Implement log sanitization to redact tokens from URLs before they are written to log files
  • Educate users to avoid using URL-based token authentication and switch to header-based methods
bash
# Example: Update API calls to use header-based authentication
# Before (vulnerable):
curl "https://gogs.example.com/api/v1/users?token=YOUR_TOKEN"

# After (secure):
curl -H "Authorization: token YOUR_TOKEN" "https://gogs.example.com/api/v1/users"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechGogs

  • SeverityMEDIUM

  • CVSS Score6.9

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/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
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-598
  • Technical References
  • GitHub Pull Request #8177

  • GitHub Release v0.14.2
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-x9p5-w45c-7ffc
  • Related CVEs
  • CVE-2026-26276: Gogs Self-Hosted Git Service XSS Flaw

  • CVE-2026-25921: Gogs LFS Supply-Chain Attack Vulnerability

  • CVE-2026-26194: Gogs Git Service RCE Vulnerability

  • CVE-2026-26195: Gogs Self-Hosted Git Service XSS Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English