# CVE-2020-7787: Improper Authentication

- Severity: High 8.2 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N/E:P/RL:T/RC:R`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.28%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2020-12-09T16:45:13.531Z
- Modified: 2026-06-17T03:25:26.703Z
- Also known as: GHSA-7mpx-vg3c-cmr4
- Weaknesses: CWE-287
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- react-adal: before unspecified
- react-adal (npm): before 0.5.1
- react-adal_project react-adal: no versions given

## Every score

- snyk: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N/E:P/RL:T/RC:R`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://snyk.io/vuln/SNYK-JS-REACTADAL-1018907> (exploit, third-party-advisory, web)
- <https://github.com/salvoravida/react-adal/pull/115> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7787> (advisory)
- <https://github.com/salvoravida/react-adal/commit/74158dba1647b12fe96fa401e306a6287fe9e2a9> (web)

## Sources

- CVE List: [CVE-2020-7787](https://www.cve.org/CVERecord?id=CVE-2020-7787), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-7mpx-vg3c-cmr4](https://github.com/advisories/GHSA-7mpx-vg3c-cmr4), CC-BY-4.0, modified 2026-03-13
- NVD: [CVE-2020-7787](https://nvd.nist.gov/vuln/detail/CVE-2020-7787), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-7787 · Whole record: https://cve.day/CVE-2020-7787.json · Rebuilt by cve.day 2026-11-25T22:57:56.114Z
