Dagu MCP DAG specification read bypasses path containment and workspace isolation
Dagu is a workflow tool with an MCP service. An earlier fix for a path traversal flaw was built as HTTP middleware, so it guards only requests that pass through the web handler chain. The MCP service never passes through that chain. It calls the same DAG specification method in process, and the store code below it still returns a path with a separator in it as-is, with no check that the file sits in the base folder or a search path. A caller holding a viewer role key can use the MCP tool to read any YAML file on the host, past workspace limits that hold on the web side. The read is limited to files ending in .yaml or .yml. Versions at or below 2.10.7 are affected. Version 2.11.0 fixes it. CVE-2026-102943 is assigned, and the GitHub user arpitjain099 is credited as reporter.
- Affected artifact
- dagu-org/dagu — MCP service getDAGSpec (internal/service/mcp/server.go)mcp server
- Affected versions
- github.com/dagu-org/dagu ≥ 0 to < 2.11.0
- Fixed in
- 2.11.0
- Last verified
- 2026-12-06
- Upstream aliases
- GHSA-5m6c-38r8-5w76CVE-2026-102943
Severity
CVSS 4.0 score 6.5 (Medium), scored by HOL.
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
What this means
GHSA-5m6c-38r8-5w76 / CVE-2026-102943: dagu's MCP service calls GetDAGSpec in process, bypassing the HTTP-only traversal guard, so a viewer-role key can read arbitrary .yaml/.yml files. Fixed in 2.11.0; upgrade from 2.10.7 or earlier.
What to do
Upgrade dagu to 2.11.0 or later. On affected versions, do not expose the MCP service to viewer-role keys you do not trust with host YAML files.
Evidence
Precondition. A dagu deployment at or below 2.10.7 with the MCP service reachable, and a viewer-role API key.
Source proof. Per the advisory, its verification ran the project's own conformance harness against a running server and read a YAML file outside the workspace through the MCP tool. HOL did not run the service; this rests on the advisory.
Version determination. Determined by range — The advisory states dagu at or below 2.10.7 is affected, with 2.11.0 as the first patched version.
Disclosure
Disclosure state: independent public · Publisher: dagu-org/dagu
Naming decision: named. Vendor named as drafted. Finding already public with fix published; naming call sits with this job under Nov 24-25 2026 rules.
Vendor response: fixed — Fix published in 2.11.0.
2026-07-26 · vendor action
Maintainers published advisory GHSA-5m6c-38r8-5w76 with the fix in 2.11.0.
2026-12-06 · guard update
Status moved from draft to triaged: Transition to triaged: record is in scope, sources are primary, finding already public and fixed upstream in 2.11.0, CVE-2026-102943 assigned.
2026-12-06 · guard update
Status moved from triaged to evidence_verified: Transition to evidence_verified: record is in scope, sources are primary, finding already public and fixed upstream in 2.11.0, CVE-2026-102943 assigned.
2026-12-06 · disclosure
Status moved from evidence_verified to public: Transition to public: record is in scope, sources are primary, finding already public and fixed upstream in 2.11.0, CVE-2026-102943 assigned.
Affected artifact references
Cite this record
[HOL-VULN-2026-0037] Dagu MCP DAG specification read bypasses path containment and workspace isolation — HOL Agent Vulnerability Ledger, HOL (hol.org), 2026. https://hol.org/guard/security/vulnerabilities/hol-vuln-2026-0037
Canonical URL: https://hol.org/guard/security/vulnerabilities/hol-vuln-2026-0037
Found an error in this record, or want to appeal it? Report an issue or appeal.
Appeal or correct this record
Maintainers and affected parties can submit evidence, dispute the record, or request a correction through the disclosure page. A dispute marks the record visibly disputed — it never silently disappears.