# CVE-2020-26938: oauth2-server through 3.1.1 vulnerable to Open Redirect

- Severity: High 7.2 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- 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.01%, higher than 64% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-08-29T20:51:04.000Z
- Modified: 2026-06-17T03:08:34.977Z
- Also known as: GHSA-4rg6-fm25-gc34
- Weaknesses: CWE-601
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- oauth2-server (npm): up to 3.1.1
- oauth2-server_project oauth2-server: up to 3.1.1

## Every score

- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`

## References

- <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://github.com/oauthjs/node-oauth2-server/issues/637> (issue-tracking, 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

- CVE List: [CVE-2020-26938](https://www.cve.org/CVERecord?id=CVE-2020-26938), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-4rg6-fm25-gc34](https://github.com/advisories/GHSA-4rg6-fm25-gc34), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2020-26938](https://nvd.nist.gov/vuln/detail/CVE-2020-26938), Public domain, modified 2026-06-17

---

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