Skip to content
Heist/ feed
Back to feed
Low

Explicit organization scopes survive token refresh after membership ends

Type: advisorySources: OSV

Insufficient Session Expiration vulnerability in the OAuth token refresh grant in hexpm hexpm allows a user removed from an organization to keep reading its private packages. expand_repositories_scope/3 in lib/hexpm/permissions.ex only rewrites the literal repositories scope, so an explicitly granted repository: or docs: scope passes through it untouched. The refresh grant re-derives a new token from the stored granted_scopes, which holds that expanded form, so every refresh reproduces the organization scope without revisiting membership. Because both CDN edges authorize repository access from the token claim without querying the database, an account removed from an organization retains read access for as long as it keeps refreshing, bounded by the 30 day refresh token lifetime rather than the 30 minute access token lifetime. This issue affects hex.pm: from 2025-10-10 before 2026-08-24.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-75554
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 13:38 UTC · Revision 1

Source evidence

Explicit organization scopes survive token refresh after membership ends

core-osv · Original source

Published 24 Aug 2026, 20:15 UTC

Insufficient Session Expiration vulnerability in the OAuth token refresh grant in hexpm hexpm allows a user removed from an organization to keep reading its private packages. expand_repositories_scope/3 in lib/hexpm/permissions.ex only rewrites the literal repositories scope, so an explicitly granted repository: or docs: scope passes through it untouched. The refresh grant re-derives a new token from the stored granted_scopes, which holds that expanded form, so every refresh reproduces the organization scope without revisiting membership. Because both CDN edges authorize repository access from the token claim without querying the database, an account removed from an organization retains read access for as long as it keeps refreshing, bounded by the 30 day refresh token lifetime rather than the 30 minute access token lifetime. This issue affects hex.pm: from 2025-10-10 before 2026-08-24.

osv:CVE-2026-75554
Complete source record
{
  "id": "9472d9289f270d334a40c9a9085c75fdae88751a5a32aa54ab198814d1a7d2f7",
  "url": "https://osv.dev/vulnerability/CVE-2026-75554",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Explicit organization scopes survive token refresh after membership ends",
    "summary": "Insufficient Session Expiration vulnerability in the OAuth token refresh grant in hexpm hexpm allows a user removed from an organization to keep reading its private packages. expand_repositories_scope/3 in lib/hexpm/permissions.ex only rewrites the literal repositories scope, so an explicitly granted repository: or docs: scope passes through it untouched. The refresh grant re-derives a new token from the stored granted_scopes, which holds that expanded form, so every refresh reproduces the organization scope without revisiting membership. Because both CDN edges authorize repository access from the token claim without querying the database, an account removed from an organization retains read access for as long as it keeps refreshing, bounded by the 30 day refresh token lifetime rather than the 30 minute access token lifetime. This issue affects hex.pm: from 2025-10-10 before 2026-08-24.",
    "evidence": "osv:CVE-2026-75554",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2026-75554",
      "aliases": [
        "CVE-2026-75554",
        "EEF-CVE-2026-75554",
        "GHSA-24ww-j3f4-p49c"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/hexpm/hexpm",
              "type": "GIT",
              "events": [
                {
                  "introduced": "650faa03af511e74c1b3b49ec12d35666b6984c4"
                },
                {
                  "fixed": "50cffd206490c49c92d7b63c8505949682abedb0"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "650faa03af511e74c1b3b49ec12d35666b6984c4"
                      },
                      {
                        "fixed": "50cffd206490c49c92d7b63c8505949682abedb0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "50cffd206490c49c92d7b63c8505949682abedb0"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-75554.json"
          }
        }
      ],
      "modified": "2026-10-21T02:53:50.000739527Z",
      "provider": "osv",
      "references": [
        "https://cna.erlef.org/cves/CVE-2026-75554.html",
        "https://github.com",
        "https://hex.pm",
        "https://osv.dev/vulnerability/EEF-CVE-2026-75554",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/75xxx/CVE-2026-75554.json",
        "https://github.com/hexpm/hexpm/security/advisories/GHSA-24ww-j3f4-p49c",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-75554",
        "https://github.com/hexpm/hexpm/commit/50cffd206490c49c92d7b63c8505949682abedb0",
        "https://github.com/hexpm/hexpm"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-613"
        ],
        "cna_assigner": "EEF",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2025-10-10"
                  },
                  {
                    "fixed": "2026-08-24"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/75xxx/CVE-2026-75554.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-75554",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 391539,
  "published_at": "2026-08-24T20:15:05.791+00:00"
}