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

Medium 5.5 Published Updated

Attackers can force Dragonfly components to access internal services via weak URL validation in the Manager API, enabling internal network probing.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-59346?

CVE-2025-59346 is a medium-severity server-side request forgery vulnerability in dragonflyoss dragonfly, published on 17 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-918

Which versions are affected by CVE-2025-59346?

6 open source packages ship an affected version, including github.com/dragonflyoss/dragonfly and d7y.io/dragonfly/v2. It affects 1 product.

PackageAffectedFixed in
github.com/dragonflyoss/dragonfly GoAll versionsNone
github.com/dragonflyoss/dragonfly GoAll versions2.1.0
github.com/dragonflyoss/dragonfly GoAll versions2.1.0
d7y.io/dragonfly/v2 GoAll versions2.1.0
d7y.io/dragonfly/v2 GoAll versions2.1.0
d7y.io/dragonfly/v2 GoAll versions2.1.0

Products include Linuxfoundation Dragonfly.

How do I fix CVE-2025-59346?

Upgrade github.com/dragonflyoss/dragonfly to 2.1.0 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2025-59346 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59346 exists.

Sources

Also known as GHSA-g2rq-jv54-wcpr, GO-2025-3968.

Is CVE-2025-59346 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free