Inadequate Encryption Strength Affecting keypair Open this link in a new tab package, versions <1.0.4

  • Attack Complexity


  • Scope


  • Confidentiality


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-id


  • published

    12 Oct 2021

  • disclosed

    12 Oct 2021

  • credit

    Kevin Jones, Ross Wheeler, Dan Suceava

How to fix?

Upgrade keypair to version 1.0.4 or higher.


keypair is a Generate a RSA PEM key pair from pure JS

Affected versions of this package are vulnerable to Inadequate Encryption Strength. A bug in the pseudo-random number generator allows for weak RSA key generation. This could enable an attacker to decrypt confidential messages or gain authorized access to an account belonging to the victim.