Vulnerabilities in pkg:maven/net.dv8tion/JDA

PACKAGE
Advisory Summary

GHSA-93fv-4pm9-xp28 is a MODERATE jda (java discord api) downloads vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting JDA libraries in the Maven ecosystem. The issue involves jda (java discord api) downloads external urls when updating message components. Remediation is available by upgrading affected packages to version 6.1.3.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/net.dv8tion/JDA

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/net.dv8tion/JDA. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-93fv-4pm9-xp28 - MODERATE JDA (Java Discord API) downloads external URLs when updating message components

GHSA-93fv-4pm9-xp28 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-93fv-4pm9-xp28
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product JDA
Package Ecosystem Maven
Published Date
Last Updated

How to Fix GHSA-93fv-4pm9-xp28

To remediate this vulnerability, upgrade all affected JDA dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

net.dv8tion:JDA fixed: 6.1.3
<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>6.1.3</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=net.dv8tion

How to Check if You Are Affected

To determine whether your Java application is affected by GHSA-93fv-4pm9-xp28, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=net.dv8tion

Analyze the terminal output to locate any version of JDA in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.1.3), your application is affected.

Note: The mvn dependency:tree -Dincludes=net.dv8tion command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In JDA, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Anyone using untrusted message components may be affected. On versions >=6.0.0,<6.1.3 of JDA, the requester will attempt to download external media URLs from components if they are used in an update or send request. If you are used `Message#getComponents` or similar to get a list of components and then send those components with `sendMessageComponents` or other methods, you might unintentionally download media from an external URL in the resolved media of a `Thumbnail`, `FileDisplay`, or `MediaGallery`. ### Patches This bug has been fixed in 6.1.3, and we recommend updating. ### Workarounds Avoid sending components from untrusted messages or update to version 6.1.3.

GHSA-93fv-4pm9-xp28 Affected JDA Versions

1 component(s)
Fixed Versions:
6.1.3
Product / Package Ecosystem Affected Versions Fixed Version
net.dv8tion:JDA
Maven
≥ 6.0.0
< 6.1.3
6.1.3

References

Frequently Asked Questions

What is GHSA-93fv-4pm9-xp28?
GHSA-93fv-4pm9-xp28 is a security vulnerability in JDA involving JDA (Java Discord API) downloads external URLs when updating message components under CWE-918: Server-Side Request Forgery (SSRF).
Which JDA versions are affected?
Affected versions include releases prior to 6.1.3 across affected packages: net.dv8tion:JDA.
What version fixes GHSA-93fv-4pm9-xp28?
Upgrading to 6.1.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is JDA affected?
Yes, net.dv8tion:JDA is affected in releases prior to 6.1.3. Upgrade your dependency to 6.1.3 or later.
What CWE is associated with GHSA-93fv-4pm9-xp28?
GHSA-93fv-4pm9-xp28 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check Maven dependencies for GHSA-93fv-4pm9-xp28?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=net.dv8tion'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-93fv-4pm9-xp28",
  "modified" : "2025-12-09T17:23:54Z",
  "published" : "2025-12-09T17:23:54Z",
  "aliases" : [ ],
  "summary" : "JDA (Java Discord API) downloads external URLs when updating message components",
  "details" : "### Impact\n\nAnyone using untrusted message components may be affected. On versions >=6.0.0,<6.1.3 of JDA, the requester will attempt to download external media URLs from components if they are used in an update or send request.\n\nIf you are used `Message#getComponents` or similar to get a list of components and then send those components with `sendMessageComponents` or other methods, you might unintentionally download media from an external URL in the resolved media of a `Thumbnail`, `FileDisplay`, or `MediaGallery`.\n\n### Patches\n\nThis bug has been fixed in 6.1.3, and we recommend updating.\n\n### Workarounds\n\nAvoid sending components from untrusted messages or update to version 6.1.3.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "net.dv8tion:JDA"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0"
      }, {
        "fixed" : "6.1.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/discord-jda/JDA/security/advisories/GHSA-93fv-4pm9-xp28"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/discord-jda/JDA/commit/bb6d2ce5cf514429327c257f5c6fa95a137e3ab6"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/discord-jda/JDA"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-09T17:23:54Z",
    "nvd_published_at" : null
  }
}