CVE-2026-75554

Explicit organization scopes survive token refresh after membership ends

State
Published
Severity
2.3 Low
Published
Aug 24, 2026
Updated
Aug 25, 2026
Reserved
Aug 18, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.02.3 LowCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:NEEF

Weaknesses

  • CWE-613 Insufficient Session Expiration

Affected Products

ProductVersions
hexpmhexpm
  • 2025-10-10 to before 2026-08-24Affected
hexpmhexpm
  • 650faa03af511e74c1b3b49ec12d35666b6984c4 to before 50cffd206490c49c92d7b63c8505949682abedb0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.