Dagu SSE Authentication Bypass in Basic Auth Mode
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-306.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| dagu-org | dagu | before 2.2.4 | 2.2.4 | Patch available | CNA |
| — | dagu (npm) | before 2.2.4 | 2.2.4 | Patch available | GHSA-9wmw-9wph-2vwp |
- dagu Vendordagu-org Affected before 2.2.4 Fixed in 2.2.4 Patch available CNA
- dagu (npm) Vendor— Affected before 2.2.4 Fixed in 2.2.4 Patch available GHSA-9wmw-9wph-2vwp
Remediation
- Fix · CNA dagu (dagu-org) Fixed in 2.2.4
- Fix · GHSA-9wmw-9wph-2vwp dagu (npm) Fixed in 2.2.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-31882
- 2026-10-03 Alias added: GHSA-9wmw-9wph-2vwp
References
Patch 2
More dagu-org Dagu vulnerabilities
- TI-2026-24438 Dagu has a Path Traversal via `dagRunId` in Inline DAG Execution CVSS 3.1CRITICAL 9.1
- TI-2026-21984 Dagu: Path traversal in DAG creation allows arbitrary YAML file write outside DAGs directory CVSS 4.0HIGH 7.1
- TI-2026-25750 Dagu has an incomplete fix for CVE-2026-27598: path traversal via %2F-encoded slashes in locateDAG CVSS 3.1HIGH 8.1
Sources
- CVE-2026-31882 · CVE Program
- CVE-2026-31882 · NVD
- FIRST EPSS
- GHSA-9wmw-9wph-2vwp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences