EEF-CVE-2026-75554: Explicit organization scopes survive token refresh after membership ends

Published Aug 24, 2026
·
Updated

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.

expandrepositoriesscope/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 grantedscopes, 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; hexpm/hexpm: from 650faa03af511e74c1b3b49ec12d35666b6984c4 before 50cffd206490c49c92d7b63c8505949682abedb0.

Other sources

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.

expandrepositoriesscope/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 grantedscopes, 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; hexpm/hexpm: from 650faa03af511e74c1b3b49ec12d35666b6984c4 before 50cffd206490c49c92d7b63c8505949682abedb0.

— OSV

Affected Software

2 affected components
Hex hex.pm>=2025-10-10<2026-08-24
Hex hexpm/hexpm>=650faa03af511e74c1b3b49ec12d35666b6984c4<50cffd206490c49c92d7b63c8505949682abedb0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade hexpm/hexpm to a version that resolves this vulnerability.

    Patch 50cffd206490c49c92d7b63c8505949682abedb0

Event History

Aug 24, 2026
CVE Published
via OSV·08:15 PM
Data Sourced
via OSV·08:15 PM
DescriptionSeverityWeakness
Nov 20, 2026
Updated
via OSV·06:15 AM
Description
Updated
via OSV·08:00 AM
Description

Frequently Asked Questions

1

Who can retain access after being removed from an organization?

A user whose token was granted an explicit repository:<org> or docs:<org> scope can retain read access to that organization's private packages after their membership ends. The issue does not describe the same behavior for the literal repositories scope, which is rewritten during refresh.

2

What must an attacker or former member do to continue accessing private packages?

They need an existing refresh token associated with the explicitly granted organization scope and must continue using the OAuth refresh grant. Each refresh reproduces the organization scope without rechecking current organization membership.

3

How long can the retained access last?

Access can persist for up to the 30-day refresh token lifetime, rather than ending with the 30-minute access token lifetime, as long as the former member keeps refreshing the token.

4

Which deployments are affected?

Affected hex.pm deployments are those from 2025-10-10 before 2026-08-24. For hexpm/hexpm, affected revisions run from 650faa03af511e74c1b3b49ec12d35666b6984c4 before 50cffd206490c49c92d7b63c8505949682abedb0.

5

Why does removing the user from the organization not immediately stop package reads?

Both CDN edges authorize repository access from the token claim and do not query the database. A refreshed token containing the preserved organization scope therefore continues to authorize reads despite the membership change.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203