CVE-2026-86698
Vulnerabilidad de expiración de sesión insuficiente en la emisión de tokens OAuth en hexpm hexpm, que permite a un usuario cuya pertenencia a una organización o cuya sesión ha finalizado seguir leyendo los paquetes privados de la organización y sus tarballs de documentación mediante un token de actualización (refresh token) conservado.
generate_refresh_token/4 en lib/hexpm/oauth/jwt.ex firma el token de actualización con las mismas reclamaciones iss, aud y scope que el token de acceso, por lo que lleva los mismos ámbitos repository:<org>.
Leer descripción completaMostrar menos
El servicio CDN que sirve los repositorios privados verifica la firma y las reclamaciones de tiempo y, a continuación, autoriza a partir de la reclamación scope, sin consultar la base de datos y sin forma de distinguir ambos tipos de token. Por tanto, la eliminación de un miembro o la revocación de una sesión solo surte efecto en el CDN cuando caduca el token de actualización de 30 días, en lugar de tras la vida útil de 30 minutos del token de acceso. El acceso es de solo lectura y se limita a las organizaciones a las que pertenecía la cuenta cuando se concedió el token.
Este fallo afecta a hex.pm: desde el 2025-10-10 hasta antes del 2026-09-22; hexpm/hexpm: desde 650faa03af511e74c1b3b49ec12d35666b6984c4 hasta antes de db58cf3a86c7639708ef52ff86de0b4f938e6360.
Traducción automática del texto original de NVD (en inglés).
Cronología
Elaborada con nuestros propios datos: NVD, CISA KEV y otros catálogos de explotación, FIRST EPSS, exploits públicos, prensa especializada y la cobertura de Orbitaley.
- Registro CVE publicado en NVD
- Última modificación del registro en NVD
Técnicas ATT&CK
Cómo se explota esta vulnerabilidad y qué consigue el atacante, en el lenguaje de MITRE ATT&CK.
- Explotación
T1210Exploitation of Remote Serviceslateral movement60 %
Inferido por reglas deterministas a partir del vector CVSS y la CWE. Solo orientativo.
Mitigaciones ATT&CK que cubren estas técnicas
Tecnologías afectadas (1)
⚠ Inferidas por IA a partir de la descripción — NVD aún no ha analizado esta CVE; no son CPE verificados.
Registro NVD
- Estado en NVD
- Aplazada
- Publicada
- 22 sept 2026
- Última modificación
- 20 nov 2026
- Vector CVSS
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- Debilidad (CWE)
- CWE-613
Referencias
- Parchegithub.com/hexpm/hexpm/commit/650faa03af511e74c1b3b49ec12d35666…
- Parchegithub.com/hexpm/hexpm/commit/db58cf3a86c7639708ef52ff86de0b4f9…
- Referenciacna.erlef.org/cves/CVE-2026-86698.html
- Referenciagithub.com/hexpm/hexpm/security/advisories/GHSA-vmw7-7g2w-gw2f
- Referenciaosv.dev/vulnerability/EEF-CVE-2026-86698
JSON original (NVD)
Mostrar
{
"id": "CVE-2026-86698",
"cveTags": [],
"metrics": {
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2026-86698",
"role": "CISA Coordinator",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-09-22T18:05:56.100145Z"
}
}
],
"cvssMetricV40": [
{
"type": "Secondary",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"cvssData": {
"Safety": "NOT_DEFINED",
"version": "4.0",
"Recovery": "NOT_DEFINED",
"baseScore": 2.3,
"Automatable": "NOT_DEFINED",
"attackVector": "NETWORK",
"baseSeverity": "LOW",
"valueDensity": "NOT_DEFINED",
"vectorString": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"exploitMaturity": "NOT_DEFINED",
"providerUrgency": "NOT_DEFINED",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"privilegesRequired": "LOW",
"subIntegrityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"integrityRequirement": "NOT_DEFINED",
"modifiedAttackVector": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"vulnAvailabilityImpact": "NONE",
"availabilityRequirement": "NOT_DEFINED",
"modifiedUserInteraction": "NOT_DEFINED",
"modifiedAttackComplexity": "NOT_DEFINED",
"subConfidentialityImpact": "LOW",
"vulnConfidentialityImpact": "LOW",
"confidentialityRequirement": "NOT_DEFINED",
"modifiedAttackRequirements": "NOT_DEFINED",
"modifiedPrivilegesRequired": "NOT_DEFINED",
"modifiedSubIntegrityImpact": "NOT_DEFINED",
"modifiedVulnIntegrityImpact": "NOT_DEFINED",
"vulnerabilityResponseEffort": "NOT_DEFINED",
"modifiedSubAvailabilityImpact": "NOT_DEFINED",
"modifiedVulnAvailabilityImpact": "NOT_DEFINED",
"modifiedSubConfidentialityImpact": "NOT_DEFINED",
"modifiedVulnConfidentialityImpact": "NOT_DEFINED"
}
}
]
},
"affected": [
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"affectedData": [
{
"cpes": [
"cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*"
],
"vendor": "hexpm",
"modules": [
"'Elixir.Hexpm.OAuth.JWT'",
"'Elixir.Hexpm.OAuth.Tokens'"
],
"product": "hexpm",
"versions": [
{
"status": "affected",
"version": "2025-10-10",
"lessThan": "2026-09-22",
"versionType": "date"
}
],
"packageName": "hex.pm",
"programFiles": [
"lib/hexpm/oauth/jwt.ex",
"lib/hexpm/oauth/tokens.ex"
],
"collectionURL": "https://hex.pm",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "'Elixir.Hexpm.OAuth.JWT':generate_refresh_token/4"
},
{
"name": "'Elixir.Hexpm.OAuth.Tokens':create_for_user/6"
}
]
},
{
"cpes": [
"cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/hexpm/hexpm",
"vendor": "hexpm",
"modules": [
"'Elixir.Hexpm.OAuth.JWT'",
"'Elixir.Hexpm.OAuth.Tokens'"
],
"product": "hexpm",
"versions": [
{
"status": "affected",
"version": "650faa03af511e74c1b3b49ec12d35666b6984c4",
"lessThan": "db58cf3a86c7639708ef52ff86de0b4f938e6360",
"versionType": "git"
}
],
"packageURL": "pkg:github/hexpm/hexpm",
"packageName": "hexpm/hexpm",
"programFiles": [
"lib/hexpm/oauth/jwt.ex",
"lib/hexpm/oauth/tokens.ex"
],
"collectionURL": "https://github.com",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "'Elixir.Hexpm.OAuth.JWT':generate_refresh_token/4"
},
{
"name": "'Elixir.Hexpm.OAuth.Tokens':create_for_user/6"
}
]
}
]
}
],
"published": "2026-09-22T16:18:05.993",
"references": [
{
"url": "https://cna.erlef.org/cves/CVE-2026-86698.html",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://github.com/hexpm/hexpm/commit/650faa03af511e74c1b3b49ec12d35666b6984c4",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://github.com/hexpm/hexpm/commit/db58cf3a86c7639708ef52ff86de0b4f938e6360",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://github.com/hexpm/hexpm/security/advisories/GHSA-vmw7-7g2w-gw2f",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-86698",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://github.com/hexpm/hexpm/security/advisories/GHSA-vmw7-7g2w-gw2f",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
}
],
"vulnStatus": "Deferred",
"descriptions": [
{
"lang": "en",
"value": "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.\n\ngenerate_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.\n\nThis issue affects hex.pm: from 2025-10-10 before 2026-09-22; hexpm/hexpm: from 650faa03af511e74c1b3b49ec12d35666b6984c4 before db58cf3a86c7639708ef52ff86de0b4f938e6360."
}
],
"lastModified": "2026-11-20T06:17:43.383",
"sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
}