CVE-2026-41213

Source
https://cve.org/CVERecord?id=CVE-2026-41213
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41213.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-41213
Aliases
Published
2026-04-23T18:33:42.365Z
Modified
2026-07-08T08:13:25.117894690Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
@node-oauth/oauth2-server: PKCE code_verifier ABNF not enforced in token exchange allows brute-force redemption of intercepted authorization codes
Details

@node-oauth/oauth2-server is a module for implementing an OAuth2 server in Node.js. The token exchange path accepts RFC7636-invalid codeverifier values (including one-character strings) for S256 PKCE flows. Because short/weak verifiers are accepted and failed verifier attempts do not consume the authorization code, an attacker who intercepts an authorization code can brute-force codeverifier guesses online until token issuance succeeds.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41213.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-1289",
        "CWE-307"
    ]
}
References

Affected packages

Git / github.com/node-oauth/node-oauth2-server

Affected ranges

Type
GIT
Repo
https://github.com/node-oauth/node-oauth2-server
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE"
    ],
    "cpe": "cpe:2.3:a:node-oauth:node-oauth\\/oauth2-server:*:*:*:*:*:node.js:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "5.3.0"
        }
    ]
}

Affected versions

v1.*
v1.0.0
v1.1.0
v1.1.1
v1.2.0
v1.2.1
v1.2.2
v1.2.3
v1.2.4
v1.2.5
v1.3.0
v1.3.1
v1.3.2
v1.4.0
v1.4.1
v1.5.0
v1.5.1
v1.5.2
v2.*
v2.2.0
v2.2.1
v2.2.2
v2.3.0
v2.4.0
v2.4.1
v3.*
v3.0.0
v3.0.0-b3
v3.0.0-b3.1
v3.0.0-b4
v3.0.2
v3.1.0
v3.1.1
v4.*
v4.0.0
v5.*
v5.1.0
v5.1.0-rc.0
v5.2.0
v5.2.1
v5.2.2-rc.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41213.json"