Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-40161

CVE-2026-40161: Tekton Pipelines Information Disclosure

CVE-2026-40161 is an information disclosure flaw in Tekton Pipelines that allows attackers to exfiltrate Git API tokens through malicious serverURL endpoints. This article covers technical details, affected versions, and mitigation.

Published: April 23, 2026

CVE-2026-40161 Overview

CVE-2026-40161 is a sensitive information exposure vulnerability affecting Tekton Pipelines, a popular Kubernetes-native CI/CD framework. The vulnerability exists in the Tekton Pipelines git resolver when operating in API mode. From versions 1.0.0 to 1.10.0, the git resolver sends the system-configured Git API token to a user-controlled serverURL when the user omits the token parameter. This allows a malicious tenant with TaskRun or PipelineRun create permission to exfiltrate shared API tokens (GitHub PAT, GitLab token, etc.) by pointing serverURL to an attacker-controlled endpoint.

Critical Impact

Attackers can steal shared Git API tokens used across the Tekton Pipelines installation, potentially gaining unauthorized access to source code repositories and CI/CD pipelines across multiple projects.

Affected Products

  • Tekton Pipelines versions 1.0.0 through 1.10.0
  • Tekton Pipelines git resolver (API mode)
  • Kubernetes environments running vulnerable Tekton Pipelines versions

Discovery Timeline

  • 2026-04-21 - CVE-2026-40161 published to NVD
  • 2026-04-22 - Last updated in NVD database

Technical Details for CVE-2026-40161

Vulnerability Analysis

This vulnerability is classified as CWE-201 (Insertion of Sensitive Information Into Sent Data). The flaw resides in the Tekton Pipelines git resolver component when configured to operate in API mode. The core issue is that when a user creates a TaskRun or PipelineRun resource and specifies a custom serverURL parameter without providing a corresponding token parameter, the git resolver defaults to using the system-configured Git API token.

This design flaw means that the centrally managed, shared API token intended for legitimate Git operations is inadvertently sent to whatever URL the user specifies. In a multi-tenant Kubernetes environment where Tekton Pipelines is shared across teams or projects, this creates a significant credential exposure risk.

Root Cause

The root cause of this vulnerability lies in the improper handling of authentication token parameters within the git resolver's API mode logic. When the token parameter is omitted in a user request, the system fails to validate whether the destination serverURL should be authorized to receive the system-configured credentials. Instead of rejecting requests with missing token parameters or restricting token usage to pre-approved server endpoints, the resolver automatically falls back to using the shared API token regardless of the destination URL.

Attack Vector

The attack vector is network-based and requires the attacker to have legitimate create permissions for TaskRun or PipelineRun resources within the Kubernetes cluster. The attack flow involves:

  1. The attacker identifies a Tekton Pipelines installation using the git resolver in API mode
  2. The attacker sets up an attacker-controlled HTTP server to capture incoming requests
  3. The attacker creates a TaskRun or PipelineRun resource with a custom serverURL pointing to their malicious server
  4. The attacker intentionally omits the token parameter from the request
  5. The git resolver sends the system-configured Git API token to the attacker's server
  6. The attacker captures and extracts the token (GitHub PAT, GitLab token, etc.)

The vulnerability can be exploited through malicious TaskRun or PipelineRun specifications. When the serverURL parameter is set to an attacker-controlled endpoint and the token parameter is omitted, the git resolver automatically sends the system-configured credentials to the specified URL. For detailed technical information, see the GitHub Security Advisory GHSA-wjxp-xrpv-xpff.

Detection Methods for CVE-2026-40161

Indicators of Compromise

  • Unusual TaskRun or PipelineRun resources with custom serverURL parameters pointing to external or unknown endpoints
  • Git resolver logs showing requests to non-standard Git API servers
  • Network traffic from Tekton components to unexpected external IP addresses or domains
  • Audit logs indicating creation of pipeline resources by users who shouldn't have Git resolver access

Detection Strategies

  • Monitor Kubernetes audit logs for TaskRun and PipelineRun creation events with custom serverURL parameters
  • Implement network policies to restrict egress traffic from Tekton resolver pods to approved Git API endpoints only
  • Deploy SentinelOne Singularity for Cloud to detect anomalous API calls and credential exposure attempts
  • Enable Tekton Pipelines audit logging and configure alerts for git resolver activity with external URLs

Monitoring Recommendations

  • Configure alerting for any git resolver requests to URLs outside of approved Git hosting providers
  • Implement network-level monitoring for unusual outbound connections from Kubernetes worker nodes running Tekton
  • Review API token usage patterns and rotate credentials if suspicious activity is detected
  • Enable detailed logging for the git resolver component to capture all serverURL and token parameter combinations

How to Mitigate CVE-2026-40161

Immediate Actions Required

  • Upgrade Tekton Pipelines to a patched version beyond 1.10.0
  • Audit existing TaskRun and PipelineRun resources for suspicious serverURL configurations
  • Rotate all Git API tokens (GitHub PATs, GitLab tokens, etc.) that may have been exposed
  • Implement network policies to restrict git resolver egress traffic to approved endpoints

Patch Information

Organizations should upgrade Tekton Pipelines to the latest patched version that addresses this vulnerability. Detailed patch information and upgrade guidance is available in the GitHub Security Advisory GHSA-wjxp-xrpv-xpff. Additional context can be found in GitHub Issue #9608 and GitHub Issue #9609.

Workarounds

  • Disable the git resolver API mode until patches can be applied
  • Implement Kubernetes admission controllers to validate and restrict serverURL parameters in TaskRun/PipelineRun specifications
  • Apply network policies to limit egress from Tekton resolver pods to known Git API endpoints
  • Restrict TaskRun and PipelineRun create permissions to only trusted users and service accounts
bash
# Example NetworkPolicy to restrict git resolver egress
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: restrict-git-resolver-egress
  namespace: tekton-pipelines
spec:
  podSelector:
    matchLabels:
      app: tekton-pipelines-git-resolver
  policyTypes:
  - Egress
  egress:
  - to:
    - ipBlock:
        cidr: 140.82.112.0/20  # GitHub API
    ports:
    - protocol: TCP
      port: 443

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechTekton Pipelines

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-201
  • Technical References
  • GitHub Issue #9608

  • GitHub Issue #9609

  • GitHub Security Advisory GHSA-wjxp-xrpv-xpff
  • Related CVEs
  • CVE-2026-40923: Tekton Pipelines Path Traversal Flaw

  • CVE-2026-40938: Tekton Pipelines Git Resolver RCE Flaw

  • CVE-2026-33211: Tekton Pipelines Path Traversal Flaw

  • CVE-2026-33022: Tekton Pipelines DOS Vulnerability
Default Legacy - Prefooter | 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