Token theft via weak PKCE verifier validation
Published Apr 23, 2026 · Updated Apr 23, 2026
PKCE validation flaws in @node-oauth/oauth2-server before 5.3.0 allow remote attackers to redeem intercepted authorization codes. The token path hashes any nonempty S256 code_verifier in lib/pkce/pkce.js without enforcing the RFC 7636 length and character rules, and failed comparisons occur before code revocation. Exploitation requires an intercepted code tied to a short or predictable verifier and yields bearer tokens after repeated online guesses without altering data or interrupting service.
Summary
What happened
PKCE validation flaws in @node-oauth/oauth2-server before 5.3.0 allow remote attackers to redeem intercepted authorization codes. The token path hashes any nonempty S256 code_verifier in lib/pkce/pkce.js without enforcing the RFC 7636 length and character rules, and failed comparisons occur before code revocation. Exploitation requires an intercepted code tied to a short or predictable verifier and yields bearer tokens after repeated online guesses without altering data or interrupting service.
The record
- CVE
- CVE-2026-41213
- Published
- Apr 23, 2026
- Updated
- Apr 23, 2026
- Vendor
- node-oauth
- Product
- @node-oauth/oauth2-server
- Classifications
- CWE-307, CWE-1289, T1528
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 23, 2026CVE publishedPublication date reported by the CVE source.
- Apr 23, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 5.3.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-jhm7-29pj-4xvf PKCE brute-force reproductionproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo