{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.38.0"
                  },
                  {
                    "fixed": "2.38.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "2.37.0"
                  },
                  {
                    "fixed": "2.37.8"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "2.36.0"
                  },
                  {
                    "fixed": "2.36.11"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "2.30.0"
                  },
                  {
                    "fixed": "2.34.16"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "2.26.0"
                  },
                  {
                    "fixed": "2.29.24"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "2.35.0"
                  },
                  {
                    "fixed": "2.36.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "c3c6a672821e8ac2472c45f3be7a3c600aa8dae1"
            },
            {
              "fixed": "d16b1cabb64417e197bb8887e9b8f6988d37837c"
            },
            {
              "introduced": "8a148a9a57eef8dc19db13d1423adcdaadd319d4"
            },
            {
              "fixed": "7ac93cffea828ca2d9514cfc6c0ad6337834aebe"
            },
            {
              "introduced": "a300a06a0da0dced695ef8df8404c7c4dffd337e"
            },
            {
              "fixed": "09771c903862d9865c4db4cf9fa383710e93a192"
            },
            {
              "introduced": "43e67d12e278e13399cffc77f132e8e628339477"
            },
            {
              "fixed": "5f4c56ce651a6f88f26ffab50b9b8aff4dd7143e"
            },
            {
              "introduced": "a056cb6577417b71f432084ff2a62a617a5246d9"
            },
            {
              "fixed": "f582ac45c89542a78e268980c5f8add0d62b9ac3"
            },
            {
              "introduced": "a82f2350165c701ce3cbb6260f849e26f4264f79"
            },
            {
              "fixed": "a300a06a0da0dced695ef8df8404c7c4dffd337e"
            }
          ],
          "repo": "https://github.com/coder/coder",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-9frj-7f83-x984"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126403.json"
  },
  "details": "Coder 2.26.0 before 2.29.24, 2.30.0 before 2.34.16, 2.35.0 before 2.36.11, 2.37.0 before 2.37.8, and 2.38.0 before 2.38.4 contains an improper authorization flaw in the external agent credentials endpoint, which returns the workspace agent token to users with only workspace read access rather than ssh permission. Authenticated users with roles such as Template Admin or Organization Admin can use the token to read the owner's private Git SSH key and Git provider OAuth tokens, and impersonate the agent to receive the owner's sessions.",
  "id": "CVE-2026-126403",
  "modified": "2026-11-15T02:30:49.279393312Z",
  "published": "2026-11-13T09:35:46.335Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126403.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/coder/coder/security/advisories/GHSA-9frj-7f83-x984"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126403"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/coder-2.38.0-before-2.38.4-authorization-bypass-via-external-agent-credentials-endpoint"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Coder 2.38.0 before 2.38.4 Authorization Bypass via External Agent Credentials Endpoint"
}