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

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2026-04-21T16:26:27.381Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-wjxp-xrpv-xpff, GO-2026-5711
- Weaknesses: CWE-201
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- tektoncd pipeline: >= 1.0.0, < 1.0.2; >= 1.2.0, < 1.3.4; >= 1.4.0, < 1.6.2; >= 1.7.0, < 1.9.3; >= 1.10.0, < 1.11.1
- github.com/tektoncd/pipeline (Go): from 1.0.0 before 1.0.2; from 1.2.0 before 1.3.4; from 1.4.0 before 1.6.2; from 1.7.0 before 1.9.3; from 1.10.0 before 1.11.1; from 1.1.0 before 1.3.4
- linuxfoundation tekton_pipelines: from 1.0.0 up to 1.10.0

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/tektoncd/pipeline/security/advisories/GHSA-wjxp-xrpv-xpff> (advisory, vendor-advisory, web)
- <https://github.com/tektoncd/pipeline/issues/9608> (issue-tracking, report, web)
- <https://github.com/tektoncd/pipeline/issues/9609> (issue-tracking, report, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40161> (advisory)
- <https://github.com/tektoncd/pipeline> (package)

## Sources

- CVE List: [CVE-2026-40161](https://www.cve.org/CVERecord?id=CVE-2026-40161), CVE Terms of Use, modified 2026-05-21
- GitHub Advisory Database: [GHSA-wjxp-xrpv-xpff](https://github.com/advisories/GHSA-wjxp-xrpv-xpff), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5711](https://pkg.go.dev/vuln/GO-2026-5711), CC-BY-4.0, modified 2026-07-23
- NVD: [CVE-2026-40161](https://nvd.nist.gov/vuln/detail/CVE-2026-40161), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40161 · Whole record: https://cve.day/CVE-2026-40161.json · Rebuilt by cve.day 2026-11-25T22:59:19.115Z
