Every CVE Search/ Get API key

CVE-2020-7689

Insecure Encryption

5.9 MediumFix available

Data is truncated wrong when its length is greater than 255 bytes.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
High
Availability
None

Exploit likelihood

0.78%Down 0.3 points since Apr 14, 2021
90%50%10%1%

What each source reports

CVE List Score used 5.9

Insecure Encryption

Data is truncated wrong when its length is greater than 255 bytes.

Record
CVE-2020-7689
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
EUVDEUVD-2020-0596 5.9

Data is truncated wrong when its length is greater than 255 bytes.

Record
EUVD-2020-0596
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-03
GitHub AdvisoriesGHSA-5wg4-74h6-q47v 5.9

Integer Overflow or Wraparound and Use of a Broken or Risky Cryptographic Algorithm in bcrypt

In bcrypt (npm package) before version 5.0.0, data is truncated wrong when its length is greater than 255 bytes.

Record
GHSA-5wg4-74h6-q47v
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-190, CWE-327
Updated
2026-11-02
NVD 5.9

Data is truncated wrong when its length is greater than 255 bytes.

Record
CVE-2020-7689
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:P/A:N
Weakness
CWE-190, CWE-327
Updated
2026-11-02
OSV 7.5

Data is truncated wrong when its length is greater than 255 bytes.

Record
CVE-2020-7689
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
OSVGHSA-5wg4-74h6-q47v 5.9

Integer Overflow or Wraparound and Use of a Broken or Risky Cryptographic Algorithm in bcrypt

In bcrypt (npm package) before version 5.0.0, data is truncated wrong when its length is greater than 255 bytes.

Record
GHSA-5wg4-74h6-q47v
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-190, CWE-327
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
bcrypt
npm
before 5.0.0
5.0.0

History

History
RecordedChangedSources
aliases, publishedEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2020-7689 is a medium vulnerability (CVSS 5.9) in Node.bcrypt.js Project Node.bcrypt.js, published July 1, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.78%, the 56th percentile. Fixed in bcrypt 5.0.0.

References

MoveEnter Open