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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-21 · Modified: 2026-05-21
- Aliases: CGA-267x-p3fm-22cq, CGA-2chm-pxgv-m2qf, CGA-3g9h-w3vh-f7v6, CGA-4fm9-6v99-r955, CGA-5589-vjfx-3prp, CGA-5fjm-hv5f-p8xh, CGA-5h85-xcvh-34jm, CGA-5m9h-pm2m-m5j7, CGA-62rh-hq27-j3c2, CGA-6g47-rqqh-qhp4, CGA-6w59-8556-3cf6, CGA-73qm-953q-w3cg, CGA-76gw-c58m-mqqx, CGA-7h6m-xmm6-r722, CGA-9m28-xcpq-m558, CGA-9q4q-j9m9-wrfh, CGA-c2c9-x83v-57mp, CGA-c7h5-4jmq-95x9, CGA-cjw8-c4w9-36w3, CGA-cpmh-8j8g-r95q, CGA-cv5v-qgh4-rmh5, CGA-cw73-66vv-p7jm, CGA-h492-fj8v-38qf, CGA-h7wv-8f9q-gjgq, CGA-hhwv-9g6w-vw96, CGA-jjrm-fgcf-wrx5, CGA-m9mw-2rq2-89p2, CGA-qmvj-h945-wh6w, CGA-r29w-hr7c-rmqv, CGA-r5p8-652h-j259, CGA-rg2v-xjm3-hgf5, CGA-rh39-h4mg-vqgf, CGA-rhrr-v78q-jxx3, CGA-wrg6-7rr9-3gjx, CGA-x72w-wc2p-x39r, CGA-xh73-2h3c-7vwp, GHSA-wjxp-xrpv-xpff, GO-2026-5711, CGA-23g3-rhvg-8gx9, CGA-23hm-xjwm-h38p, CGA-263q-mx98-2p66, CGA-2c3x-cm7r-w5wh, CGA-2c62-fwqv-g7xp, CGA-2frm-j4vc-67q5, CGA-2ggf-xqp5-8hrj, CGA-2h98-4hm6-xgr6, CGA-2j58-p98q-cfj4, CGA-2qgr-5gfj-5jxv, CGA-2rc8-xcfj-fx2h, CGA-2w7f-rgp8-v7cf, CGA-3327-8q3w-fp7f, CGA-33qv-rprw-8wqv, CGA-33x2-7r89-gcf8, CGA-356r-rw2v-q5m8, CGA-36gq-23w6-3g8g, CGA-383m-qp9q-2cw4, CGA-3cc2-9vf8-pgv6, CGA-3cg6-x2f8-m564, CGA-3x93-m74g-h9cq, CGA-4344-6qqh-rfv3, CGA-43qq-6hqx-rx59, CGA-46p9-hw2r-fgf8, CGA-46xv-v7hp-pp3g, CGA-48gh-hgrv-w3gh, CGA-4qff-vw3m-g8m5, CGA-4qj6-486j-7ch4, CGA-4qpj-mpqv-33h7, CGA-4r9x-6q86-r2v6, CGA-4v96-q4h5-v9qp, CGA-4wq5-g393-2f75, CGA-54r9-4p2r-qh59, CGA-58pc-p494-76h2, CGA-58pj-qrmm-5q4x, CGA-5jgh-j97c-hqgv, CGA-5mjj-m58f-75rx, CGA-5pq3-4mq8-x8hc, CGA-5v7f-v4vc-3jgg, CGA-5vx7-2m2p-3gqr, CGA-5wg8-pf8q-g6qf, CGA-5wxf-pw7q-54pj, CGA-637q-h358-r6hv, CGA-64rj-h24j-4563, CGA-65w8-x9cw-9gmw, CGA-668v-x2wr-f662, CGA-69m2-q2q9-gh69, CGA-6cwf-vmc2-2f26, CGA-6hvq-xpgj-c5mm, CGA-6m85-g7hh-x7r2, CGA-6m8p-vf4h-cr2x, CGA-6mpm-9mhp-pfq7, CGA-6r4q-f4rx-84rw, CGA-6rqv-7m2g-f9xw, CGA-6v6w-4qfr-rhrr, CGA-6vmm-fp8c-78pg, CGA-74hc-56pg-442v, CGA-74wh-c4gj-gqwj, CGA-76fc-fr8f-qrfp, CGA-76xg-6jvf-cw87, CGA-794p-9vc8-g69j, CGA-79hx-g2fq-xm3v, CGA-79w2-2gm9-m4gm, CGA-7cpg-wmqc-h67j, CGA-7g2q-x4xg-jf3q, CGA-7hvw-6p4c-82jv, CGA-7jfj-4fqx-2fmg, CGA-7w78-772j-4962, CGA-8259-v5qc-76fm, CGA-844q-q3px-4wj9, CGA-8842-fc43-q4v8, CGA-8874-q88q-wgm7, CGA-89gf-rpvp-qp42, CGA-89hp-368h-fpfp, CGA-8g59-4rj2-2r5m, CGA-8jg8-9f4p-7gv6, CGA-8p7c-g7ch-6mxw, CGA-8p97-g2r9-3hfg, CGA-8r3c-v23r-2q9q, CGA-8vv6-2vcg-4f7h, CGA-92g6-x3pc-8fpv, CGA-92w8-4cr9-558r, CGA-9898-fwjv-rx7w, CGA-9g24-j938-mg6g, CGA-9h66-6wcw-vvvj, CGA-9p6x-vf2q-8876, CGA-9ppm-9v94-vgxr, CGA-9vw6-485c-qf26, CGA-c3wv-9pwx-pgj9, CGA-c4wq-qh4h-r5fh, CGA-c6p6-8vgj-8gw5, CGA-c985-45m6-92cf, CGA-c9fc-xfj9-x5gr, CGA-ch4w-4j9h-vp8g, CGA-ch9q-qrg9-3w48, CGA-chwx-pr42-8gcc, CGA-cj9c-m36j-jf95, CGA-cpgv-84ch-pr76, CGA-cx64-8c74-483p, CGA-f3w3-rxmh-c29c, CGA-f7rv-7h7g-4gqh, CGA-fc53-h4c8-72h8, CGA-g29f-8qjh-7c9m, CGA-g5fx-57xf-j373, CGA-g77w-rm62-9rfh, CGA-gc4x-fc73-w6q7, CGA-gcw6-w4hr-pj2r, CGA-gf59-q575-x65h, CGA-ggc4-f3qg-p862, CGA-gj2w-hrxp-j8fw, CGA-gj3g-4r2c-r2jr, CGA-gqj3-wcv7-ggfp, CGA-gr9c-hj38-fhf6, CGA-gwcv-g4p3-mvwv, CGA-gwxc-rvvv-m56g, CGA-h254-463r-p6qj, CGA-h2qq-g2qc-4jq9, CGA-h5v7-3vh9-fjhj, CGA-h68m-9hv9-xfp8, CGA-h7qj-wjhc-w535, CGA-h8jm-f7cv-m92m, CGA-h93w-pf66-gj8m, CGA-hg9r-m9w5-m426, CGA-hh8f-v3f6-3cfp, CGA-hhmg-27v2-5rrg, CGA-hj5q-f636-f62x, CGA-hmv4-77vq-pp82, CGA-hq6h-m6q4-mrh6, CGA-hrr3-v8p8-xj87, CGA-j2jj-f8ww-f9xv, CGA-j4f4-3fmq-8fm8, CGA-j6ph-m52j-jp8f, CGA-j7gq-5285-4qj7, CGA-j9xp-67cg-3wrv, CGA-jc64-rffv-xqjw, CGA-jh9q-7g8v-v9w9, CGA-jhq5-j3g9-hq3m, CGA-jj7h-h2mm-qwm5, CGA-jp2j-m4jf-w92f, CGA-jp5x-9887-jphm, CGA-jv96-3w67-6j97, CGA-jvjj-fm72-p46m, CGA-jvp3-4938-cj4j, CGA-jxfv-jxpr-q538, CGA-m263-wfm4-jmvf, CGA-m33p-mx4h-j8fq, CGA-m4j3-v2gx-5p6j, CGA-m4mj-3g4v-6h6c, CGA-m73j-8wg5-2vvc, CGA-m8gr-p679-cv6g, CGA-m93q-r7m5-r5jv, CGA-mp4v-5pcv-rjx6, CGA-mq44-756f-w4x7, CGA-mvx8-c98c-j5cw, CGA-mxfm-cgx9-68x2, CGA-p388-8h49-8xch, CGA-p43m-phh5-69pw, CGA-p5q8-hp25-3mv3, CGA-p7jx-xg56-42q7, CGA-p8fw-wgrh-9p29, CGA-pfp6-66w6-rp25, CGA-pmhm-7665-hrr2, CGA-pmjf-x6rv-f6g8, CGA-pqcq-hmwc-pmqh, CGA-pwhh-w2gh-jpfm, CGA-px68-hwf5-cqgj, CGA-q387-7j7w-6hwp, CGA-q459-33g3-w6jx, CGA-q547-5wrc-pg9c, CGA-q673-2jhr-g5x7, CGA-q78m-73c6-329q, CGA-q7fr-7x3j-mv95, CGA-q9xr-v4gq-vg44, CGA-qcf5-j586-hjj2, CGA-qj9p-hgc6-r343, CGA-qjm9-r67m-hvjv, CGA-qm33-8xmx-6x88, CGA-qm3v-vm56-p79h, CGA-qpcm-mjgm-mg3x, CGA-qvm5-8pgr-fhxg, CGA-r4qc-8qq8-84qh, CGA-r5rg-7h5g-mrwx, CGA-r66m-6pr8-4866, CGA-r8j9-74xw-5g4x, CGA-r975-m4w9-4w96, CGA-rf2h-36gx-cvcq, CGA-rg42-rm75-fcjr, CGA-rg8r-v59h-997x, CGA-rgrr-mfgh-vqx7, CGA-rphh-x3vm-v6wp, CGA-rpxg-xwx9-39qh, CGA-rrp8-45g3-3jx4, CGA-rwhx-cph7-cxmr, CGA-v5m6-w92x-xfg3, CGA-v88c-v327-xh38, CGA-vcr4-4hhh-grfx, CGA-vgp6-p39w-r8m8, CGA-vm5h-j2cj-q5qg, CGA-vrjc-c5rc-r9wr, CGA-vvp3-px3f-xhg6, CGA-vwcm-2px8-6pxg, CGA-vwp9-hf7h-xrfm, CGA-vx3w-8xgj-3qhc, CGA-vxg3-fv6g-mv4h, CGA-w34c-gprx-j64r, CGA-w3fm-vv43-vwj9, CGA-w3w9-ffv6-v2v3, CGA-w98v-gv3m-w55q, CGA-wpcm-49x9-c45v, CGA-wq57-ghx6-jvh9, CGA-ww3m-2mxq-7x8p, CGA-ww53-5m7f-h5vm, CGA-wwjm-7h77-f3fx, CGA-wx5r-qfpc-9c74, CGA-x26f-cj56-5xq4, CGA-x6q5-f2m3-v956, CGA-x6r7-gvjw-rf76, CGA-x6v4-2cx8-m33v, CGA-x9j3-464m-grw5, CGA-xc46-6vcg-rhrw, CGA-xcfh-738q-m43c, CGA-xf6q-gw4m-8f8r, CGA-xgg9-hpq5-c488, CGA-xh83-3jwf-2h23, CGA-xp68-346m-64xx, CGA-xvq5-g47v-v6x2, CGA-xwx4-fqmw-6333, CGA-xxwx-cgr7-84c9
- Record: https://cvemate.com/vulnerability/CVE-2026-40161 · JSON: https://cvemate.com/vulnerability/CVE-2026-40161/json

