{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.37.8"
              },
              {
                "introduced": "0.38.0"
              },
              {
                "fixed": "0.39.6"
              },
              {
                "introduced": "0.40.0"
              },
              {
                "fixed": "0.42.1"
              },
              {
                "introduced": "0.43.0"
              },
              {
                "fixed": "0.48.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "introduced": "43a6811e19718fdab05280e188fe97be4d727565"
            },
            {
              "introduced": "9d60ff70fe50becee02ec2ead487bdfb1bd525e6"
            },
            {
              "introduced": "eff5928d5b1c3a816e2b0f61f2e53a1af6109161"
            },
            {
              "fixed": "bdd53809c46428a60974c1b327e4d381d972e554"
            },
            {
              "fixed": "af48fc833cddd3f4dc8fe315cfa3cf17148e1668"
            },
            {
              "fixed": "d4044f270cd09555ff745937fa0f5dcc1d7cd1da"
            },
            {
              "fixed": "402d5c7eeece881cb082ec68e9e8b61709e39ace"
            },
            {
              "fixed": "001782829e82b83ecb3da903f5a024ca0826b64c"
            },
            {
              "fixed": "40813976a77920feaf52671320d6d3c5ff08eb7e"
            },
            {
              "fixed": "ac6fded6dfb69ade7197d4eeed6e90ddbe1b79bc"
            },
            {
              "fixed": "e0c4a11ea3800ab9d26cf3a8ae92b74cf18527c3"
            }
          ],
          "repo": "https://github.com/tektoncd/pipelines-as-code",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-6f2p-296r-cc28"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-269",
      "CWE-862"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54168.json"
  },
  "details": "Pipelines-as-Code is a CI/CD system that lets users define Tekton pipelines in source code repositories. Prior to 0.37.8, 0.39.6, 0.42.1, and 0.48.0, a GitHub App installation token created during webhook processing is not scoped to the repository that triggered the event when the App is installed across multiple repositories. A user with push access to one repository can submit a PipelineRun containing a pipelinesascode.tekton.dev/task remote task annotation that targets a private repository in the same installation. When ScopeTokenToListOfRepos returns no explicit scope, the missing triggering repository ID leaves the token able to access the entire installation. Pipelines-as-Code resolves and inlines the remote private task with that token, disclosing the repository's Tekton definitions. The demonstrated impact is read-only and does not provide write access. This issue is fixed in versions 0.37.8, 0.39.6, 0.42.1, and 0.48.0.",
  "id": "CVE-2026-54168",
  "modified": "2026-09-19T03:30:51.011096889Z",
  "published": "2026-09-15T14:27:44.344Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/tektoncd/pipelines-as-code/releases/tag/v0.37.8"
    },
    {
      "type": "WEB",
      "url": "https://github.com/tektoncd/pipelines-as-code/releases/tag/v0.39.6"
    },
    {
      "type": "WEB",
      "url": "https://github.com/tektoncd/pipelines-as-code/releases/tag/v0.42.1"
    },
    {
      "type": "WEB",
      "url": "https://github.com/tektoncd/pipelines-as-code/releases/tag/v0.48.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54168.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/tektoncd/pipelines-as-code/security/advisories/GHSA-6f2p-296r-cc28"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-54168"
    },
    {
      "type": "FIX",
      "url": "https://github.com/tektoncd/pipelines-as-code/commit/001782829e82b83ecb3da903f5a024ca0826b64c"
    },
    {
      "type": "FIX",
      "url": "https://github.com/tektoncd/pipelines-as-code/commit/40813976a77920feaf52671320d6d3c5ff08eb7e"
    },
    {
      "type": "FIX",
      "url": "https://github.com/tektoncd/pipelines-as-code/commit/ac6fded6dfb69ade7197d4eeed6e90ddbe1b79bc"
    },
    {
      "type": "FIX",
      "url": "https://github.com/tektoncd/pipelines-as-code/commit/e0c4a11ea3800ab9d26cf3a8ae92b74cf18527c3"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Pipelines-as-Code: Unscoped GitHub App installation token allows unauthorized access to private repositories via remote task resolution"
}