Dagu MCP DAG spec read bypasses path restrictions and workspace isolation
Dagu MCP DAG specification read bypasses path containment and workspace isolation
Dagu 2.10.7 and earlier have a path restriction bypass vulnerability in the MCP channel (CVE-2026-102943 / GHSA-5m6c-38r8-5w76); a viewer-role API key can read any .yaml/.yml file on the server through MCP tools, fixed in 2.11.0. The cause is that the fix for CVE-2026-33344 was installed only in the chi handler chain as HTTP middleware, while the MCP service calls the same API method directly in-process, so the middleware does not execute, and the underlying locateDAG parser does not perform a containment check on absolute paths containing separators; GetDAGSpec also skips the requireWorkspaceVisible check that sibling handlers perform, thus also breaking workspace isolation. The recommendation is to move the containment check into locateDAG itself and add requireWorkspaceVisible to GetDAGSpec.
The fix was installed only in HTTP middleware while in-process MCP calls bypass it, showing that the security boundary should be placed at the parsing layer where the two channels converge.