{"id":"GHSA-v6c5-hwqg-3x5q","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.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","aliases":["CVE-2019-19723"],"modified":"2023-11-08T04:01:29.223791Z","published":"2020-09-04T17:23:03Z","database_specific":{"cwe_ids":["CWE-285"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2020-08-31T18:59:30Z","nvd_published_at":null},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-19723"},{"type":"WEB","url":"https://www.npmjs.com/advisories/1443"}],"affected":[{"package":{"name":"passport-cognito","ecosystem":"npm","purl":"pkg:npm/passport-cognito"},"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"}}],"schema_version":"1.9.0"}