Vulnerabilities/

agent-js: Insecure Key Generation in `Ed25519KeyIdentity.generate` - @dfinity/identity

Severity:
High

Description

The library offers a function to generate an ed25519 key pair via Ed25519KeyIdentity.generate with an optional param to provide a 32 byte seed value, which will then be used as the secret key. When no seed value is provided, it is expected that the library generates the secret key using secure randomness.

Recommendation

Update the @dfinity/identity package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@dfinity/identity
Anything's wrong? Let us know Last updated on March 21, 2026