Improper Validation of Unsafe Equivalence in Input Affecting @node-oauth/oauth2-server package, versions <5.3.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-NODEOAUTHOAUTH2SERVER-16420261
  • published5 May 2026
  • disclosed16 Apr 2026
  • creditKarimTantawey

Introduced: 16 Apr 2026

CVE-2026-41213  (opens in a new tab)
CWE-1289  (opens in a new tab)
CWE-307  (opens in a new tab)

How to fix?

Upgrade @node-oauth/oauth2-server to version 5.3.0 or higher.

Overview

@node-oauth/oauth2-server is a Complete, framework-agnostic, compliant and well tested module for implementing an OAuth2 Server in node.js

Affected versions of this package are vulnerable to Improper Validation of Unsafe Equivalence in Input in the token process. An attacker can obtain unauthorized access to bearer tokens by brute-forcing weak or invalid code_verifier values during the PKCE token exchange, especially if an authorization code has been intercepted. This is possible because the server does not enforce RFC7636 requirements for the code_verifier and does not revoke the authorization code after failed attempts, allowing repeated online guesses.

CVSS Base Scores

version 4.0
version 3.1