Description
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.
Remediation
References
https://codeburst.io/missing-the-point-in-securing-oauth-2-0-83968708b467
https://github.com/oauthjs/node-oauth2-server/issues/637
https://github.com/oauthjs/node-oauth2-server/pull/452
https://tools.ietf.org/html/draft-ietf-oauth-security-topics-15
https://tools.ietf.org/html/rfc7636
Related Vulnerabilities
CVE-2022-34115 Vulnerability in maven package io.dataease:dataease-plugin-common
CVE-2019-10744 Vulnerability in maven package org.webjars:lodash
CVE-2021-29444 Vulnerability in npm package jose-browser-runtime
CVE-2023-43497 Vulnerability in maven package org.jenkins-ci.main:jenkins-core
CVE-2019-10289 Vulnerability in maven package org.jenkins-ci.plugins:netsparker-cloud-scan