{"id":"CVE-2019-19723","aliases":["CVE-2019-19723","GHSA-v6c5-hwqg-3x5q"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Authorization in passport-cognito","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2020-09-04T17:23:03.000Z","modified":"2023-11-08T04:01:29.223Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-285"],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0","status":"affected"}],"ecosystem":"npm","package":"passport-cognito","purl":"pkg:npm/passport-cognito","source":"ghsa"}],"references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-19723","tags":["advisory"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1443","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v6c5-hwqg-3x5q","url":"https://github.com/advisories/GHSA-v6c5-hwqg-3x5q","licence":"CC-BY-4.0","modified":"2023-11-08T04:01:29.223Z"}],"updatedAt":"2026-11-25T22:56:46.588Z"}