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
| Id | Name |
|---|---|
| CWE-330 | Use of Insufficiently Random Values |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/Maheshkumar-Kakade/otp-generator/commit/b27de1ce439ae7f533cec26677e9698671275b70 | Patch, Third Party Advisory |
| https://security.snyk.io/vuln/SNYK-JS-OTPGENERATOR-1655480 | Issue Tracking, Patch, Third Party Advisory |
| https://github.com/Maheshkumar-Kakade/otp-generator/issues/12 | Issue Tracking, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| otp-generator_project:otp-generator | < 3.0.0 | no | nvd | /v1/products/otp-generator_project/otp-generator |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| Maheshkumar-Kakade/otp-generator | commit, fix, issues, package | yes | /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