Skip to content
Heist/ feed
Back to feed
LowFix available

Coder accepts an APIKey beyond the linked OIDC expiry if there is no refresh token

Type: advisorySources: OSV2 source records

### Summary If users log in to Coder via OIDC, and the OpenID Identity Provider does not return a refresh token, then Coder may allow their web session to continue beyond the expiration of the token returned by the OpenID Identity Provider. ### Details When a user logs in via OIDC, Coder stores the OIDC token and refresh token (if any) in its datastore and sets an APIKey in the user's cookies. If there is a refresh token, then when the OIDC token is expired and a request is made with the APIKey, we attempt to refresh the OIDC token. If refresh fails, the Coder API request is also failed and the user needs to log in again. However, if there is no refresh token provided, then affected versions of Coder fail to enforce the expiry of the OIDC token, and allow users to make API requests even if it is expired so long as their APIKey stored in cookies has not expired. Coder APIKeys have an expiry and lifetime of 24 hours, but Coder is configured to extend the lifetime of the APIKey by up to 24 hours from the time it is used successfully. So, an APIKey that is used at least once every 24 hours will not expire. (This behavior can be disabled by configuration). ### Impact This could allow a user to access the Coder service beyond the lifetime of the token issued by the OpenID provider, potentially indefinitely, even if they are no loner authorized via OIDC.

Products
github.com/coder/coder, github.com/coder/coder/v2
Affected versions
Not specified
Fixed versions
2.23.0
CVEs
CVE-2025-71435
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 06:41 UTC · Revision 2

Source evidence

Coder accepts an APIKey beyond the linked OIDC expiry if there is no refresh token

core-osv · Original source

Published 28 Aug 2025, 19:36 UTC

### Summary If users log in to Coder via OIDC, and the OpenID Identity Provider does not return a refresh token, then Coder may allow their web session to continue beyond the expiration of the token returned by the OpenID Identity Provider. ### Details When a user logs in via OIDC, Coder stores the OIDC token and refresh token (if any) in its datastore and sets an APIKey in the user's cookies. If there is a refresh token, then when the OIDC token is expired and a request is made with the APIKey, we attempt to refresh the OIDC token. If refresh fails, the Coder API request is also failed and the user needs to log in again. However, if there is no refresh token provided, then affected versions of Coder fail to enforce the expiry of the OIDC token, and allow users to make API requests even if it is expired so long as their APIKey stored in cookies has not expired. Coder APIKeys have an expiry and lifetime of 24 hours, but Coder is configured to extend the lifetime of the APIKey by up to 24 hours from the time it is used successfully. So, an APIKey that is used at least once every 24 hours will not expire. (This behavior can be disabled by configuration). ### Impact This could allow a user to access the Coder service beyond the lifetime of the token issued by the OpenID provider, potentially indefinitely, even if they are no loner authorized via OIDC.

osv:GHSA-3rw9-wmc8-8948

github.com/coder/coder/v2

Fixed versions: 2.23.0

