{"id":"GHSA-5wg4-74h6-q47v","summary":"Integer Overflow or Wraparound and Use of a Broken or Risky Cryptographic Algorithm in bcrypt","details":"In bcrypt (npm package) before version 5.0.0, data is truncated wrong when its length is greater than 255 bytes.","aliases":["CVE-2020-7689","SNYK-JS-BCRYPT-572911"],"modified":"2026-07-08T06:49:33.281819095Z","published":"2020-08-20T14:38:49Z","database_specific":{"cwe_ids":["CWE-190","CWE-327"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2020-08-20T14:37:17Z","nvd_published_at":"2020-07-01T14:15:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7689"},{"type":"WEB","url":"https://github.com/kelektiv/node.bcrypt.js/issues/776"},{"type":"WEB","url":"https://github.com/kelektiv/node.bcrypt.js/pull/806"},{"type":"WEB","url":"https://github.com/kelektiv/node.bcrypt.js/pull/807"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-BCRYPT-572911"}],"affected":[{"package":{"name":"bcrypt","ecosystem":"npm","purl":"pkg:npm/bcrypt"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.0.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/08/GHSA-5wg4-74h6-q47v/GHSA-5wg4-74h6-q47v.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}