CVE-2026-86698
Refresh tokens accepted as private repository credentials at the CDN
Mitigation
- Upgrade hexpm to 2026-09-22 or later.
Who should check
- Anyone running hexpm >= 2025-10-10, < 2026-09-22
- Anyone running hexpm >= 650faa03af511e74c1b3b49ec12d35666b6984c4, < db58cf3a86c7639708ef52ff86de0b4f938e6360
Vulnerability facts
- Affected
- hexpm >= 2025-10-10, < 2026-09-22; hexpm >= 650faa03af511e74c1b3b49ec12d35666b6984c4, < db58cf3a86c7639708ef52ff86de0b4f938e6360
- Fixed in
- hexpm 2026-09-22
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 2.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: Low
- User interaction: None
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: Low
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.47% chance of exploitation in 30 days (percentile 32, 2026-11-26)
- CWE
- CWE-1462
- Modified
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-86698. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-86698.md Affected: hexpm >= 2025-10-10, < 2026-09-22; hexpm >= 650faa03af511e74c1b3b49ec12d35666b6984c4, < db58cf3a86c7639708ef52ff86de0b4f938e6360 Fixed in: hexpm 2026-09-22 Steps: 1. Search this machine and project for hexpm: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-86698 being exploited?
There is no confirmed exploitation: CVE-2026-86698 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.47% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-86698?
Low: CVSS 2.3 (v4.0, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2026-86698?
hexpm >= 2025-10-10, < 2026-09-22; hexpm >= 650faa03af511e74c1b3b49ec12d35666b6984c4, < db58cf3a86c7639708ef52ff86de0b4f938e6360.
Is there a fix for CVE-2026-86698?
Yes. Fixed in hexpm 2026-09-22. Upgrade hexpm to 2026-09-22 or later.
How do I check if I'm affected by CVE-2026-86698?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.