GHSA-6x93-h9g3-9phr

Suggest an improvement
Source
https://github.com/advisories/GHSA-6x93-h9g3-9phr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-6x93-h9g3-9phr/GHSA-6x93-h9g3-9phr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6x93-h9g3-9phr
Aliases
Published
2022-07-26T00:01:05Z
Modified
2023-11-08T04:05:10Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "cwe_ids":  [
        "CWE-330"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2022-08-06T09:35:03Z",
    "nvd_published_at":  "2022-07-25T14:15:00Z",
    "severity":  "CRITICAL"
}
References

Affected packages

npm / otp-generator

Package

Name
otp-generator
View open source insights on deps.dev
Purl
pkg:npm/otp-generator

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
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"