Advisory

GHSA-5wg4-74h6-q47v

Also known as: CVE-2020-7689, SNYK-JS-BCRYPT-572911

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2020-08-20 14:38 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

bcrypt

npm · All systems

Affected

  • introduced 0, fixed 5.0.0 (semver)

Fixed versions

5.0.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences