{"id":"CVE-2026-31882","state":"PUBLISHED","title":"Dagu SSE Authentication Bypass in Basic Auth Mode","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.","publishedAt":"2026-03-13T19:28:25.615Z","updatedAt":"2026-03-13T19:43:56.406Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["dagu-org dagu"],"affected":[{"vendor":"dagu-org","product":"dagu","versions":[{"version":"< 2.2.4","status":"affected"}]}],"references":["https://github.com/dagu-org/dagu/security/advisories/GHSA-9wmw-9wph-2vwp","https://github.com/dagu-org/dagu/pull/1752","https://github.com/dagu-org/dagu/commit/064616c9b80c04824c1c7c357308f77f3f24d775","https://github.com/dagu-org/dagu/releases/tag/v2.2.4"],"weaknesses":["CWE-306"],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/31xxx/CVE-2026-31882.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-31882","state":"PUBLISHED","datePublished":"2026-03-13T19:28:25.615Z","dateUpdated":"2026-03-13T19:43:56.406Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-03-09T21:59:02.686Z"},"containers":{"cna":{"title":"Dagu SSE Authentication Bypass in Basic Auth Mode","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"dagu-org","product":"dagu","versions":[{"version":"< 2.2.4","status":"affected"}]}],"references":[{"url":"https://github.com/dagu-org/dagu/security/advisories/GHSA-9wmw-9wph-2vwp","name":"https://github.com/dagu-org/dagu/security/advisories/GHSA-9wmw-9wph-2vwp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/dagu-org/dagu/pull/1752","name":"https://github.com/dagu-org/dagu/pull/1752","tags":["x_refsource_MISC"]},{"url":"https://github.com/dagu-org/dagu/commit/064616c9b80c04824c1c7c357308f77f3f24d775","name":"https://github.com/dagu-org/dagu/commit/064616c9b80c04824c1c7c357308f77f3f24d775","tags":["x_refsource_MISC"]},{"url":"https://github.com/dagu-org/dagu/releases/tag/v2.2.4","name":"https://github.com/dagu-org/dagu/releases/tag/v2.2.4","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-306","lang":"en","description":"CWE-306: Missing Authentication for Critical Function","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-03-13T19:28:25.615Z"},"source":{"advisory":"GHSA-9wmw-9wph-2vwp","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-03-13T19:43:49.630099Z","id":"CVE-2026-31882","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-03-13T19:43:56.406Z"}}]}}}