# GHSA-93fv-4pm9-xp28: JDA (Java Discord API) downloads external URLs when updating message components

> JDA library allows Server-Side Request Forgery by downloading external URLs from untrusted message components, potentially exposing internal resources or causing DoS.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 9 Dec 2025

## What is GHSA-93fv-4pm9-xp28?

GHSA-93fv-4pm9-xp28 is a server-side request forgery vulnerability in net.dv8tion:JDA, published on 9 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

### 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.

## Which versions are affected by GHSA-93fv-4pm9-xp28?

2 open source packages ship an affected version, including net.dv8tion:JDA.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `net.dv8tion:JDA` | Maven | From 6.0.0 | 6.1.3 |
| `net.dv8tion:JDA` | Maven | From 6.0.0 | 6.1.3 |

## How do I fix GHSA-93fv-4pm9-xp28?

Upgrade net.dv8tion:JDA to 6.1.3 or later.

## Is GHSA-93fv-4pm9-xp28 being exploited?

There is no known exploitation of GHSA-93fv-4pm9-xp28 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-93fv-4pm9-xp28 and fix it if it is affected.

What it is: GHSA-93fv-4pm9-xp28 is a server-side request forgery vulnerability in net.dv8tion:JDA, published on 9 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-93fv-4pm9-xp28 in the wild and no public exploit code.

Affected packages and fixed versions:
- net.dv8tion:JDA (Maven): affected from 6.0.0; fixed in 6.1.3
- net.dv8tion:JDA (Maven): affected from 6.0.0; fixed in 6.1.3

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-93fv-4pm9-xp28/ (Markdown: https://insights.sbomify.com/GHSA-93fv-4pm9-xp28/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-93fv-4pm9-xp28

---
From sbomify Insights: https://insights.sbomify.com/GHSA-93fv-4pm9-xp28/
Summaries are generated and may contain mistakes; the official description above is the record.