Complete source record
{
  "id": "f989484b64a14b3d38504bb239db9b7b9ae43d1e54f7623633d345340509fda6",
  "url": "https://osv.dev/vulnerability/GHSA-3rw9-wmc8-8948",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Coder accepts an APIKey beyond the linked OIDC expiry if there is no refresh token",
    "summary": "### Summary If users log in to Coder via OIDC, and the OpenID Identity Provider does not return a refresh token, then Coder may allow their web session to continue beyond the expiration of the token returned by the OpenID Identity Provider. ### Details When a user logs in via OIDC, Coder stores the OIDC token and refresh token (if any) in its datastore and sets an APIKey in the user's cookies. If there is a refresh token, then when the OIDC token is expired and a request is made with the APIKey, we attempt to refresh the OIDC token. If refresh fails, the Coder API request is also failed and the user needs to log in again. However, if there is no refresh token provided, then affected versions of Coder fail to enforce the expiry of the OIDC token, and allow users to make API requests even if it is expired so long as their APIKey stored in cookies has not expired. Coder APIKeys have an expiry and lifetime of 24 hours, but Coder is configured to extend the lifetime of the APIKey by up to 24 hours from the time it is used successfully. So, an APIKey that is used at least once every 24 hours will not expire. (This behavior can be disabled by configuration). ### Impact This could allow a user to access the Coder service beyond the lifetime of the token issued by the OpenID provider, potentially indefinitely, even if they are no loner authorized via OIDC.",
    "evidence": "osv:GHSA-3rw9-wmc8-8948",
    "products": [
      {
        "name": {
          "value": "github.com/coder/coder/v2",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.23.0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "low",
    "structured": {
      "id": "GHSA-3rw9-wmc8-8948",
      "aliases": [
        "CVE-2025-71435",
        "GHSA-3rw9-wmc8-8948",
        "GO-2025-3921"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.23.0"
                }
              ]
            }
          ],
          "package": {
            "name": "github.com/coder/coder/v2",
            "purl": "pkg:golang/github.com/coder/coder/v2",
            "ecosystem": "Go"
          },
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-3rw9-wmc8-8948/GHSA-3rw9-wmc8-8948.json"
          }
        }
      ],
      "modified": "2026-10-18T10:55:50.653723823Z",
      "provider": "osv",
      "references": [
        "https://github.com/coder/coder/security/advisories/GHSA-3rw9-wmc8-8948",
        "https://github.com/coder/coder/commit/1a4160803589034ce1518e24a78f232c8d08f996",
        "https://github.com/coder/coder"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-324"
        ],
        "severity": "LOW",
        "github_reviewed": true,
        "nvd_published_at": null,
        "github_reviewed_at": "2025-08-28T19:36:04Z"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-71435",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/database_specific/severity"
  },
  "source_id": "core-osv",
  "document_id": 370028,
  "published_at": "2025-08-28T19:36:04+00:00"
}

Coder accepts an APIKey beyond the linked OIDC expiry if there is no refresh token in github.com/coder/coder

core-osv · Original source

Published 8 Sept 2025, 14:13 UTC

Coder accepts an APIKey beyond the linked OIDC expiry if there is no refresh token in github.com/coder/coder

osv:GO-2025-3921

github.com/coder/coder

Fixed versions: Not specified

github.com/coder/coder/v2

Fixed versions: 2.23.0

Complete source record
{
  "id": "308958a2b03588ec2f4335a1d7365a097fc4573f60fd2e199d9a5a3976e671c6",
  "url": "https://osv.dev/vulnerability/GO-2025-3921",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Coder accepts an APIKey beyond the linked OIDC expiry if there is no refresh token in github.com/coder/coder",
    "summary": "Coder accepts an APIKey beyond the linked OIDC expiry if there is no refresh token in github.com/coder/coder",
    "evidence": "osv:GO-2025-3921",
    "products": [
      {
        "name": {
          "value": "github.com/coder/coder",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      },
      {
        "name": {
          "value": "github.com/coder/coder/v2",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.23.0",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "GO-2025-3921",
      "aliases": [
        "CVE-2025-71435",
        "GHSA-3rw9-wmc8-8948",
        "GO-2025-3921"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "github.com/coder/coder",
            "purl": "pkg:golang/github.com/coder/coder",
            "ecosystem": "Go"
          },
          "database_specific": {
            "source": "https://vuln.go.dev/ID/GO-2025-3921.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.23.0"
                }
              ]
            }
          ],
          "package": {
            "name": "github.com/coder/coder/v2",
            "purl": "pkg:golang/github.com/coder/coder/v2",
            "ecosystem": "Go"
          },
          "database_specific": {
            "source": "https://vuln.go.dev/ID/GO-2025-3921.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-18T10:55:50.653723823Z",
      "provider": "osv",
      "references": [
        "https://github.com/coder/coder/security/advisories/GHSA-3rw9-wmc8-8948",
        "https://github.com/coder/coder/commit/1a4160803589034ce1518e24a78f232c8d08f996"
      ],
      "provider_metadata": {
        "url": "https://pkg.go.dev/vuln/GO-2025-3921",
        "review_status": "UNREVIEWED"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-71435",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 370029,
  "published_at": "2025-09-08T14:13:10+00:00"
}