CVE-2020-7787
HIGH 8.2CVSS 3.1Improper Authentication in react-adal
This affects all versions of package react-adal. It is possible for a specially crafted JWT token and request URL can cause the nonce, session and refresh values to be incorrectly validated, causing the application to treat an attacker-generated JWT token as authentic. The logical defect is caused by how the nonce, session and refresh values are stored in the browser local storage or session storage. Each key is automatically appended by ||. When the received nonce and session keys are generated, the list of values is stored in the browser storage, separated by ||, with || always appended to the end of the list. Since || will always be the last 2 characters of the stored values, an empty string ("") will always be in the list of the valid values. Therefore, if an empty session parameter is provided in the callback URL, and a specially-crafted JWT token contains an nonce value of "" (empty string), then adal.js will consider the JWT token as authentic.
- Published
- 9 Dec 2020
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-287
- Also known as
- GHSA-7mpx-vg3c-cmr4
- Sources
- NVDJSONOSV GHSA-7mpx-vg3c-cmr4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | react-adal_project | react-adalcpe:2.3:a:react-adal_project:react-adal:*:*:*:*:*:node.js:*:* |
all versions | |
| OSV | npm | react-adal | < 0.5.1 | 0.5.1 |
References
- https://github.com/salvoravida/react-adal/pull/115 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-REACTADAL-1018907 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-7787 · ADVISORY
- https://github.com/salvoravida/react-adal/commit/74158dba1647b12fe96fa401e306a6287fe9e2a9 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 9 Dec 2020)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 13 Apr 2021)