{"id":"GHSA-6qqf-vvcr-7qrv","aliases":["GHSA-6qqf-vvcr-7qrv"],"related":[],"kind":"vulnerability","state":"published","title":"Cryptographically Weak PRNG in generate-password","summary":"Affected versions of generate-password generate random values that are biased towards certain characters depending on the chosen character sets. This may result in guessable passwords.\n\n\n## Recommendation\n\nUpdate to version 1.4.1 or later.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"Affected versions of generate-password generate random values that are biased towards certain characters depending on the chosen character sets. This may result in guessable passwords.\n\n\n## Recommendation\n\nUpdate to version 1.4.1 or later.","format":"markdown","source":"ghsa"}],"published":"2019-05-23T09:27:22.000Z","modified":"2020-08-31T18:34:48.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-338"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.4.1"}],"ecosystem":"npm","package":"generate-password","purl":"pkg:npm/generate-password","source":"ghsa"}],"references":[{"url":"https://github.com/brendanashworth/generate-password/pull/26","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/762","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6qqf-vvcr-7qrv","url":"https://github.com/advisories/GHSA-6qqf-vvcr-7qrv","licence":"CC-BY-4.0","modified":"2020-08-31T18:34:48.000Z"}],"updatedAt":"2026-11-25T22:56:44.414Z"}