---
id: CVE-2026-75554
title: >-
  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 …
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 …
severity: none
cwe:
  - CWE-613
published: '2026-08-24'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T21:10:00.227'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-75554'
references:
  - url: 'https://cna.erlef.org/cves/CVE-2026-75554.html'
    label: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
  - url: >-
      https://github.com/hexpm/hexpm/commit/50cffd206490c49c92d7b63c8505949682abedb0
    label: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
  - url: 'https://github.com/hexpm/hexpm/security/advisories/GHSA-24ww-j3f4-p49c'
    label: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
  - url: 'https://osv.dev/vulnerability/EEF-CVE-2026-75554'
    label: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
  - url: 'https://github.com/hexpm/hexpm/security/advisories/GHSA-24ww-j3f4-p49c'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.00427
epssPercentile: 0.35134
ingestedAt: '2026-10-12T22:05:40.345Z'
---

## Overview

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:<org> or docs:<org> 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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
