CVE-2020-7689
HIGH 7.5CVSS 3.1Integer Overflow or Wraparound and Use of a Broken or Risky Cryptographic Algorithm in bcrypt
Data is truncated wrong when its length is greater than 255 bytes.
- Published
- 1 Jul 2020
- Last modified
- 8 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-190CWE-327
- Also known as
- GHSA-5wg4-74h6-q47vSNYK-JS-BCRYPT-572911
- Sources
- NVDJSONOSV GHSA-5wg4-74h6-q47vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | node.bcrypt.js_project | node.bcrypt.jscpe:2.3:a:node.bcrypt.js_project:node.bcrypt.js:*:*:*:*:*:node.js:*:* |
< 5.0.0 | 5.0.0 |
| OSV | npm | bcrypt | < 5.0.0 | 5.0.0 |
References
- https://github.com/kelektiv/node.bcrypt.js/issues/776 · Third Party Advisory, WEB
- https://github.com/kelektiv/node.bcrypt.js/pull/806 · Patch, Third Party Advisory, WEB
- https://github.com/kelektiv/node.bcrypt.js/pull/807 · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-BCRYPT-572911 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-7689 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 1 Jul 2020)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 20 Aug 2020)