Skip to content
MediumVulnerability

GHSA-5m6c-38r8-5w76: Dagu MCP DAG specification read bypasses path containment and workspace isolation

Published
Record updated
View JSON
Affected
  • github.com/dagu-org/dagu/v2 <= 2.10.7
Fixed in
2.11.0
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

The fix for CVE-2026-33344 is installed only in the chi HTTP handler chain, so the MCP service's in-process call to GetDAGSpec bypasses it. The dagu_read tool with target dag_spec can therefore read arbitrary .yaml/.yml files by absolute path, including with a viewer-role key, and it also crosses workspace isolation because GetDAGSpec skips the requireWorkspaceVisible check. The defect was confirmed at HEAD f6c039f, after v2.10.7.

Mitigation

The source suggests moving the containment check out of HTTP middleware and into locateDAG, rejecting any resolved path that does not fall under baseDir or a configured search path. It also suggests adding requireWorkspaceVisible to GetDAGSpec to match its sibling handlers.