CVE-2026-102943
Dagu MCP DAG specification read bypasses path containment and workspace isolation
Also known as GHSA-5m6c-38r8-5w76, GO-2026-6964
Mitigation
- Upgrade github.com/dagu-org/dagu/v2 to 2.11.0 or later.
Who should check
- Projects that depend on Go package github.com/dagu-org/dagu/v2 (<= 2.10.7)
Vulnerability facts
- Affected
- github.com/dagu-org/dagu/v2 <= 2.10.7
- Fixed in
- 2.11.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 6.5 (v3.1, GitHub)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.60% chance of exploitation in 30 days (percentile 43, 2026-11-28)
- CWE
- CWE-22, CWE-863
- Modified
Description
## Summary The traversal fix for CVE-2026-33344 was implemented as HTTP middleware installed only in the chi handler chain, but the MCP service calls the same API method in process, so arbitrary YAML file read is reachable again through the MCP tool surface with a viewer-role key. Read-only, limited to .yaml/.yml targets. Confirmed at HEAD f6c039f (post v2.10.7). ## The defect The fix for CVE-2026-33344 is a reflection-based HTTP middleware (internal/frontend/.../api.go, roughly lines 553-597) that inspects a request field named FileName and rejects anything that is not a plain name. It is installed in exactly one place: the chi strict-handler chain (api.go around line 419). The MCP service does not go through that chain. internal/service/mcp/server.go calls the API method directly as an in-process Go call: ```go func (svc *Service) getDAGSpec(ctx context.Context, name string) (map[string]any, error) { // line 307 resp, err := svc.api.GetDAGSpec(ctx, daguapi.GetDAGSpecRequestObject{ FileName: daguapi.DAGFileName(name), // line 309 }) ``` No HTTP request is constructed, so no middleware executes, and the underlying resolver is still uncontained: ```go func (store *Storage) locateDAG(nameOrPath string) (string, error) { // line 1041 if strings.Contains(nameOrPath, string(filepath.Separator)) { // line 1042 foundPath, err := findDAGFile(nameOrPath) if err == nil { return foundPath, nil // line 1045, no containment check } } ``` An absolute path contains a separator, so it takes the first branch and is returned as-is, with no check that it falls under store.baseDir or any entry in store.searchPaths. ## Verification Verified end to end using the project's own conformance/mcptest harness against a real running HTTP server, not by source reading: ``` dagu_read {"target":"dag_spec","name":"/abs/outside/secret.yaml"} -> HTTP 200, full file contents returned in data.spec ``` This also succeeded with a viewer-role API key on an auth-enabled server (auth.mode: builtin), so it is not admin-only. Control test that makes this a residual: the equivalent REST request is correctly blocked (400, "name must only contain alphanumeric characters..."). The HTTP lane is fixed; the MCP lane is not. Bounded impact: read only (dagu_change and dagu_execute are both blocked by spec-level name validation; I tested both); only .yaml/.yml targets. Secondary: GetDAGSpec skips the requireWorkspaceVisible check its sibling handlers run, so this also crosses workspace isolation. ## Suggested fix Move the containment check out of HTTP middleware and into locateDAG itself, rejecting any resolved path that does not fall under baseDir or a configured search path. A middleware that runs on only one of two transports into the same API cannot hold the boundary; the resolver is the correct chokepoint since both transports converge there. Separately, add requireWorkspaceVisible to GetDAGSpec to match its siblings. ## Tooling AI assistance was used while investigating. The traversal was reproduced against a real running server through the project's own MCP conformance harness, including with a viewer-role API key, and the REST control test confirms the HTTP lane is blocked. Confirmed in the uncontained locateDAG branch and the direct in-process GetDAGSpec call at HEAD.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/dagu-org/dagu/v2 | <= 2.10.7 | 2.11.0 | ghsa |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-102943. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-102943.md Affected: github.com/dagu-org/dagu/v2 <= 2.10.7 Fixed in: 2.11.0 Steps: 1. Search this machine and project for github.com/dagu-org/dagu/v2 (Go): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
Vendor advisories
Patches
FAQ
Is CVE-2026-102943 being exploited?
There is no confirmed exploitation: CVE-2026-102943 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.60% chance of exploitation in the next 30 days (as of 2026-11-28).
How serious is CVE-2026-102943?
Medium: CVSS 6.5 (v3.1, scored by GitHub). Remote, login needed.
Which versions are affected by CVE-2026-102943?
github.com/dagu-org/dagu/v2 <= 2.10.7.
Is there a fix for CVE-2026-102943?
Yes. Fixed in 2.11.0. Upgrade github.com/dagu-org/dagu/v2 to 2.11.0 or later.
How do I check if I'm affected by CVE-2026-102943?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.