GHSA-5wg4-74h6-q47v

Suggest an improvement
Source
https://github.com/advisories/GHSA-5wg4-74h6-q47v
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/08/GHSA-5wg4-74h6-q47v/GHSA-5wg4-74h6-q47v.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5wg4-74h6-q47v
Aliases
Published
2020-08-20T14:38:49Z
Modified
2026-07-08T06:49:33Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
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.

Database specific
{
    "cwe_ids":  [
        "CWE-190",
        "CWE-327"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-08-20T14:37:17Z",
    "nvd_published_at":  "2020-07-01T14:15:00Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / bcrypt

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
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"