{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.38.0"
                  },
                  {
                    "fixed": "2.38.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "2.37.0"
                  },
                  {
                    "fixed": "2.37.6"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "2.36.0"
                  },
                  {
                    "fixed": "2.36.9"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "2.30.0"
                  },
                  {
                    "fixed": "2.34.14"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "2.24.0"
                  },
                  {
                    "fixed": "2.29.23"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "2.35.0"
                  },
                  {
                    "fixed": "2.36.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "c3c6a672821e8ac2472c45f3be7a3c600aa8dae1"
            },
            {
              "fixed": "31290e6db4f16bf29025fe13a975b71bea691fca"
            },
            {
              "introduced": "8a148a9a57eef8dc19db13d1423adcdaadd319d4"
            },
            {
              "fixed": "c57613f858ba063507e4106ec3a7ce683df4d1d2"
            },
            {
              "introduced": "a300a06a0da0dced695ef8df8404c7c4dffd337e"
            },
            {
              "fixed": "36897aef4baae747ee6bca483acd39be3994fdab"
            },
            {
              "introduced": "43e67d12e278e13399cffc77f132e8e628339477"
            },
            {
              "fixed": "2d0907e2319818740fadbf742c093d997d40cce8"
            },
            {
              "introduced": "e5a74a775db34d6be3276d7d4f0ab5e7e1c07ec9"
            },
            {
              "fixed": "25a931e0225fd02eb02f08f787d4c72f85699088"
            },
            {
              "introduced": "a82f2350165c701ce3cbb6260f849e26f4264f79"
            },
            {
              "fixed": "a300a06a0da0dced695ef8df8404c7c4dffd337e"
            }
          ],
          "repo": "https://github.com/coder/coder",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-2x8w-q434-f76p"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-201"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126308.json"
  },
  "details": "The web dashboard in Coder 2.24.0 before 2.29.23, 2.30.0 before 2.34.14, 2.35.0 before 2.36.9, 2.37.0 before 2.37.6, and 2.38.0 before 2.38.2 replaces the $SESSION_TOKEN placeholder in external app URLs with a full-access API key without checking whether the app belongs to a sub-agent. Code running in a workspace can register a disguised sub-agent app with a custom protocol URL, so the owner's click sends their API key to an attacker-chosen destination.",
  "id": "CVE-2026-126308",
  "modified": "2026-11-15T02:30:42.445809304Z",
  "published": "2026-11-13T09:36:20.400Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126308.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/coder/coder/security/advisories/GHSA-2x8w-q434-f76p"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126308"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/coder-2.38.0-before-2.38.2-session-token-leak-via-sub-agent-external-apps"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Coder 2.38.0 before 2.38.2 Session Token Leak via Sub-Agent External Apps"
}