# CVE-2026-49254: Dragonfly Manager OAuth client_secret disclosure in API

Source: https://junglewise.ai/threats/cve-2026-49254-dragonfly-manager-oauth-client-secret-disclosure-in-api  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-15. Updated: 2026-07-02  
License: CC BY 4.0 with a link back

CVE-2026-49254 · Severity: medium · CVSS 4 · Published 2026-09-15

Dragonfly Manager, a component used for managing P2P content distribution, contains a security flaw that allows anyone with network access to view sensitive OAuth credentials. These credentials, specifically the 'client_secret' for GitHub or Google integrations, are intended to be private. If an attacker obtains these secrets, they could potentially impersonate the application to perform unauthorized actions or launch phishing attacks against the organization's users.

Technologies: [d7y.io/dragonfly/v2 (Go)](https://junglewise.ai/threats/technologies/d7y-io-dragonfly-v2). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2026-49254 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-49254 being exploited in the wild.

**How severe is CVE-2026-49254?** Medium severity, with a CVSS score of 4, published 15 September 2026.

**Which products and versions are affected?** DragonflyOSS Dragonfly Manager <= 2.4.3; d7y.io/dragonfly/v2 (Go) <= 2.4.3, SEMVER:introduced=0,fixed=2.4.4.

**Is there a fix for CVE-2026-49254?** Yes. d7y.io/dragonfly/v2 (Go): upgrade to 2.4.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-49254 attacked?** It is attacked over the network, in a hosted service.

**Am I affected by CVE-2026-49254?** Check whether you run DragonflyOSS Dragonfly Manager or d7y.io/dragonfly/v2 (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- d7y.io/dragonfly/v2 (Go): upgrade to 2.4.4 or later

  ```sh
  go get d7y.io/dragonfly/v2@v2.4.4
  ```


## Technical details

The Dragonfly Manager API fails to apply authentication and authorization middleware (JWT and RBAC) to the GET methods of the /api/v1/oauth and /api/v1/oauth/:id endpoints. Consequently, the application serializes the entire Oauth database model into the JSON response, including the 'client_secret' field which lacks a 'json:"-"' tag. An unauthenticated remote attacker can exploit this to retrieve sensitive credentials for configured OAuth providers like GitHub or Google. This vulnerability was addressed in version 2.4.4 by applying the necessary middleware to the route group and excluding the secret field from JSON serialization.

## Affected products

- DragonflyOSS Dragonfly Manager <= 2.4.3

## Identifiers

- CVE-2026-49254
- GHSA-4q9j-6299-gxmr
- GO-2026-5901

## Timeline

- 2026-06-09: disclosed: Initial disclosure on GitHub Advisory Database
- 2026-07-02: advisory: Advisory updated and published

## References

- [https://api.github.com/users/tonghuaroot](https://api.github.com/users/tonghuaroot)
- [https://github.com/tonghuaroot](https://github.com/tonghuaroot)
- [https://api.github.com/users/tonghuaroot/gists%7B/gist_id%7D](https://api.github.com/users/tonghuaroot/gists%7B/gist_id%7D)
- [https://api.github.com/users/tonghuaroot/repos](https://api.github.com/users/tonghuaroot/repos)
- [https://avatars.githubusercontent.com/u/23011166?v=4](https://avatars.githubusercontent.com/u/23011166?v=4)
- [https://api.github.com/users/tonghuaroot/events%7B/privacy%7D](https://api.github.com/users/tonghuaroot/events%7B/privacy%7D)

## Related threats

- [Dragonfly Dragonfly scheduler unauthenticated SSRF in DownloadTinyFile](https://junglewise.ai/threats/cve-2026-54637-dragonfly-dragonfly-scheduler-unauthenticated-ssrf-in)
- [GO-2026-4356 - Dragonfly Manager Job API Unauthenticated Access in d7y.io/dragonfly](https://junglewise.ai/threats/cve-2026-24124-dragonfly-manager-job-api-unauthenticated-access)
- [GO-2025-3972 - Dragonfly vulnerable to timing attacks against Proxy’s basic authentication in d7y.io/dragonfly](https://junglewise.ai/threats/cve-2025-59350-dragonfly-vulnerable-to-timing-attacks-against-proxy-s-basic)
- [GO-2025-3968 - Dragonfly vulnerable to server-side request forgery in d7y.io/dragonfly](https://junglewise.ai/threats/cve-2025-59346-dragonfly-vulnerable-to-server-side-request-forgery)
- [GO-2025-3969 - DragonFly's manager generates mTLS certificates for arbitrary IP addresses in d7y.io/dragonfly](https://junglewise.ai/threats/cve-2025-59353-dragonfly-s-manager-generates-mtls-certificates-for-arbitrary-ip)
