Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. generate-password
  4. ›
  5. GMS-2019-28

GMS-2019-28: Cryptographically Weak PRNG in generate-password

May 23, 2019 (updated August 4, 2021)

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. Update to or later.

References

  • github.com/advisories/GHSA-6qqf-vvcr-7qrv
  • github.com/brendanashworth/generate-password/pull/26
  • www.npmjs.com/advisories/762

Code Behaviors & Features

Detect and mitigate GMS-2019-28 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.4.1

Fixed versions

  • 1.4.1

Solution

Upgrade to version 1.4.1 or above.

Source file

npm/generate-password/GMS-2019-28.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:23 +0000.