Timing Attack Affecting express-basic-auth package, versions <1.1.7


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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 IDSNYK-JS-EXPRESSBASICAUTH-174345
  • published16 Apr 2019
  • disclosed1 Mar 2019
  • creditHraban Luyat

Introduced: 1 Mar 2019

CVE NOT AVAILABLE CWE-208  (opens in a new tab)

How to fix?

Upgrade express-basic-auth to version 1.1.7 or higher.

Overview

express-basic-auth is a simple plug & play HTTP basic auth middleware for Express.

Affected versions of this package are vulnerable to Timing Attack due to it using native string compare for passwords, as oppose to comparing with a set constant time.

CVSS Scores

version 3.1