{"cve":"CVE-2026-31882","nvd":{"published":"2026-03-13T19:54:37.000","modified":"2026-06-17T10:34:41.403","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-306"],"references":["https://github.com/dagu-org/dagu/commit/064616c9b80c04824c1c7c357308f77f3f24d775","https://github.com/dagu-org/dagu/pull/1752","https://github.com/dagu-org/dagu/releases/tag/v2.2.4","https://github.com/dagu-org/dagu/security/advisories/GHSA-9wmw-9wph-2vwp"],"products":["dagu:dagu"],"source":"nvd","synced_at":"2026-10-19T22:25:53.701907451+00:00"},"epss":{"cve":"CVE-2026-31882","score":0.00827,"percentile":0.5747,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-9wmw-9wph-2vwp","url":"https://osv.dev/vulnerability/GHSA-9wmw-9wph-2vwp","summary":"Dagu: SSE Authentication Bypass in Basic Auth Mode","modified":"2026-03-16T17:16:39.432766Z","packages":[{"ecosystem":"npm","name":"dagu","purl":"pkg:npm/dagu","ranges":["<2.2.4"],"fixed":["2.2.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}