{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "1.0"
              },
              {
                "fixed": "2.2.29"
              },
              {
                "introduced": "2.3.0"
              },
              {
                "fixed": "2.10.2"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "32df3aa8cdbdaa16df9491b5e672e81c87f94c78"
            },
            {
              "introduced": "934ee6eed3c3ffd0aeccef7c1d255adcf0752b24"
            },
            {
              "fixed": "ccbe57917efe30262ce80463fc4a6182c5ac29ed"
            },
            {
              "fixed": "8d4439f572a97670a9edc039eb3b093cc976b4bc"
            },
            {
              "fixed": "6bd66874ae523ecb69aca5964487a0cdfda03ef8"
            },
            {
              "fixed": "8887ad76fbd830cb1861a2b1fd8ead78ed1fa1ec"
            }
          ],
          "repo": "https://github.com/composer/composer",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-g6xq-892h-64w3"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-532"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59947.json"
  },
  "details": "Composer is a dependency Manager for the PHP language. Prior to 2.2.29 and 2.10.2, when Composer is run with -vvv debug verbosity, it could print a credential embedded in the username slot of a repository or package URL, such as a GitHub Personal Access Token in https://TOKEN@host/, to debug output because AuthHelper, Url::sanitize, and ProcessExecutor did not sanitize username-only URL credentials. This issue is fixed in versions 2.2.29 and 2.10.2.",
  "id": "CVE-2026-59947",
  "modified": "2026-07-15T01:48:55.093712227Z",
  "published": "2026-07-08T19:33:56.009Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/composer/composer/releases/tag/2.10.2"
    },
    {
      "type": "WEB",
      "url": "https://github.com/composer/composer/releases/tag/2.2.29"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59947.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/composer/composer/security/advisories/GHSA-g6xq-892h-64w3"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59947"
    },
    {
      "type": "FIX",
      "url": "https://github.com/composer/composer/commit/6bd66874ae523ecb69aca5964487a0cdfda03ef8"
    },
    {
      "type": "FIX",
      "url": "https://github.com/composer/composer/commit/8887ad76fbd830cb1861a2b1fd8ead78ed1fa1ec"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Composer: URL-embedded HTTP-Basic username leaks to verbose logs (GitHub PAT exposure)"
}