Refresh tokens accepted as private repository credentials at the CDN
CVE-2026-86698Published 22 Sep 2026, 15:51 UTC
Real-world risk
0.8/ 10Low
Routine
If the vulnerable configuration applies to you: 1.7
PreliminaryFrom the CVSS vector only · confidence low
CVSS
2.3
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from EEF)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| hexpmNiche | >= 2025-10-10, < 2026-09-22 | 2026-09-22 |
What to do
Update to a fixed version: 2026-09-22.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 0.60 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- Reference tagged as exploit (link)
- CISA SSVC: proof of concept
EPSS 0.4% chance of exploitation in 30 days (percentile 37), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.270
- Threat T3: Public proof of concept0.950
- 10 × impact 0.3 × prerequisites 0.27 × threat 0.950.769
- Rounded to one decimal between 0.1 and 100.8
Exploitation and evidence timeline
- 22 Sep 2026 Published
- 3 Dec 2026 Reference tagged as exploit first seen
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 0.8 (cvss fallback)
Weakness
CWE-1462
References
- https://github.com/hexpm/hexpm/security/advisories/GHSA-vmw7-7g2w-gw2fexploit, related, vendor-advisory
- https://cna.erlef.org/cves/CVE-2026-86698.htmlrelated
- https://osv.dev/vulnerability/EEF-CVE-2026-86698related
- https://github.com/hexpm/hexpm/commit/650faa03af511e74c1b3b49ec12d35666b6984c4related
- https://github.com/hexpm/hexpm/commit/db58cf3a86c7639708ef52ff86de0b4f938e6360patch
- CVE-2026-86698 on CVE.org