Vulnerability · Published Jul 25, 2022 · Assigned by snyk

CVE-2021-23451Insecure Randomness

Medium 6.5

In plain English

A medium-severity security flaw in otp-generator. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.9%top 39.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

The package otp-generator before 3.0.0 are vulnerable to Insecure Randomness due to insecure generation of random one-time passwords, which may allow a brute-force attack.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmotp-generator3.0.0GHSA-6x93-h9g3-9phr

Affected products (as reported)

VendorProductVersions
n/a otp-generator unspecified – before 3.0.0

References