CVE-2024-1631
JavaScript vulnerability analysis and mitigation

Overview

A critical vulnerability was discovered in the Ed25519KeyIdentity.generate function of the @dfinity/identity and @dfinity/auth-client packages (versions >= v0.20.0-beta.0, < 1.0.1). The vulnerability was disclosed on February 20, 2024, and affects the key pair generation functionality when no seed value is provided (DFINITY Advisory).

Technical details

The vulnerability occurs in the Ed25519KeyIdentity.generate function, which is designed to generate an ed25519 key pair. When no seed value is provided, the function should generate a secure random seed for the secret key. However, a recent change compromised this functionality, causing the function to use an insecure seed for key pair generation. The vulnerability has been assigned a CVSS v3.1 score of 9.1 (Critical) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (DFINITY Advisory).

Impact

The impact of this vulnerability is severe as it compromises the security of generated identities. Specifically, the private key of the identity with principal 535yc-uxytb-gfk7h-tny7p-vjkoe-i4krp-3qmcl-uqfgr-cpgej-yqtjq-rqe is compromised. This could lead to loss of funds associated with the principal on ledgers or loss of access to canisters where this principal is the controller (DFINITY Advisory).

Mitigation and workarounds

A patch has been released in version 1.0.1 of the affected packages. For users unable to upgrade immediately, two temporary workarounds are available: 1) Invoke the function as Ed25519KeyIdentity.generate(null) to force secure random seed generation, or 2) Pass a securely generated randomness as a seed to Ed25519KeyIdentity.generate. Users should also check their canisters for the compromised principal and remove it if found, and transfer any funds from affected wallets to new accounts (DFINITY Advisory, NPM Package).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23947CRITICAL9.3
  • JavaScriptJavaScript
  • @orval/core
NoYesJan 20, 2026
CVE-2026-23950HIGH8.8
  • JavaScriptJavaScript
  • grafana-graphite
NoYesJan 20, 2026
CVE-2026-22037HIGH8.4
  • JavaScriptJavaScript
  • @fastify/express
NoYesJan 19, 2026
CVE-2026-23522LOW3.7
  • JavaScriptJavaScript
  • @lobehub/chat
NoNoJan 19, 2026
CVE-2025-66803LOW1.7
  • JavaScriptJavaScript
  • @hotwired/turbo
NoYesJan 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management