Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-65630

MEDIUM 5.9EPSS 4%

Timing side-channel in pure-Erlang X25519 scalar multiplication leaks the private key in jose

Mitigation

  • Upgrade jose to 1.11.13 or later.
  • Upgrade jose to 3670f873c274bba86fb7f5ee5727a7efa1322b79 or later.
  • Vendor workaround: Use a constant-time native X25519 implementation for private-key operations: install the libsodium or libdecaf NIF, or run on an OTP release whose crypto application provides x25519, and do not force the pure-Erlang Curve25519 fallback (JOSE.crypto_fallback(true) or JOSE.curve25519_module(:jose_jwa_curve25519)) for long-lived keys.

Who should check

  • Anyone running potatosalad jose >= 1.10.0, < 1.11.13
  • Anyone running potatosalad jose >= 8e532095de114ef4bf88a9ec5d651fa251a972b3, < 3670f873c274bba86fb7f5ee5727a7efa1322b79

Vulnerability facts

Affected
potatosalad jose >= 1.10.0, < 1.11.13; potatosalad jose >= 8e532095de114ef4bf88a9ec5d651fa251a972b3, < 3670f873c274bba86fb7f5ee5727a7efa1322b79
Fixed in
potatosalad jose 1.11.13, potatosalad jose 3670f873c274bba86fb7f5ee5727a7efa1322b79
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.9 (v4.0, CNA)CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Local
  • Attack complexity: High
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: High
  • Integrity impact: None
  • Availability impact: None
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.17% chance of exploitation in 30 days (percentile 4, 2026-11-26)
CWE
CWE-208
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
potatosalad jose>= 1.10.0, < 1.11.13—cvelist
potatosalad jose>= 8e532095de114ef4bf88a9ec5d651fa251a972b3, < 3670f873c274bba86fb7f5ee5727a7efa1322b79—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-65630. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-65630.md
Affected: potatosalad jose >= 1.10.0, < 1.11.13; potatosalad jose >= 8e532095de114ef4bf88a9ec5d651fa251a972b3, < 3670f873c274bba86fb7f5ee5727a7efa1322b79
Fixed in: potatosalad jose 1.11.13, potatosalad jose 3670f873c274bba86fb7f5ee5727a7efa1322b79

Steps:
1. Search this machine and project for potatosalad jose: 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.

References

FAQ

Is CVE-2026-65630 being exploited?

There is no confirmed exploitation: CVE-2026-65630 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-65630?

Medium: CVSS 5.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2026-65630?

potatosalad jose >= 1.10.0, < 1.11.13; potatosalad jose >= 8e532095de114ef4bf88a9ec5d651fa251a972b3, < 3670f873c274bba86fb7f5ee5727a7efa1322b79.

Is there a fix for CVE-2026-65630?

Yes. Fixed in potatosalad jose 1.11.13, potatosalad jose 3670f873c274bba86fb7f5ee5727a7efa1322b79. Upgrade jose to 1.11.13 or later. Upgrade jose to 3670f873c274bba86fb7f5ee5727a7efa1322b79 or later. Vendor workaround: Use a constant-time native X25519 implementation for private-key operations: install the libsodium or libdecaf NIF, or run on an OTP release whose crypto application provides x25519, and do not force the pure-Erlang Curve25519 fallback (JOSE.crypto_fallback(true) or JOSE.curve25519_module(:jose_jwa_curve25519)) for long-lived keys.

How do I check if I'm affected by CVE-2026-65630?

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.

Sponsors