SecurityContext

CVE-2021-23451: otp-generator - Broken Authentication

  • Cve: CVE-2021-23451
  • Name: otp-generator - Broken Authentication
  • 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.
  • Impact: Attackers can perform brute-force attacks to guess OTPs, potentially compromising authentication mechanisms.
  • Remediation: Update to version 3.0.0 or later.
  • Vulnerability type: weak_cryptography
  • Vulnerability impact: broken_authentication
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00931
  • Epss percentile: 0.61563
  • Assignee: [email protected]
  • Published at: 2022-07-25T14:15:10Z
  • Age in days: 1583
  • Modified at: 2026-06-17T03:38:47Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-23451
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-330Use of Insufficiently Random Values

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/Maheshkumar-Kakade/otp-generator/commit/b27de1ce439ae7f533cec26677e9698671275b70Patch, Third Party Advisory
https://security.snyk.io/vuln/SNYK-JS-OTPGENERATOR-1655480Issue Tracking, Patch, Third Party Advisory
https://github.com/Maheshkumar-Kakade/otp-generator/issues/12Issue Tracking, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
otp-generator_project:otp-generator< 3.0.0nonvd/v1/products/otp-generator_project/otp-generator

Projects

RepositoryLink kindsIndexedUrl
Maheshkumar-Kakade/otp-generatorcommit, fix, issues, packageyes/v1/repositories/Maheshkumar-Kakade/otp-generator

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts