7.2high
oauth2-server through 3.1.1 vulnerable to Open Redirect
- Severity
- 7.2high CVSS:3.1 by NVD
- Exploit likelihood
- 1.01% (higher than 64% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-4rg6-fm25-gc34
Description
In oauth2-server (aka node-oauth2-server) through 3.1.1, the value of the redirect_uri parameter received during the authorization and token request is checked against an incorrect URI pattern ("[a-zA-Z][a-zA-Z0-9+.-]+:") before making a redirection. This allows a malicious client to pass an XSS payload through the redirect_uri parameter while making an authorization request. NOTE: this vulnerability is similar to CVE-2020-7741.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| oauth2-server (npm) | up to 3.1.1 | GitHub Advisory Database |
| oauth2-server_project oauth2-server | up to 3.1.1 | NVD |
All scores
| GitHub | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
| NVD | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
Classification
What each source says
CVE List
In oauth2-server (aka node-oauth2-server) through 3.1.1, the value of the redirect_uri parameter received during the authorization and token request is checked against an incorrect URI pattern ("[a-zA-Z][a-zA-Z0-9+.-]+:") before making a redirection. This allows a malicious client to pass an XSS payload through the redirect_uri parameter while making an authorization request. NOTE: this vulnerability is similar to CVE-2020-7741.
GitHub Advisory Database
In oauth2-server (aka node-oauth2-server) through 3.1.1, the value of the redirect_uri parameter received during the authorization and token request is checked against an incorrect URI pattern ([a-zA-Z][a-zA-Z0-9+.-]+:) before making a redirection. This allows a malicious client to pass an XSS payload through the redirect_uri parameter while making an authorization request. NOTE: this vulnerability is similar to CVE-2020-7741.
NVD (es)
En oauth2-server (también se conoce como node-oauth2-server) versiones hasta 3.1.1, el valor del parámetro redirect_uri recibido durante la petición de autorización y token es comprobado con un patrón URI incorrecto ("[a-zA-Z][a-zA-Z0-9+.-]+:") antes de realizar un redireccionamiento. Esto permite a un cliente malicioso pasar una carga útil de tipo XSS mediante el parámetro redirect_uri mientras realiza una petición de autorización. NOTA: esta vulnerabilidad es similar a la CVE-2020-7741
References
| https://github.com/oauthjs/node-oauth2-server/issues/637 | issue-tracking, third-party-advisory, web | |
| https://github.com/oauthjs/node-oauth2-server/blob/91d2cbe70a0eddc53d72def96864e2de0fd41703/lib/validator/is.js#L12 | exploit, third-party-advisory, web | |
| https://github.com/oauthjs/node-oauth2-server/blob/91d2cbe70a0eddc53d72def96864e2de0fd41703/lib/grant-types/authorization-code-grant-type.js#L143 | exploit, third-party-advisory, web | |
| https://tools.ietf.org/html/rfc3986#section-3 | third-party-advisory, web | |
| https://tools.ietf.org/html/rfc6749#section-3.1.2 | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-26938 | advisory | |
| https://github.com/oauthjs/node-oauth2-server | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-26938 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4rg6-fm25-gc34 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2020-26938 changed 2026-06-17 | Public domain |