maheshkumar-kakade/otp-generator · Security
otp-generator before v3.0.0 insecurely generates random one-time passwords
- GHSA ID
- GHSA-6x93-h9g3-9phr
- CVE ID
- CVE-2021-23451
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
CWEs
- CWE-330 · Use of Insufficiently Random Values
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23451 ↗
- https://github.com/Maheshkumar-Kakade/otp-generator/issues/12 ↗
- https://github.com/Maheshkumar-Kakade/otp-generator/commit/b27de1ce439ae7f533cec26677e9698671275b70 ↗
- https://security.snyk.io/vuln/SNYK-JS-OTPGENERATOR-1655480 ↗
- https://github.com/advisories/GHSA-6x93-h9g3-9phr ↗