CVE-2026-86698

Refresh tokens accepted as private repository credentials at the CDN

Published Sep 22, 2026 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
Description
Insufficient Session Expiration vulnerability in OAuth token issuance in hexpm hexpm allows a user whose organization membership or session has ended to keep reading the organization's private packages and their documentation tarballs via a retained refresh token.

generate_refresh_token/4 in lib/hexpm/oauth/jwt.ex signs the refresh token with the same iss, aud and scope claims as the access token, so it carries the same repository:<org> scopes. The CDN service that serves private repositories verifies the signature and time claims and then authorizes from the scope claim, with no database lookup and no way to tell the two token kinds apart. Removing a member or revoking a session therefore takes effect at the CDN only when the 30 day refresh token expires, instead of after the 30 minute access token lifetime. Access is read-only and limited to organizations the account belonged to when the token was granted.

This issue affects hex.pm: from 2025-10-10 before 2026-09-22; hexpm/hexpm: from 650faa03af511e74c1b3b49ec12d35666b6984c4 before db58cf3a86c7639708ef52ff86de0b4f938e6360.

Analysis

AI-generated

Technical impact

The flaw occurs because a refresh token is signed with the same issuer, audience, and scope claims as an access token, and the CDN that serves private repositories accepts any token with a valid signature and expiry without verifying whether it is a refresh or an access token. Consequently, a user whose organization membership or session has ended continues to receive read‑only access to the organization’s private packages and documentation tarballs until the 30‑day refresh token expires, instead of immediately after the session is revoked. This results in unintended exposure of data restricted to the organization, limited to the scope of the original token; the weakness is a CWE‑1462 type, an insufficient session expiration flaw.

Affected Systems

The affected vendor is hexpm, product hexpm. Versions from 2025‑10‑10 up to but not including 2026‑09‑22 contain the flaw.

Risk and Exploitability

The CVSS score of 2.3 classifies the issue as low severity. The EPSS score is 0.00466, indicating a very low but non‑zero likelihood of exploitation, and it is not listed in the CISA KEV catalog. Based on the description, the likely attack vector is possession or exposure of a valid refresh token; an attacker can then use this token to read private artifacts from any organization the token was issued for. Because the CDN performs no database lookup to differentiate token types, the token remains valid for up to 30 days even after the associated session has been revoked. The exploit does not provide code execution but allows unauthorized read‑only access.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade hexpm to a release issued after 2026‑09‑22 that fixes the refresh‑token handling logic.
  • Configure the CDN or service layer to enforce a token‑type check or a database lookup for repository scopes, rejecting refresh tokens as repository credentials.
  • If an upgrade cannot be performed immediately, revoke all existing refresh tokens for affected organizations and force users to re‑authenticate, thereby limiting the window of exposure.

Generated by OpenCVE AI on November 22, 2026 at 21:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Insufficient Session Expiration vulnerability in OAuth token issuance in hexpm hexpm allows a user whose organization membership or session has ended to keep reading the organization's private packages and their documentation tarballs via a retained refresh token. generate_refresh_token/4 in lib/hexpm/oauth/jwt.ex signs the refresh token with the same iss, aud and scope claims as the access token, so it carries the same repository:<org> scopes. The CDN service that serves private repositories verifies the signature and time claims and then authorizes from the scope claim, with no database lookup and no way to tell the two token kinds apart. Removing a member or revoking a session therefore takes effect at the CDN only when the 30 day refresh token expires, instead of after the 30 minute access token lifetime. Access is read-only and limited to organizations the account belonged to when the token was granted. This issue affects hex.pm: from 2025-10-10 before 2026-09-22. Insufficient Session Expiration vulnerability in OAuth token issuance in hexpm hexpm allows a user whose organization membership or session has ended to keep reading the organization's private packages and their documentation tarballs via a retained refresh token. generate_refresh_token/4 in lib/hexpm/oauth/jwt.ex signs the refresh token with the same iss, aud and scope claims as the access token, so it carries the same repository:<org> scopes. The CDN service that serves private repositories verifies the signature and time claims and then authorizes from the scope claim, with no database lookup and no way to tell the two token kinds apart. Removing a member or revoking a session therefore takes effect at the CDN only when the 30 day refresh token expires, instead of after the 30 minute access token lifetime. Access is read-only and limited to organizations the account belonged to when the token was granted. This issue affects hex.pm: from 2025-10-10 before 2026-09-22; hexpm/hexpm: from 650faa03af511e74c1b3b49ec12d35666b6984c4 before db58cf3a86c7639708ef52ff86de0b4f938e6360.
Type Values Removed Values Added
Weaknesses CWE-613
Type Values Removed Values Added
Weaknesses CWE-1462
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Insufficient Session Expiration vulnerability in OAuth token issuance in hexpm hexpm allows a user whose organization membership or session has ended to keep reading the organization's private packages and their documentation tarballs via a retained refresh token. generate_refresh_token/4 in lib/hexpm/oauth/jwt.ex signs the refresh token with the same iss, aud and scope claims as the access token, so it carries the same repository:<org> scopes. The CDN service that serves private repositories verifies the signature and time claims and then authorizes from the scope claim, with no database lookup and no way to tell the two token kinds apart. Removing a member or revoking a session therefore takes effect at the CDN only when the 30 day refresh token expires, instead of after the 30 minute access token lifetime. Access is read-only and limited to organizations the account belonged to when the token was granted. This issue affects hex.pm: from 2025-10-10 before 2026-09-22.
Title Refresh tokens accepted as private repository credentials at the CDN
First Time appeared Hexpm
Hexpm hexpm
Weaknesses CWE-613
CPEs cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*
Vendors & Products Hexpm
Hexpm hexpm
References
Metrics cvssV4_0

{'score': 2.3, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
EEF
Published
Updated
Nov 20, 2026, 6:02 AM
Reserved
Sep 17, 2026, 2:30 PM
Status
Deferred
Published
Sep 22, 2026, 4:18 PM
Modified
Nov 20, 2026, 6:17 AM