What’s Vulnerable › Vulnerabilities
CVE-2021-23451: Insecure Randomness
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-07-25 · updated 2026-06-17
- Weakness: CWE-330
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 products
- otp-generator: before 3.0.0 — fixed in 3.0.0
How to fix
Upgrade to a fixed version: otp-generator 3.0.0. Check the vendor advisory for mitigations.
References
- https://github.com/Maheshkumar-Kakade/otp-generator/commit/b27de1ce439ae7f533cec26677e9698671275b70
- https://github.com/Maheshkumar-Kakade/otp-generator/issues/12
- https://security.snyk.io/vuln/SNYK-JS-OTPGENERATOR-1655480
- https://github.com/Maheshkumar-Kakade/otp-generator/commit/b27de1ce439ae7f533cec26677e9698671275b70
- https://github.com/Maheshkumar-Kakade/otp-generator/issues/12
- https://security.snyk.io/vuln/SNYK-JS-OTPGENERATOR-1655480
Get alerted when CVE-2021-23451 or the next vulnerability affects your stack