Uncontrolled Recursion Affecting jose package, versions >=1.5.0 <1.11.13


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-HEX-JOSE-21755451
  • published27 Oct 2026
  • disclosed26 Oct 2026
  • creditUnknown

Introduced: 26 Oct 2026

NewCVE-2026-65628  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade jose to version 1.11.13 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion via 'jose_jwk:shared_secret/2' (exposed in Elixir as JOSE.JWK.shared_secret/2) derives an ECDH shared secret from two JWKs. When provided with two JWKs of differing key types (such as EC and RSA), its fallback clause repeatedly re-invokes itself with the unchanged inputs, triggering an infinite tail-recursive loop that never terminates or crashes. An unauthenticated attacker supplying a mismatched public key can trap an Erlang scheduler at 100% CPU usage, rapidly exhausting all available schedulers and causing a denial of service.

CVSS Base Scores

version 4.0
version 3.1