Inadequate Encryption Strength Affecting keypair package, versions <1.0.4


0.0
high

Snyk CVSS

    Attack Complexity Low
    Scope Changed
    Confidentiality High

    Threat Intelligence

    EPSS 0.26% (66th percentile)
Expand this section
NVD
9.1 critical

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.