7.5high

CVE-2017-18924

Code Injection in oauth2-server

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

Published 6 y ago · modified 4 mo ago · JSON

CVSS
7.5
v3.1 · NVD
CISA KEV
No
not known exploited
EPSS
2.2%
percentile 83%
Public exploits
0
none known

Summary

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.

Exploit prediction (EPSS)

2.19% probability of exploitation in the next 30 days, higher than 83% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.17.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD2.05.0AV:N/AC:L/Au:N/C:P/I:N/A:N
GitHub3.17.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

EcosystemPackageAffectedFixed in
npmoauth2-server
<=3.1.1
no fix listed

Classification

Weakness
  • CWE-94 Improper Control of Generation of Code

References

  • tools.ietf.org /html/rfc7636 · x_refsource_MISC, x_transferred
  • tools.ietf.org /html/draft-ietf-oauth-security-topics-15 · x_refsource_MISC, x_transferred
  • codeburst.io /missing-the-point-in-securing-oauth-2-0-83968708b467 · x_refsource_MISC, x_transferred
  • github.com /oauthjs/node-oauth2-server/issues/637 · x_refsource_MISC, x_transferred
  • github.com /oauthjs/node-oauth2-server/pull/452 · x_refsource_MISC, x_transferred
  • nvd.nist.gov /vuln/detail/CVE-2017-18924 · advisory

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.