# CVE-2026-31882: Dagu SSE Authentication Bypass in Basic Auth Mode

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.88%, higher than 60% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-13T15:05:32.000Z
- Modified: 2026-06-17T10:34:41.403Z
- Also known as: GHSA-9wmw-9wph-2vwp
- Weaknesses: CWE-306
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Dagu is a workflow engine with a built-in Web user interface. Prior to 2.2.4, when Dagu is configured with HTTP Basic authentication (DAGU_AUTH_MODE=basic), all Server-Sent Events (SSE) endpoints are accessible without any credentials. This allows unauthenticated attackers to access real-time DAG execution data, workflow configurations, execution logs, and queue status — bypassing the authentication that protects the REST API. The buildStreamAuthOptions() function builds authentication options for SSE/streaming endpoints. When the auth mode is basic, it returns an auth.Options struct with BasicAuthEnabled: true but AuthRequired defaults to false (Go zero value). The authentication middleware at internal/service/frontend/auth/middleware.go allows unauthenticated requests when AuthRequired is false. This vulnerability is fixed in 2.2.4.

(As written by CVE List.)

## Affected

- dagu-org dagu: < 2.2.4
- dagu (npm): before 2.2.4
- dagu dagu: before 2.2.4

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/dagu-org/dagu/security/advisories/GHSA-9wmw-9wph-2vwp> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/dagu-org/dagu/pull/1752> (issue-tracking, patch, web)
- <https://github.com/dagu-org/dagu/commit/064616c9b80c04824c1c7c357308f77f3f24d775> (patch, web)
- <https://github.com/dagu-org/dagu/releases/tag/v2.2.4> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-31882> (advisory)
- <https://github.com/dagu-org/dagu> (package)

## Sources

- CVE List: [CVE-2026-31882](https://www.cve.org/CVERecord?id=CVE-2026-31882), CVE Terms of Use, modified 2026-03-13
- GitHub Advisory Database: [GHSA-9wmw-9wph-2vwp](https://github.com/advisories/GHSA-9wmw-9wph-2vwp), CC-BY-4.0, modified 2026-03-16
- NVD: [CVE-2026-31882](https://nvd.nist.gov/vuln/detail/CVE-2026-31882), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-31882 · Whole record: https://cve.day/CVE-2026-31882.json · Rebuilt by cve.day 2026-11-25T22:59:15.883Z
