All CVEs / Oauth2-server Project
CVE-2020-26938Oauth2-server Project Oauth2-server
High 7.2 No auth needed
Follow: this CVE · Oauth2-server Project · Oauth2-server Project Oauth2-server We alert you by email or Slack (account required).
- Priority
- 58
- CVSS 3.1
- 7.2
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 64
- Auth required
- No
- Published
- Aug 29, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-601
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Oauth2-server.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | oauth2-server |
≤ 3.1.1 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-4rg6-fm25-gc34). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| oauth2-server_project | oauth2-server | ≤ 3.1.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory
- github.com Exploit Third Party Advisory
- github.com Issue Tracking Third Party Advisory
- tools.ietf.org Third Party Advisory
- tools.ietf.org Third Party Advisory