{"id":"CVE-2020-26938","aliases":["CVE-2020-26938","GHSA-4rg6-fm25-gc34"],"related":[],"kind":"vulnerability","state":"published","title":"oauth2-server through 3.1.1 vulnerable to Open Redirect","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2022-08-29T20:51:04.000Z","modified":"2026-06-17T03:08:34.977Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"3.1.1"}],"ecosystem":"npm","package":"oauth2-server","purl":"pkg:npm/oauth2-server","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"3.1.1"}],"vendor":"oauth2-server_project","product":"oauth2-server","cpe":"cpe:2.3:a:oauth2-server_project:oauth2-server:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/oauthjs/node-oauth2-server/issues/637","tags":["issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/oauthjs/node-oauth2-server/blob/91d2cbe70a0eddc53d72def96864e2de0fd41703/lib/validator/is.js#L12","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/oauthjs/node-oauth2-server/blob/91d2cbe70a0eddc53d72def96864e2de0fd41703/lib/grant-types/authorization-code-grant-type.js#L143","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://tools.ietf.org/html/rfc3986#section-3","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://tools.ietf.org/html/rfc6749#section-3.1.2","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26938","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/oauthjs/node-oauth2-server","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-26938","url":"https://www.cve.org/CVERecord?id=CVE-2020-26938","licence":"CVE Terms of Use","modified":"2024-08-04T16:03:23.138Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4rg6-fm25-gc34","url":"https://github.com/advisories/GHSA-4rg6-fm25-gc34","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:20.585Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-26938","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26938","licence":"Public domain","modified":"2026-06-17T03:08:34.977Z"}],"updatedAt":"2026-11-25T22:57:58.711Z","epss":{"score":0.01015,"percentile":0.64235,"date":"2026-12-01T12:00:22.000Z"}}