{
  "id": "CVE-2026-40161",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-40161",
  "published_at": "2026-04-21T16:26:27.381Z",
  "title": "Tekton Pipelines: Git resolver API mode leaks system-configured API token to user-controlled serverURL",
  "vendor": "tektoncd",
  "product": "pipeline",
  "cvss": {
    "score": 7.7,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-201",
  "cpes": [
    "cpe:2.3:a:linuxfoundation:tekton_pipelines:*:*:*:*:*:go:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.7,
    "nvd": 6.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "tektoncd",
        "product": "pipeline",
        "ranges": [
          "\u003e= 1.0.0, \u003c 1.0.2",
          "\u003e= 1.2.0, \u003c 1.3.4",
          "\u003e= 1.4.0, \u003c 1.6.2",
          "\u003e= 1.7.0, \u003c 1.9.3",
          "\u003e= 1.10.0, \u003c 1.11.1"
        ],
        "fixed_in": [
          "1.0.2",
          "1.3.4",
          "1.6.2",
          "1.9.3",
          "1.11.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade pipeline to 1.0.2 or 1.3.4 or 1.6.2 or 1.9.3 or 1.11.1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/tektoncd/pipeline/security/advisories/GHSA-wjxp-xrpv-xpff"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
