CVE-2026-40161

Tekton Pipelines: Git resolver API mode leaks system-configured API token to user-controlled serverURL

Published Apr 21, 2026 CVSS 3.1 · 7.7 High EPSS < 1% KEV · Not listed
Description
Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. Starting in version 1.0.0 and prior to versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1, the Tekton Pipelines git resolver in API mode sends the system-configured Git API token to a user-controlled serverURL when the user omits the token parameter. A tenant with TaskRun or PipelineRun create permission can exfiltrate the shared API token (GitHub PAT, GitLab token, etc.) by pointing serverURL to an attacker-controlled endpoint. Versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1 fix the issue.

Analysis

AI-generated

Technical impact

The vulnerability occurs when the Git resolver in Tekton Pipelines operates in API mode and the user omits the token parameter. Under these conditions, the resolver inadvertently sends the system-configured Git API token—such as a GitHub personal access token or GitLab token—to the serverURL supplied by the user. This leak constitutes unintended information exposure (CWE‑201) and represents an insecure handling of configuration credentials (CWE‑918), allowing an attacker to obtain a credential that is generally trusted to perform actions on the developer’s behalf, potentially leading to downstream compromise of source‑code repositories or other services that rely on the token.

Affected Systems

The flaw affects the Tekton Pipelines product, versions 1.0.0, 1.0.1, 1.3.0 through 1.3.3, 1.6.0 through 1.6.1, 1.9.0 through 1.9.2, and 1.11.0. A tenant who has permission to create a TaskRun or PipelineRun can exploit this and direct the resolver to an attacker-controlled endpoint to capture the API token.

Risk and Exploitability

The CVSS score of 7.7 indicates high impact for the affected users. The EPSS score is < 1%, a very low but non‑zero exploitation probability, and the vulnerability is not listed in the CISA KEV catalog, the attack vector requires local cluster access to create a run and a configurable serverURL. An attacker with the necessary permissions can directly exfiltrate the token, enabling unauthorized access to Git services. While exploitation is straightforward for an internal attacker, external exploitation would need a foothold with sufficient permissions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Tekton Pipelines to the latest stable release where the Git resolver no longer transmits the system-configured token when the token field is omitted.
  • Restrict privileges so that only trusted users can create PipelineRun or TaskRun resources, thereby limiting the ability to supply arbitrary serverURLs.
  • Enforce network policies or firewall rules to block outbound traffic from Tekton pods to unknown external endpoints, preventing exfiltration of credentials to attacker-controlled servers.

Generated by OpenCVE AI on May 21, 2026 at 22:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-wjxp-xrpv-xpff Tekton Pipelines: Git resolver API mode leaks system-configured API token to user-controlled serverURL
History
Type Values Removed Values Added
Description Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. From 1.0.0 to 1.10.0, the Tekton Pipelines git resolver in API mode sends the system-configured Git API token to a user-controlled serverURL when the user omits the token parameter. A tenant with TaskRun or PipelineRun create permission can exfiltrate the shared API token (GitHub PAT, GitLab token, etc.) by pointing serverURL to an attacker-controlled endpoint. Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. Starting in version 1.0.0 and prior to versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1, the Tekton Pipelines git resolver in API mode sends the system-configured Git API token to a user-controlled serverURL when the user omits the token parameter. A tenant with TaskRun or PipelineRun create permission can exfiltrate the shared API token (GitHub PAT, GitLab token, etc.) by pointing serverURL to an attacker-controlled endpoint. Versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1 fix the issue.
Type Values Removed Values Added
First Time appeared Linuxfoundation
Linuxfoundation tekton Pipelines
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:a:linuxfoundation:tekton_pipelines:*:*:*:*:*:go:*:*
Vendors & Products Linuxfoundation
Linuxfoundation tekton Pipelines
Type Values Removed Values Added
First Time appeared Tektoncd
Tektoncd pipeline
Vendors & Products Tektoncd
Tektoncd pipeline
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. From 1.0.0 to 1.10.0, the Tekton Pipelines git resolver in API mode sends the system-configured Git API token to a user-controlled serverURL when the user omits the token parameter. A tenant with TaskRun or PipelineRun create permission can exfiltrate the shared API token (GitHub PAT, GitLab token, etc.) by pointing serverURL to an attacker-controlled endpoint.
Title Tekton Pipelines: Git resolver API mode leaks system-configured API token to user-controlled serverURL
Weaknesses CWE-201
References
Metrics cvssV3_1

{'score': 7.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 21, 2026, 9:20 PM
Reserved
Apr 9, 2026, 7:31 PM
Status
Modified
Published
Apr 21, 2026, 5:16 PM
Modified
Oct 26, 2026, 9:10 PM
Severity
Moderate
Public date
Apr 21, 2026, 4:26 PM