CVE-2026-65628 Details
Description
jose_jwk:shared_secret/2 (exposed in Elixir as JOSE.JWK.shared_secret/2) derives an ECDH shared secret from two JWKs. Its first function clause only matches when both JWKs carry the same key type (kty) module, and its fallback clause re-invokes itself as shared_secret(from(YourJWK), from(MyJWK)). Because from/1 returns an already-parsed jose_jwk record unchanged, passing two JWKs whose key types differ (for example an EC key and an RSA key) makes the fallback clause re-enter with identical arguments, producing an unbounded tail-recursive loop that never returns and never crashes. An application that derives a shared secret from an externally supplied peer public key without first checking that the peer key's type and curve match its own key can be driven into this loop by an attacker-controlled JWK, pinning an Erlang scheduler at 100% CPU. Repeated requests exhaust the available schedulers, resulting in a denial of service. This issue affects jose: from 1.5.0 before 1.11.13.
A denial-of-service vulnerability has been identified in the JOSE library's JWK module, specifically in the shared_secret/2 function. This vulnerability arises from improper handling of JSON Web Keys (JWKs) with mismatched key types. When the function is called with JWKs of different types, it enters an infinite recursion, consuming CPU resources without crashing. This issue affects JOSE versions 1.5.0 prior to 1.11.13.
Upgrade to JOSE version 1.11.13 or later, where this vulnerability has been fixed. If an upgrade is not possible, verify that both JWKs have the same key type and curve before calling the shared_secret/2 function.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 26, 2026CISA-ADP
Assessed Nov 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/potatosalad/erlang-jose/security/advisories/GHSA-fpj2-9h59-32pp | CISA-ADP | AdvisoryExploitRemedy |
| https://cna.erlef.org/cves/CVE-2026-65628.html | EEF | AdvisoryRemedy |
| https://github.com/potatosalad/erlang-jose/commit/26182a7de63b91550035d3f08741f7d17f1f675a | EEF | Source CodeVendor |
| https://github.com/potatosalad/erlang-jose/commit/7b80b9f55b9898e1a6901ce136061b241b021d7c | EEF | Source CodeVendor |
| https://github.com/potatosalad/erlang-jose/security/advisories/GHSA-fpj2-9h59-32pp | EEF | AdvisoryExploitRemedy |
| https://osv.dev/vulnerability/EEF-CVE-2026-65628 | EEF | AdvisoryRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-674 | Uncontrolled Recursion | EEF |
Affected Products
| Product | Versions |
|---|---|
| potatosalad jose | >= 1.5.0, < 1.11.13 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 2, 2026 | CVE Modified | CISA-ADP |
| Oct 26, 2026 | New CVE Received | EEF |
Volerion