Live threats

All CVEs / Otp-generator Project

CVE-2021-23451Otp-generator Project Otp-generator

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
0.9%
probability of exploitation in 30 days · percentile 62
Auth required
No
Published
Jul 25, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-330
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Otp-generator.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm otp-generator < 3.0.0 3.0.0 npm install otp-generator@3.0.0

Per OSV / GitHub Advisories (GHSA-6x93-h9g3-9phr). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
otp-generator_projectotp-generator< 3.0.0

Official sources

References

Links published by the sources. Open them with care.