Live threats

All CVEs / Oauth2-server Project

CVE-2020-26938Oauth2-server Project Oauth2-server

High 7.2 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Oauth2-server.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
oauth2-server_projectoauth2-server≤ 3.1.1

Official sources

References

Links published by the sources. Open them with care.