{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "1.0"
              },
              {
                "fixed": "1.10.28"
              },
              {
                "introduced": "2.0.0"
              },
              {
                "fixed": "2.2.28"
              },
              {
                "introduced": "2.3.0"
              },
              {
                "fixed": "2.9.8"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "32df3aa8cdbdaa16df9491b5e672e81c87f94c78"
            },
            {
              "introduced": "378b34c5e33c71d194f33e1b73a62ba22148ff13"
            },
            {
              "introduced": "934ee6eed3c3ffd0aeccef7c1d255adcf0752b24"
            },
            {
              "fixed": "8db20864c72cc97be1d803efe10dc84abf533a05"
            },
            {
              "fixed": "5104b27aaa735dcbadc1bd65f5ff1ef3552c543a"
            },
            {
              "fixed": "39ee8baff8e97a1b657bbfcd6a236ff93a5efbb2"
            },
            {
              "fixed": "3f5e7f9fbfa541137d6d1d5643ec3b718e9d5039"
            },
            {
              "fixed": "65e6390c49f1a11cd8b660d81822086db51fe2d1"
            },
            {
              "fixed": "e66c8fdb7ff5409bd2f358c5f194038e49e93714"
            }
          ],
          "repo": "https://github.com/composer/composer",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-f9f8-rm49-7jv2"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-200"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45793.json"
  },
  "details": "Composer is a dependency Manager for the PHP language. Prior to 1.10.28, 2.2.28, and 2.9.8, Composer\\IO\\BaseIO::loadConfiguration() validates GitHub OAuth tokens with the regex ^[.A-Za-z0-9_]+$ and interpolates rejected tokens into an UnexpectedValueException; GitHub Actions GITHUB_TOKEN values using the ghs_\u003cid\u003e_\u003cbase64url-JWT\u003e format can contain -, fail validation, and be disclosed to stderr or CI logs. This issue is fixed in versions 1.10.28, 2.2.28, and 2.9.8.",
  "id": "CVE-2026-45793",
  "modified": "2026-07-17T03:41:38.907906766Z",
  "published": "2026-07-15T16:22:19.418Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/composer/composer/releases/tag/1.10.28"
    },
    {
      "type": "WEB",
      "url": "https://github.com/composer/composer/releases/tag/2.2.28"
    },
    {
      "type": "WEB",
      "url": "https://github.com/composer/composer/releases/tag/2.9.8"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45793.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/composer/composer/security/advisories/GHSA-f9f8-rm49-7jv2"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-45793"
    },
    {
      "type": "FIX",
      "url": "https://github.com/composer/composer/commit/3f5e7f9fbfa541137d6d1d5643ec3b718e9d5039"
    },
    {
      "type": "FIX",
      "url": "https://github.com/composer/composer/commit/65e6390c49f1a11cd8b660d81822086db51fe2d1"
    },
    {
      "type": "FIX",
      "url": "https://github.com/composer/composer/commit/e66c8fdb7ff5409bd2f358c5f194038e49e93714"
    },
    {
      "type": "FIX",
      "url": "https://github.com/composer/composer/pull/12853"
    },
    {
      "type": "FIX",
      "url": "https://github.com/composer/composer/pull/12855"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Composer: Github Actions issued GITHUB_TOKEN disclosure in GitHub Actions logs"
}