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


0.0
high
  • Attack Complexity

    Low

  • Scope

    Changed

  • Confidentiality

    High

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

    SNYK-JS-KEYPAIR-1730326

  • 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.

Overview

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.