GitHub Advisoryadvisory · npm

GHSA-v6c5-hwqg-3x5q Improper Authorization in passport-cognito

CRITICAL Published 2020-09-04 Modified 2020-08-31 Official page ↗
Aliases
CVE-2019-19723
Ecosystem
npm
Packages
passport-cognito
Severity
Critical
Weaknesses
CWE-285
Reviewed
2020-08-31

Affected packages

• npm passport-cognito: >= 0.0.0 (no fix yet)

Description

All versions of `passport-cognito` are vulnerable to Improper Authorization. The package fails to properly scope the variables containing authorization information, such as access token, refresh token and ID token. This causes a race condition where simultaneous authenticated users may receive authorization tokens for a different user. This would allow a user to take actions on another user's behalf. Recommendation No fix is currently available. Consider using an alternative package until a fix is made available.

Related

Alias · not in database (1)

Weakness · CWE (1)

  • CWE-285 Improper Authorization weakness

References