{"id":"GHSA-6x93-h9g3-9phr","summary":"otp-generator before v3.0.0 insecurely generates random one-time passwords","details":"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.","aliases":["CVE-2021-23451"],"modified":"2023-11-08T04:05:10.457984Z","published":"2022-07-26T00:01:05Z","database_specific":{"github_reviewed_at":"2022-08-06T09:35:03Z","nvd_published_at":"2022-07-25T14:15:00Z","cwe_ids":["CWE-330"],"severity":"CRITICAL","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23451"},{"type":"WEB","url":"https://github.com/Maheshkumar-Kakade/otp-generator/issues/12"},{"type":"WEB","url":"https://github.com/Maheshkumar-Kakade/otp-generator/commit/b27de1ce439ae7f533cec26677e9698671275b70"},{"type":"PACKAGE","url":"https://github.com/Maheshkumar-Kakade/otp-generator"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-OTPGENERATOR-1655480"}],"affected":[{"package":{"name":"otp-generator","ecosystem":"npm","purl":"pkg:npm/otp-generator"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.0.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-6x93-h9g3-9phr/GHSA-6x93-h9g3-9phr.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}