CVE-2017-18924 · mitre
CVE-2017-18924
oauth2-server (aka node-oauth2-server) through 3.1.1 implements OAuth 2.0 without PKCE. It does not prevent authorization code injection. This is similar to CVE-2020-7692. NOTE: the vendor states 'As RFC7636 is an extension, I think the claim in the Readme of "RFC 6749 compliant" is valid and not misleading and I also therefore wouldn't describe this as a "vulnerability" with the library per se.
Published 2020-10-04, last changed 2026-06-17. Weakness: CWE-94.
Where the flaw is in the code
Fixed in oauthjs/node-oauth2-server by pull request #452. Functions changed by the fix: AbstractGrantType, getAuthorizationCode, AuthorizeHandler, handle, generateAuthorizationCode, getCodeChallenge, getCodeChallengeMethod, getClient, saveAuthorizationCode, TokenHandler, handleGrantType, authorize. Regression tests: test/integration/grant-types/authorization-code-grant-type_test.js, test/integration/handlers/authorize-handler_test.js, test/integration/handlers/token-handler_test.js, test/unit/handlers/authorize-handler_test.js. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2020-10-04 | Published |
| 2021-04-22 | Package advisory GHSA-2fw4-mgq9-39cx |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 2.19% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-2fw4-mgq9-39cx | oauth2-server (npm) | no fix yet |
Also known as: GHSA-2fw4-mgq9-39cx
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2020-26938 | 2022-08-29 | 7.2 | same package: oauth2-server (npm) |
| CVE-2026-51832 | 2026-10-29 | 7.8 | same weakness (CWE-94) from the same CNA (mitre) |
| CVE-2026-51831 | 2026-10-29 | 7.8 | same weakness (CWE-94) from the same CNA (mitre) |
| CVE-2026-107050 | 2026-10-29 | 9.8 | same weakness (CWE-94) from the same CNA (mitre) |
| CVE-2026-78845 | 2026-10-27 | 9.8 | same weakness (CWE-94) from the same CNA (mitre) |
| CVE-2026-107091 | 2026-10-26 | 7.8 | same weakness (CWE-94) from the same CNA (mitre) |
| CVE-2025-45528 | 2026-10-23 | 7.3 | same weakness (CWE-94) from the same CNA (mitre) |
| CVE-2026-106764 | 2026-10-23 | 7.5 | same weakness (CWE-94) from the same CNA (mitre) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2017-18924, or call /api/v1/vulnerabilities/CVE-2017-18924. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.