Insecure Credential Comparison Affecting safe-compare package, versions <1.1.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID npm:safe-compare:20180210
  • published 14 Feb 2018
  • disclosed 9 Feb 2018
  • credit James Billingham

Introduced: 9 Feb 2018

CVE NOT AVAILABLE CWE-522 Open this link in a new tab

How to fix?

Upgrade safe-compare to version 1.1.1 or higher.

Overview

safe-compare is Constant-time comparison algorithm to prevent timing attacks..

Affected versions of the package are vulnerable to Insecure Credential Comparison due to using String.prototype.length instead of Buffer.byteLength.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
6.5 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    High
  • Availability (A)
    None