## Description

```text
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.
```

## Signals

- CVSS: 7.7 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
- EPSS: 0.27%, percentile 20.493%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 153)

- chainguard tekton-chains (Chainguard): \< 0.27.0-r0
- chainguard tekton-chains-fips (Chainguard): \< 0.27.0-r0
- chainguard tekton-pipelines-controller-1.0 (Chainguard): \< 1.0.2-r3
- chainguard tekton-pipelines-controller-1.10 (Chainguard): All versions (No fix recorded)
- chainguard tekton-pipelines-controller-1.3 (Chainguard): \< 1.3.4-r2
- chainguard tekton-pipelines-controller-1.4 (Chainguard): \< 1.4.0-r19
- chainguard tekton-pipelines-controller-1.5 (Chainguard): All versions (No fix recorded)
- chainguard tekton-pipelines-controller-1.6 (Chainguard): \< 1.6.2-r2
- chainguard tekton-pipelines-controller-1.7 (Chainguard): All versions (No fix recorded)
- chainguard tekton-pipelines-controller-1.9 (Chainguard): \< 1.9.3-r2
- chainguard tekton-pipelines-controller-fips-1.0 (Chainguard): \< 1.0.2-r3
- chainguard tekton-pipelines-controller-fips-1.10 (Chainguard): All versions (No fix recorded)
- chainguard tekton-pipelines-controller-fips-1.3 (Chainguard): \< 1.3.4-r2
- chainguard tekton-pipelines-controller-fips-1.4 (Chainguard): All versions (No fix recorded)
- chainguard tekton-pipelines-controller-fips-1.5 (Chainguard): All versions (No fix recorded)
- chainguard tekton-pipelines-controller-fips-1.6 (Chainguard): \< 1.6.2-r2
- chainguard tekton-pipelines-controller-fips-1.7 (Chainguard): \< 1.7.0-r14
- chainguard tekton-pipelines-controller-fips-1.9 (Chainguard): \< 1.9.3-r3
- chainguard tekton-pipelines-entrypoint-1.0 (Chainguard): \< 1.0.2-r3
- chainguard tekton-pipelines-entrypoint-1.10 (Chainguard): All versions (No fix recorded)

## References

- <https://github.com/tektoncd/pipeline/security/advisories/GHSA-wjxp-xrpv-xpff>
- <https://github.com/tektoncd/pipeline/issues/9608>
- <https://github.com/tektoncd/pipeline/issues/9609>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40161.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40161>
- <https://github.com/tektoncd/pipeline>

---

Data as of 2026-12-05T07:39:22.171Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
