JDA is vulnerable to Insertion of Sensitive Information into Log File
30
Low Risk
Affected versions of this package contain a vulnerability where sensitive authentication tokens are recorded in plaintext within TRACE-level application logs due to insufficient output sanitization in the gateway request handler; specifically, when the messagesSent counter is below a threshold, the full message containing the token is written to log files via LOG.trace('<- {}', message), allowing an attacker with access to these logs (e.g., through compromised systems, internal threats, or misconfigured log storage) to harvest tokens and impersonate users or escalate privileges.
You are affected if you are using a version that falls within the vulnerable range.
JDA is vulnerable to Insertion of Sensitive Information into Log File in versions 3.6.0 - 6.2.0.
Upgrade the net.dv8tion:JDA library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant