{"id":"CVE-2021-23451","aliases":["EUVD-2022-6267","GHSA-6x93-h9g3-9phr"],"status":"published","title":"Insecure Randomness","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.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00909,"percentile":0.60204,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-330"],"published":"2022-07-25T14:11:12Z","modified":"2026-10-20T10:53:37Z","fixes":[{"ecosystem":"npm","package":"otp-generator","fixed_in":["3.0.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"otp-generator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"otp-generator","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.0.0"}]}]}],"products":[{"vendor":"otp-generator_project","product":"otp-generator"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-OTPGENERATOR-1655480","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/Maheshkumar-Kakade/otp-generator/issues/12","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/Maheshkumar-Kakade/otp-generator/commit/b27de1ce439ae7f533cec26677e9698671275b70","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23451","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-6x93-h9g3-9phr"},{"url":"https://github.com/Maheshkumar-Kakade/otp-generator","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-23451","title":"Insecure Randomness","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.","status":"published","published":"2022-07-25T14:11:12.623Z","modified":"2024-09-17T03:23:49.759Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium","assessor":"cna"}],"updated_at":"2026-11-02T14:33:00.819444Z"}],"euvd":[{"id":"EUVD-2022-6267","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.","status":"published","published":"2022-07-25T14:11:12Z","modified":"2024-09-17T03:23:49Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-03T00:28:32.08327Z"}],"ghsa":[{"id":"GHSA-6x93-h9g3-9phr","title":"otp-generator before v3.0.0 insecurely generates random one-time passwords","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.","status":"published","published":"2022-07-26T00:01:05Z","modified":"2023-01-27T05:06:19Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-330"],"updated_at":"2026-11-02T14:36:21.8171Z"}],"nvd":[{"id":"CVE-2021-23451","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.","status":"published","published":"2022-07-25T14:15:10.26Z","modified":"2026-06-17T03:38:47.263Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-330"],"updated_at":"2026-11-02T14:07:06.501652Z"}],"osv":[{"id":"CVE-2021-23451","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.","status":"published","published":"2022-07-25T14:15:10.26Z","modified":"2026-10-20T10:53:37.906834156Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:18.778776Z"},{"id":"GHSA-6x93-h9g3-9phr","title":"otp-generator before v3.0.0 insecurely generates random one-time passwords","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.","status":"published","published":"2022-07-26T00:01:05Z","modified":"2023-11-08T04:05:10.457984Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-330"],"updated_at":"2026-11-02T15:46:40.308826Z"}]}}
