CVE-2020-26938: oauth2-server through 3.1.1 vulnerable to Open Redirect
7.2
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.37868%
CWE
Published
8/30/2022
Updated
1/27/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
oauth2-server | npm | <= 3.1.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper URI validation in two key functions: 1) The authorization code grant type's redirect URI validation uses a flawed regex that doesn't properly check URI structure. 2) The is.uri
validator implements an RFC-noncompliant pattern ([a-zA-Z][a-zA-Z0-9+.-]+:), missing critical validation of authority/path components. Together these allow injection of malicious redirect URIs. The code references and CVE analysis explicitly point to these functions/locations as the root cause.