{"cve":"CVE-2021-23451","nvd":{"published":"2022-07-25T14:15:10.260","modified":"2026-06-17T03:38:47.263","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-330"],"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"],"products":["otp-generator_project:otp-generator"],"source":"nvd","synced_at":"2026-10-19T21:33:44.859608815+00:00"},"epss":{"cve":"CVE-2021-23451","score":0.00909,"percentile":0.59957,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-6x93-h9g3-9phr","url":"https://osv.dev/vulnerability/GHSA-6x93-h9g3-9phr","summary":"otp-generator before v3.0.0 insecurely generates random one-time passwords","modified":"2023-11-08T04:05:10.457984Z","packages":[{"ecosystem":"npm","name":"otp-generator","purl":"pkg:npm/otp-generator","ranges":["<3.0.0"],"fixed":["3.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}