# CVE-2019-19723: Improper Authorization in passport-cognito

- Severity: Critical (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-04T17:23:03.000Z
- Modified: 2023-11-08T04:01:29.223Z
- Also known as: GHSA-v6c5-hwqg-3x5q
- Weaknesses: CWE-285

## 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.

(As written by GitHub Advisory Database.)

## Affected

- passport-cognito (npm): from 0.0.0

## References

- <https://nvd.nist.gov/vuln/detail/CVE-2019-19723> (advisory)
- <https://www.npmjs.com/advisories/1443> (web)

## Sources

- GitHub Advisory Database: [GHSA-v6c5-hwqg-3x5q](https://github.com/advisories/GHSA-v6c5-hwqg-3x5q), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2019-19723 · Whole record: https://cve.day/CVE-2019-19723.json · Rebuilt by cve.day 2026-11-25T22:56:46.588Z
