{"id":"CVE-2021-23451","sourceIdentifier":"report@snyk.io","published":"2022-07-25T14:15:10.260","lastModified":"2026-06-17T03:38:47.263","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"El paquete otp-generator versiones anteriores a 3.0.0, son vulnerables a una Aleatoriedad No segura debido a una generación no segura de contraseñas aleatorias de un solo uso, lo que puede permitir un ataque de fuerza bruta"}],"affected":[{"source":"report@snyk.io","affectedData":[{"vendor":"n/a","product":"otp-generator","versions":[{"version":"unspecified","lessThan":"3.0.0","versionType":"custom","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"report@snyk.io","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","baseScore":6.5,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE"},"exploitabilityScore":3.9,"impactScore":2.5},{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":5.9}]},"weaknesses":[{"source":"nvd@nist.gov","type":"Primary","description":[{"lang":"en","value":"CWE-330"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:otp-generator_project:otp-generator:*:*:*:*:*:node.js:*:*","versionEndExcluding":"3.0.0","matchCriteriaId":"9D861DA5-DFB3-4D11-AC8A-B28528D9CF40"}]}]}],"references":[{"url":"https://github.com/Maheshkumar-Kakade/otp-generator/commit/b27de1ce439ae7f533cec26677e9698671275b70","source":"report@snyk.io","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/Maheshkumar-Kakade/otp-generator/issues/12","source":"report@snyk.io","tags":["Issue Tracking","Third Party Advisory"]},{"url":"https://security.snyk.io/vuln/SNYK-JS-OTPGENERATOR-1655480","source":"report@snyk.io","tags":["Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://github.com/Maheshkumar-Kakade/otp-generator/commit/b27de1ce439ae7f533cec26677e9698671275b70","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/Maheshkumar-Kakade/otp-generator/issues/12","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Issue Tracking","Third Party Advisory"]},{"url":"https://security.snyk.io/vuln/SNYK-JS-OTPGENERATOR-1655480","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Issue Tracking","Patch","Third Party Advisory"]}]}