GHSA-93fv-4pm9-xp28 JDA (Java Discord API) downloads external URLs when updating message components
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| net.dv8tion/JDA(Maven) | = 6.0.0; = 6.0.0-preview; = 6.0.0-preview_DEV; = 6.1.0 +3 more | 6.1.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| net.dv8tion/JDA(Maven) | >= 6.0.0, < 6.1.3 | 6.1.3 |
| net.dv8tion/JDA(Maven) | = 6.0.0 | No fix listed |
| net.dv8tion/JDA(Maven) | = 6.0.0-preview | No fix listed |
| net.dv8tion/JDA(Maven) | = 6.0.0-preview_DEV | No fix listed |
| net.dv8tion/JDA(Maven) | = 6.1.0 | No fix listed |
| net.dv8tion/JDA(Maven) | = 6.1.1 | No fix listed |
| net.dv8tion/JDA(Maven) | = 6.1.2 | No fix listed |
References
- github.com vendor-advisory
- github.com patch
- github.com product
- github.com