Vulnerability library
Security checkFebruary 01, 2023

Insecure random number generation in keypair

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmkeypair

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

A bug in the pseudo-random number generator used by keypair versions up to and including 1.0.3 could allow 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. We recommend replacing any RSA keys that were generated using keypair version 1.0.

Recommendation

Update the keypair package to the latest compatible version. Followings are version details:

  • Affected version(s): < 1.0.4
  • Patched version(s): 1.0.4

References

Could your website be exposed too?

SmartScanner can check your website for Insecure random number generation in keypair and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated February 01, 2023