{"id":"CVE-2020-7689","aliases":["EUVD-2020-0596","GHSA-5wg4-74h6-q47v","SNYK-JS-BCRYPT-572911"],"status":"published","title":"Insecure Encryption","description":"Data is truncated wrong when its length is greater than 255 bytes.","severity":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00785,"percentile":0.5636,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-190","CWE-327"],"published":"2020-07-01T13:55:14Z","modified":"2026-10-20T10:54:24Z","fixes":[{"ecosystem":"npm","package":"bcrypt","fixed_in":["5.0.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"bcrypt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"bcrypt","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.0.0"}]}]}],"products":[{"vendor":"node.bcrypt.js_project","product":"node.bcrypt.js"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-BCRYPT-572911","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/kelektiv/node.bcrypt.js/issues/776","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/kelektiv/node.bcrypt.js/pull/806","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/kelektiv/node.bcrypt.js/pull/807","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7689","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-5wg4-74h6-q47v"}],"sources":{"cve":[{"id":"CVE-2020-7689","title":"Insecure Encryption","description":"Data is truncated wrong when its length is greater than 255 bytes.","status":"published","published":"2020-07-01T13:55:14.313Z","modified":"2024-09-17T01:22:03.558Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"cna"}],"updated_at":"2026-11-02T14:35:58.331892Z"}],"euvd":[{"id":"EUVD-2020-0596","description":"Data is truncated wrong when its length is greater than 255 bytes.","status":"published","published":"2020-07-01T13:55:14Z","modified":"2024-09-17T01:22:03Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-03T00:28:50.234993Z"}],"ghsa":[{"id":"GHSA-5wg4-74h6-q47v","title":"Integer Overflow or Wraparound and Use of a Broken or Risky Cryptographic Algorithm in bcrypt","description":"In bcrypt (npm package) before version 5.0.0, data is truncated wrong when its length is greater than 255 bytes.","status":"published","published":"2020-08-20T14:38:49Z","modified":"2023-02-01T05:04:22Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-190","CWE-327"],"updated_at":"2026-11-02T14:36:32.120868Z"}],"nvd":[{"id":"CVE-2020-7689","description":"Data is truncated wrong when its length is greater than 255 bytes.","status":"published","published":"2020-07-01T14:15:14.623Z","modified":"2026-06-17T03:25:16.15Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-190","CWE-327"],"updated_at":"2026-11-02T14:06:08.145904Z"}],"osv":[{"id":"CVE-2020-7689","description":"Data is truncated wrong when its length is greater than 255 bytes.","status":"published","published":"2020-07-01T14:15:14.623Z","modified":"2026-10-20T10:54:24.323557368Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:17.34531Z"},{"id":"GHSA-5wg4-74h6-q47v","title":"Integer Overflow or Wraparound and Use of a Broken or Risky Cryptographic Algorithm in bcrypt","description":"In bcrypt (npm package) before version 5.0.0, data is truncated wrong when its length is greater than 255 bytes.","status":"published","published":"2020-08-20T14:38:49Z","modified":"2026-07-08T06:49:33.281819095Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-190","CWE-327"],"updated_at":"2026-11-02T15:46:38.911014Z"}]}}
