# GHSA-6qqf-vvcr-7qrv: Cryptographically Weak PRNG in generate-password

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-05-23T09:27:22.000Z
- Modified: 2020-08-31T18:34:48.000Z
- Weaknesses: CWE-338

## Description

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.


## Recommendation

Update to version 1.4.1 or later.

(As written by GitHub Advisory Database.)

## Affected

- generate-password (npm): before 1.4.1

## References

- <https://github.com/brendanashworth/generate-password/pull/26> (web)
- <https://www.npmjs.com/advisories/762> (web)

## Sources

- GitHub Advisory Database: [GHSA-6qqf-vvcr-7qrv](https://github.com/advisories/GHSA-6qqf-vvcr-7qrv), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-6qqf-vvcr-7qrv · Whole record: https://cve.day/GHSA-6qqf-vvcr-7qrv.json · Rebuilt by cve.day 2026-11-25T22:56:44.414Z
