# CVE-2026-86698: Refresh tokens accepted as private repository credentials at the CDN

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 2.3
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.47% (percentile 32, 2026-11-26)
- **CWE:** CWE-1462
- **Published:** 2026-09-22T15:51:57.998Z
- **Modified:** 2026-11-20T06:17:43.383Z

## Who should check

- Anyone running hexpm \>= 2025-10-10, \< 2026-09-22
- Anyone running hexpm \>= 650faa03af511e74c1b3b49ec12d35666b6984c4, \< db58cf3a86c7639708ef52ff86de0b4f938e6360

## 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

- hexpm: \>= 2025-10-10, \< 2026-09-22 (cvelist)
- hexpm: \>= 650faa03af511e74c1b3b49ec12d35666b6984c4, \< db58cf3a86c7639708ef52ff86de0b4f938e6360 (cvelist)

## Mitigation

- Upgrade hexpm to 2026-09-22 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/hexpm/hexpm/security/advisories/GHSA-vmw7-7g2w-gw2f>
- patch: <https://github.com/hexpm/hexpm/commit/650faa03af511e74c1b3b49ec12d35666b6984c4>
- patch: <https://github.com/hexpm/hexpm/commit/db58cf3a86c7639708ef52ff86de0b4f938e6360>
- other: <https://cna.erlef.org/cves/CVE-2026-86698.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-86698>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-86698>

HTML: <https://flawdb.com/CVE-2026-86698> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-86698>
