# CVE-2026-49254: Dragonfly Manager OAuth provider client_secret disclosure via unauthenticated GET /api/v1/oauth

> Unauthenticated attackers can retrieve OAuth client secrets from Dragonfly Manager if OAuth providers are configured, potentially enabling identity provider abuse.

- **Severity:** Low 2.9 (`CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 15 Sep 2026
- **Updated:** 15 Sep 2026
- **Also known as:** GHSA-4q9j-6299-gxmr, GO-2026-5901

## What is CVE-2026-49254?

CVE-2026-49254 is a low-severity vulnerability in dragonflyoss dragonfly, published on 15 Sep 2026. 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. Prior to 2.4.4, manager/router/router.go registers GET /api/v1/oauth and GET /api/v1/oauth/:id without jwt.MiddlewareFunc() or RBAC(), while manager/handlers/oauth.go returns models.Oauth records and manager/models/oauth.go exposes Oauth.ClientSecret as client_secret in JSON. When an administrator has configured a GitHub or Google OAuth provider, an unauthenticated network client can reach GetOauth or GetOauths, load the stored models.Oauth record, and obtain the provider's client secret, client identifier, and redirect URL. The earlier GHSA-j8hf-cp34-g4j7 remediation protected the /jobs group only and did not protect these OAuth GET handlers. Disclosure of client_secret can enable abuse of the configured identity-provider integration, subject to the provider's redirect URI restrictions. This issue is fixed in 2.4.4.

Weakness: CWE-306 (Missing Authentication for Critical Functionality), CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor)

## Which versions are affected by CVE-2026-49254?

3 open source packages ship an affected version, including d7y.io/dragonfly/v2.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `d7y.io/dragonfly/v2` | Go | All versions | 2.4.4 |
| `d7y.io/dragonfly/v2` | Go | All versions | 2.4.4 |
| `d7y.io/dragonfly/v2` | Go | All versions | 2.4.4 |

## How do I fix CVE-2026-49254?

Upgrade d7y.io/dragonfly/v2 to 2.4.4 or later.

## Is CVE-2026-49254 being exploited?

There is no known exploitation of CVE-2026-49254 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-49254 and fix it if it is affected.

What it is: CVE-2026-49254 is a low-severity vulnerability in dragonflyoss dragonfly, published on 15 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-49254 in the wild and no public exploit code.

Affected packages and fixed versions:
- d7y.io/dragonfly/v2 (Go): affected all versions; fixed in 2.4.4
- d7y.io/dragonfly/v2 (Go): affected all versions; fixed in 2.4.4
- d7y.io/dragonfly/v2 (Go): affected all versions; fixed in 2.4.4

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-49254/ (Markdown: https://insights.sbomify.com/CVE-2026-49254/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-49254
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-49254
- OSV: https://osv.dev/vulnerability/CVE-2026-49254

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-49254/
Summaries are generated and may contain mistakes; the official description above is the record.
