KeygraphLabs · CVE MCP

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.

CVSS
7.5
high, from NVD
EPSS
2.19%
percentile 83.1%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-04Published
2021-04-22Package advisory GHSA-2fw4-mgq9-39cx
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 2.19%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-2fw4-mgq9-39cxoauth2-server (npm)no fix yet

Also known as: GHSA-2fw4-mgq9-39cx

Related

CVEPublishedCVSSSummary
CVE-2020-269382022-08-297.2same package: oauth2-server (npm)
CVE-2026-518322026-10-297.8same weakness (CWE-94) from the same CNA (mitre)
CVE-2026-518312026-10-297.8same weakness (CWE-94) from the same CNA (mitre)
CVE-2026-1070502026-10-299.8same weakness (CWE-94) from the same CNA (mitre)
CVE-2026-788452026-10-279.8same weakness (CWE-94) from the same CNA (mitre)
CVE-2026-1070912026-10-267.8same weakness (CWE-94) from the same CNA (mitre)
CVE-2025-455282026-10-237.3same weakness (CWE-94) from the same CNA (mitre)
CVE-2026-1067642026-10-237.5same 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.

NVD · CVE.org