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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-41506

CVE-2026-41506: Go-git Information Disclosure Flaw

CVE-2026-41506 is an information disclosure vulnerability in Go-git that may leak HTTP authentication credentials during redirect operations. This article covers technical details, affected versions, and mitigation.

Published: May 18, 2026

CVE-2026-41506 Overview

CVE-2026-41506 is a credential exposure vulnerability in go-git, an extensible Git implementation library written in pure Go. The library leaks HTTP authentication credentials when following redirects during smart-HTTP clone and fetch operations. An attacker controlling or influencing a redirect target can capture credentials that should only be sent to the original host. The flaw is categorized as Insecure Credential Storage and Transmission [CWE-522] and affects versions prior to 5.18.0 and 6.0.0-alpha.2.

Critical Impact

HTTP authentication credentials, including tokens and passwords, can be transmitted to attacker-controlled hosts during redirected smart-HTTP Git operations, enabling repository compromise and lateral movement.

Affected Products

  • go-git versions prior to 5.18.0
  • go-git version 6.0.0-alpha1
  • Applications and tools embedding vulnerable go-git releases for clone or fetch operations

Discovery Timeline

  • 2026-05-08 - CVE-2026-41506 published to NVD
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2026-41506

Vulnerability Analysis

The go-git library implements Git's smart-HTTP transport for remote operations such as clone and fetch. When the HTTP client receives a redirect response, it follows the new Location without stripping authentication material attached to the original request. As a result, credentials supplied for the initial host are forwarded to the redirect destination.

This behavior breaks the standard same-origin protection expected from HTTP clients handling sensitive headers. An adversary who controls a redirect endpoint, compromises an upstream Git proxy, or performs a network-position attack can harvest Authorization headers and basic-auth credentials. The leak occurs silently within the transport layer, so calling applications receive no indication that secrets left the intended trust boundary.

Root Cause

The root cause is improper handling of credential propagation in the HTTP redirect chain within go-git's smart-HTTP transport. The client retains and replays authentication headers across hosts instead of clearing them when the redirect target differs from the original authority. This violates the credential isolation guidance documented in CWE-522: Insufficiently Protected Credentials.

Attack Vector

Exploitation requires network access and user interaction in the form of a Git clone or fetch against an attacker-influenced URL. The attacker stages an HTTP endpoint that returns a redirect to a host they control. When a victim runs a go-git powered operation with embedded credentials or tokens against the staged URL, the client follows the redirect and reuses the original Authorization header against the attacker host. Captured credentials can then be replayed to access private repositories or downstream services. Refer to the GitHub Security Advisory GHSA-3xc5-wrhm-f963 for additional technical context.

Detection Methods for CVE-2026-41506

Indicators of Compromise

  • Outbound HTTPS requests from build agents or developer hosts to unexpected Git hosting domains following a redirect from a known forge.
  • HTTP 301, 302, 307, or 308 responses in proxy logs originating from Git smart-HTTP endpoints with Authorization headers preserved across hosts.
  • Authentication events on Git hosting platforms from IP addresses that do not match developer or CI infrastructure ranges.

Detection Strategies

  • Inventory all binaries and services that statically link go-git and compare embedded versions against 5.18.0 and 6.0.0-alpha.2.
  • Inspect egress proxy traffic for cross-host redirect chains containing Git protocol paths such as /info/refs?service=git-upload-pack.
  • Hunt for credential reuse on Git platforms by correlating personal access token usage with anomalous source IPs or user agents identifying go-git.

Monitoring Recommendations

  • Alert on Git operations targeting domains outside an approved allowlist from CI/CD runners and developer endpoints.
  • Rotate and monitor Git personal access tokens, deploying short-lived credentials where possible to limit replay windows.
  • Enable repository-side audit logging for clone and fetch events and review for anomalous client identifiers.

How to Mitigate CVE-2026-41506

Immediate Actions Required

  • Upgrade all applications using go-git to version 5.18.0 or 6.0.0-alpha.2 or later.
  • Rotate any Git credentials, personal access tokens, or app passwords that may have been used with vulnerable go-git builds against untrusted or redirect-prone endpoints.
  • Audit CI/CD pipelines and developer tooling for embedded go-git versions and force rebuilds against the patched releases.

Patch Information

The maintainers fixed the credential leak in go-git v5.18.0 and go-git v6.0.0-alpha.2. The patched releases prevent authentication headers from being forwarded when a redirect crosses to a different host. Full remediation details are in the GitHub Security Advisory GHSA-3xc5-wrhm-f963.

Workarounds

  • Restrict outbound Git traffic to a known allowlist of trusted hosting providers to prevent redirects to attacker infrastructure.
  • Use SSH-based Git transport in place of HTTPS where feasible, since SSH authentication is not affected by HTTP redirect handling.
  • Replace long-lived credentials with short-lived, scope-limited tokens to reduce the impact of any captured authentication material.
bash
# Configuration example: pin go-git to a patched release in go.mod
go get github.com/go-git/go-git/v5@v5.18.0
go mod tidy

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechGo Git

  • SeverityHIGH

  • CVSS Score7.4

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-522
  • Technical References
  • GitHub Release v5.18.0

  • GitHub Release v6.0.0-alpha.2
  • Vendor Resources
  • GitHub Security Advisory GHSA-3xc5-wrhm-f963
  • Related CVEs
  • CVE-2026-34165: Go-git DoS Vulnerability

  • CVE-2026-25934: go-git Data Integrity Vulnerability

  • CVE-2023-49569: Go-git Path Traversal Vulnerability

  • CVE-2023-49568: Go-git DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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