CVE-2025-59347: D7y.io/dragonfly/v2 Dragonfly's Manager Makes Requests To Vulnerability

MODERATE
Advisory Identifier: GHSA-98x5-jw98-6c97
CWE-287 CWE-295
Published
Advisory Summary

CVE-2025-59347 is a MODERATE dragonfly's manager makes requests to vulnerability (CWE-287: Improper Authentication) affecting D7y.io/dragonfly/v2 libraries in the Go ecosystem. The issue involves dragonfly's manager makes requests to external endpoints with disabled tls authentication. Remediation is available by upgrading affected packages to version 2.1.0.

CVE-2025-59347 at a Glance

CVE Identifier CVE-2025-59347
GHSA Identifier GHSA-98x5-jw98-6c97
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-287: Improper Authentication
Affected Product D7y.io/dragonfly/v2
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2025-59347

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

d7y.io/dragonfly/v2 fixed: 2.1.0
Upgrade d7y.io/dragonfly/v2 to 2.1.0
github.com/dragonflyoss/dragonfly fixed: 2.1.0
Upgrade github.com/dragonflyoss/dragonfly to 2.1.0
Verify Direct and Transitive Dependencies

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

inspect dependencies for d7y.io/dragonfly/v2

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-59347, inspect your project dependencies for D7y.io/dragonfly/v2:

inspect dependencies for d7y.io/dragonfly/v2

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

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In D7y.io/dragonfly/v2, 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 The Manager disables TLS certificate verification in two HTTP clients (figures 3.1 and 3.2). The clients are not configurable, so users have no way to re-enable the verification. ```golang func getAuthToken(ctx context.Context, header http.Header) (string, error) { [skipped] client := &http.Client{ Timeout: defaultHTTPRequesttimeout, Transport: &http.Transport{ TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, }, } [skipped] } ``` A Manager processes dozens of preheat jobs. An adversary performs a network-level Man-in-the-Middle attack, providing invalid data to the Manager. The Manager preheats with the wrong data, which later causes a denial of service and file integrity problems. ### Patches - Dragonfy v2.1.0 and above. ### Workarounds There are no effective workarounds, beyond upgrading. ### References A third party security audit was performed by Trail of Bits, you can see the [full report](https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf). If you have any questions or comments about this advisory, please email us at [dragonfly-maintainers@googlegroups.com](mailto:dragonfly-maintainers@googlegroups.com).

CVE-2025-59347 Affected D7y.io/dragonfly/v2 Versions

2 component(s)
Fixed Versions:
2.1.0
Product / Package Ecosystem Affected Versions Fixed Version
d7y.io/dragonfly/v2
Go
< 2.1.0
2.1.0
github.com/dragonflyoss/dragonfly
Go
< 2.1.0
2.1.0

References

Frequently Asked Questions

What is CVE-2025-59347?
CVE-2025-59347 is a security vulnerability in D7y.io/dragonfly/v2 involving Dragonfly's manager makes requests to external endpoints with disabled TLS authentication under CWE-287: Improper Authentication.
Which D7y.io/dragonfly/v2 versions are affected?
Affected versions include releases prior to 2.1.0 across affected packages: d7y.io/dragonfly/v2, github.com/dragonflyoss/dragonfly.
What version fixes CVE-2025-59347?
Upgrading to 2.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is d7y.io/dragonfly/v2 affected?
Yes, d7y.io/dragonfly/v2 is affected in releases prior to 2.1.0. Upgrade your dependency to 2.1.0 or later.
Is github.com/dragonflyoss/dragonfly affected?
Yes, github.com/dragonflyoss/dragonfly is affected in releases prior to 2.1.0. Upgrade your dependency to 2.1.0 or later.
What CWE is associated with CVE-2025-59347?
CVE-2025-59347 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Go dependencies for CVE-2025-59347?
Run the dependency tree command: 'inspect dependencies for d7y.io/dragonfly/v2'. 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-98x5-jw98-6c97",
  "modified" : "2025-09-26T16:16:47Z",
  "published" : "2025-09-17T19:28:14Z",
  "aliases" : [ "CVE-2025-59347" ],
  "summary" : "Dragonfly's manager makes requests to external endpoints with disabled TLS authentication",
  "details" : "### Impact\n\nThe Manager disables TLS certificate verification in two HTTP clients (figures 3.1 and 3.2). The clients are not configurable, so users have no way to re-enable the verification.\n\n```golang\nfunc getAuthToken(ctx context.Context, header http.Header) (string, error) { [skipped]\n       client := &http.Client{\n             Timeout: defaultHTTPRequesttimeout,\n             Transport: &http.Transport{\n                    TLSClientConfig: &tls.Config{InsecureSkipVerify: true},\n             },\n}\n[skipped]\n}\n```\n\nA Manager processes dozens of preheat jobs. An adversary performs a network-level Man-in-the-Middle attack, providing invalid data to the Manager. The Manager preheats with the wrong data, which later causes a denial of service and file integrity problems.\n\n### Patches\n\n- Dragonfy v2.1.0 and above.\n\n### Workarounds\n\nThere are no effective workarounds, beyond upgrading.\n\n### References\n\nA third party security audit was performed by Trail of Bits, you can see the [full report](https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf).\n\nIf you have any questions or comments about this advisory, please email us at [dragonfly-maintainers@googlegroups.com](mailto:dragonfly-maintainers@googlegroups.com).",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/dragonflyoss/dragonfly"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.1.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "d7y.io/dragonfly/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/dragonflyoss/dragonfly/security/advisories/GHSA-98x5-jw98-6c97"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-59347"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/dragonflyoss/dragonfly"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-3966"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287", "CWE-295" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-17T19:28:14Z",
    "nvd_published_at" : "2025-09-17T20:15:36Z"
  }
}