{"answers":{"affected":"11 open source packages ship an affected version, including github.com/tektoncd/pipeline. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-40161 in the wild and no public exploit code.","fix":"Upgrade github.com/tektoncd/pipeline to a fixed version for your release line: 1.0.2, 1.3.4, 1.6.2 or 1.9.3.","what":"CVE-2026-40161 is a high-severity vulnerability in tektoncd pipeline, published on 21 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40161 and fix it if it is affected.\n\nWhat it is: CVE-2026-40161 is a high-severity vulnerability in tektoncd pipeline, published on 21 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-40161 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/tektoncd/pipeline (Go): affected from 1.0.0; fixed in 1.0.2, 1.3.4, 1.6.2, 1.9.3, 1.11.1\n- github.com/tektoncd/pipeline (Go): affected from 1.0.0; fixed in 1.0.2\n- github.com/tektoncd/pipeline (Go): affected from 1.0.0; fixed in 1.0.2\n- github.com/tektoncd/pipeline (Go): affected from 1.10.0; fixed in 1.11.1\n- github.com/tektoncd/pipeline (Go): affected from 1.10.0; fixed in 1.11.1\n- github.com/tektoncd/pipeline (Go): affected from 1.2.0; fixed in 1.3.4\n- github.com/tektoncd/pipeline (Go): affected from 1.2.0; fixed in 1.3.4\n- github.com/tektoncd/pipeline (Go): affected from 1.4.0; fixed in 1.6.2\n- github.com/tektoncd/pipeline (Go): affected from 1.4.0; fixed in 1.6.2\n- github.com/tektoncd/pipeline (Go): affected from 1.7.0; fixed in 1.9.3\n- github.com/tektoncd/pipeline (Go): affected from 1.7.0; fixed in 1.9.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-40161/ (Markdown: https://insights.sbomify.com/CVE-2026-40161/index.md)","id":"CVE-2026-40161","markdown":"https://insights.sbomify.com/CVE-2026-40161/index.md","name":"CVE-2026-40161","record":{"aliases":["CLEANSTART-2026-BW27317","GHSA-wjxp-xrpv-xpff","GO-2026-5711"],"analysis":{"component_type":"cloud_service","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Tekton Pipelines","requires_auth":"low_privilege","summary":"Attackers with pipeline creation permissions can exfiltrate system Git API tokens by directing resolver requests to malicious servers.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"tekton_pipelines","vendor":"linuxfoundation"}],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-201","name":"Insertion of Sensitive Information Into Sent Data"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Tekton Pipelines: Git resolver API mode leaks system-configured API token to user-controlled serverURL","id":"CVE-2026-40161","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2026"},"n_packages":11,"n_references":3,"next":{"headline":"Bugsink affected by authenticated arbitrary file write in artifactbundle/assemble","id":"CVE-2026-40162"},"packages":[{"ecosystem":"Go","fixed":["1.0.2","1.3.4","1.6.2","1.9.3","1.11.1"],"introduced":["1.0.0","1.1.0","1.4.0","1.7.0","1.10.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"GO-2026-5711"},{"ecosystem":"Go","fixed":["1.0.2"],"introduced":["1.0.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":null,"source":"GHSA-wjxp-xrpv-xpff"},{"ecosystem":"Go","fixed":["1.0.2"],"introduced":["1.0.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"GHSA-wjxp-xrpv-xpff"},{"ecosystem":"Go","fixed":["1.11.1"],"introduced":["1.10.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":null,"source":"GHSA-wjxp-xrpv-xpff"},{"ecosystem":"Go","fixed":["1.11.1"],"introduced":["1.10.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"GHSA-wjxp-xrpv-xpff"},{"ecosystem":"Go","fixed":["1.3.4"],"introduced":["1.2.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":null,"source":"GHSA-wjxp-xrpv-xpff"},{"ecosystem":"Go","fixed":["1.3.4"],"introduced":["1.2.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"GHSA-wjxp-xrpv-xpff"},{"ecosystem":"Go","fixed":["1.6.2"],"introduced":["1.4.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":null,"source":"GHSA-wjxp-xrpv-xpff"},{"ecosystem":"Go","fixed":["1.6.2"],"introduced":["1.4.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"GHSA-wjxp-xrpv-xpff"},{"ecosystem":"Go","fixed":["1.9.3"],"introduced":["1.7.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":null,"source":"GHSA-wjxp-xrpv-xpff"},{"ecosystem":"Go","fixed":["1.9.3"],"introduced":["1.7.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"GHSA-wjxp-xrpv-xpff"}],"prev":{"headline":"PraisonAIAgents has SSRF via unvalidated URL in `web_crawl` httpx fallback","id":"CVE-2026-40160"},"products":["pipeline"],"published":"2026-04-21","related":[{"cvss_score":9.6,"headline":"Tekton Pipelines git resolver has path traversal that allows reading arbitrary files from the resolver pod","id":"CVE-2026-33211","kev_date_added":null,"published":"2026-03-23"},{"cvss_score":7.5,"headline":"Tekton Pipelines: Git Resolver Unsanitized Revision Parameter Enables git Argument Injection Leading to RCE","id":"CVE-2026-40938","kev_date_added":null,"published":"2026-04-21"},{"cvss_score":6.5,"headline":"Tekton Pipelines: VerificationPolicy regex pattern bypass via substring matching","id":"CVE-2026-25542","kev_date_added":null,"published":"2026-04-21"},{"cvss_score":6.5,"headline":"Tekton Pipelines: HTTP Resolver Unbounded Response Body Read Enables Denial of Service via Memory Exhaustion","id":"CVE-2026-40924","kev_date_added":null,"published":"2026-04-21"},{"cvss_score":6.5,"headline":"Tekton Pipelines: Controller can panic when setting long resolver names in TaskRun/PipelineRun","id":"CVE-2026-33022","kev_date_added":null,"published":"2026-03-20"},{"cvss_score":5.4,"headline":"Tekton Pipelines: VolumeMount path restriction bypass via missing filepath.Clean in /tekton/ check","id":"CVE-2026-40923","kev_date_added":null,"published":"2026-04-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-21","vendors":["tektoncd"]},"summary":"Attackers with pipeline creation permissions can exfiltrate system Git API tokens by directing resolver requests to malicious servers.","url":"https://insights.sbomify.com/CVE-2026-40161/"}