# CVE-2026-41213: @node-oauth/oauth2-server: PKCE code_verifier ABNF not enforced in token exchange allows brute-force redemption of intercepted authorization codes

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-16T21:09:50.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-jhm7-29pj-4xvf
- Weaknesses: CWE-307, CWE-1289
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

@node-oauth/oauth2-server is a module for implementing an OAuth2 server in Node.js. The token exchange path accepts RFC7636-invalid code_verifier 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 code_verifier guesses online until token issuance succeeds.

(As written by CVE List.)

## Affected

- node-oauth node-oauth2-server: < 5.3.0
- @node-oauth/oauth2-server (npm): before 5.3.0
- node-oauth node-oauth/oauth2-server: before 5.3.0

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/node-oauth/node-oauth2-server/security/advisories/GHSA-jhm7-29pj-4xvf> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41213> (advisory)
- <https://github.com/node-oauth/node-oauth2-server> (package)

## Sources

- CVE List: [CVE-2026-41213](https://www.cve.org/CVERecord?id=CVE-2026-41213), CVE Terms of Use, modified 2026-04-25
- GitHub Advisory Database: [GHSA-jhm7-29pj-4xvf](https://github.com/advisories/GHSA-jhm7-29pj-4xvf), CC-BY-4.0, modified 2026-05-05
- NVD: [CVE-2026-41213](https://nvd.nist.gov/vuln/detail/CVE-2026-41213), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-41213 · Whole record: https://cve.day/CVE-2026-41213.json · Rebuilt by cve.day 2026-11-25T22:59:19.407Z
