GHSA-v6c5-hwqg-3x5q

Suggest an improvement
Source
https://github.com/advisories/GHSA-v6c5-hwqg-3x5q
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-v6c5-hwqg-3x5q/GHSA-v6c5-hwqg-3x5q.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-v6c5-hwqg-3x5q
Aliases
  • CVE-2019-19723
Published
2020-09-04T17:23:03Z
Modified
2023-11-08T04:01:29Z
Summary
Improper Authorization in passport-cognito
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-285"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-08-31T18:59:30Z",
    "nvd_published_at":  null,
    "severity":  "CRITICAL"
}
References

Affected packages

npm / passport-cognito

Package

Name
passport-cognito
View open source insights on deps.dev
Purl
pkg:npm/passport-cognito

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-v6c5-hwqg-3x5q/GHSA-v6c5-hwqg-3x5q.json"