{"cve":"CVE-2020-7787","nvd":{"published":"2020-12-09T17:15:32.027","modified":"2026-06-17T03:25:26.703","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","score":8.2},"cwes":["CWE-287"],"references":["https://github.com/salvoravida/react-adal/pull/115","https://snyk.io/vuln/SNYK-JS-REACTADAL-1018907","https://github.com/salvoravida/react-adal/pull/115","https://snyk.io/vuln/SNYK-JS-REACTADAL-1018907"],"products":["react-adal_project:react-adal"],"source":"nvd","synced_at":"2026-10-19T21:12:09.559580076+00:00"},"epss":{"cve":"CVE-2020-7787","score":0.01282,"percentile":0.7007,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-7mpx-vg3c-cmr4","url":"https://osv.dev/vulnerability/GHSA-7mpx-vg3c-cmr4","summary":"Improper Authentication in react-adal","modified":"2026-03-13T22:11:11.416389Z","packages":[{"ecosystem":"npm","name":"react-adal","purl":"pkg:npm/react-adal","ranges":["<0.5.1"],"fixed":["0.5.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}