CVE-2017-18924: Code Injection in oauth2-server

oauth2-server Updated 02 Oct 2025

Summary

22/04/2021
No i
High
7.5

CVE-2017-18924: Code Injection in oauth2-server. Affects oauth2-server versions < 3.1.1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

oauth2-server (aka node-oauth2-server) is an npm package that implements OAuth 2.0 without PKCE. It provides functionality for handling OAuth 2.0 authorization flows. However, versions up to 3.1.1 are vulnerable to code injection, which allows unauthorized access to sensitive information. This vulnerability is similar to CVE-2020-7692.

Vulnerability Detail

The vulnerability in oauth2-server allows for authorization code injection. This means that an attacker can inject malicious code into the authorization code flow, bypassing the intended security measures. This can lead to unauthorized access to protected resources and potential data breaches. The vulnerability has a CVSS score of 7.5, indicating a high severity level.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to update the package to a fixed version as soon as possible to mitigate the risk of code injection.

Conclusion

In conclusion, oauth2-server is vulnerable to code injection, which can result in unauthorized access to sensitive information. It is essential to update the package to a fixed version to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for oauth2-server →

Share this vulnerability

FAQ

oauth2-server is an npm package that implements OAuth 2.0 without PKCE. It provides functionality for handling OAuth 2.0 authorization flows.

Code injection is a security vulnerability where an attacker can inject malicious code into a system, bypassing intended security measures.

This vulnerability can lead to unauthorized access to protected resources and potential data breaches.

Yes, it is recommended to update oauth2-server to a version that includes the fix for this issue.

There is no known workaround for this vulnerability. It is crucial to update the package to a fixed version as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for oauth2-server.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback