Improper authentication in react-adal
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-287.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | react-adal | all versions | — | No fix listed | CNA |
| — | react-adal (npm) | before 0.5.1 | 0.5.1 | Patch available | GHSA-7mpx-vg3c-cmr4 |
- react-adal Vendor— Affected all versions Fixed in — No fix listed CNA
- react-adal (npm) Vendor— Affected before 0.5.1 Fixed in 0.5.1 Patch available GHSA-7mpx-vg3c-cmr4
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:react-adal_project:react-adal:*:*:*:*:*:node.js:*:* | all versions | Vulnerable | React-adal Project |
- cpe:2.3:a:react-adal_project:react-adal:*:*:*:*:*:node.js:*:* Versions all versions Vulnerable ·React-adal Project
Remediation
- Fix · GHSA-7mpx-vg3c-cmr4 react-adal (npm) Fixed in 0.5.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2020-7787
- 2026-10-03 Alias added: GHSA-7mpx-vg3c-cmr4
References
Sources
- CVE-2020-7787 · CVE Program
- CVE-2020-7787 · NVD
- FIRST EPSS
- GHSA-7mpx-vg3c-cmr4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences