DEV Community

johnettwawers
johnettwawers

Posted on

snow-cli Let a Subagent Approval Check Make the Wrong Decision

snow-cli Let a Subagent Approval Check Make the Wrong Decision

CVE-2026-138297 affects MayDay-wpf snow-cli through 0.9.14. The issue is in checkAndApproveTools() in source/utils/execution/subAgentToolApproval.ts. The subagent tool-approval component makes an improper authorization decision. Version 0.9.15 contains the fix.

Agentic command-line tools connect a language model to local files, shells, browsers and remote services. Approval prompts are part of the security boundary when those tools can take actions. A check that approves the wrong tool or skips the intended review path can let a subagent perform an action outside the operator's explicit grant.

Focus on the decision, not the prompt

An approval dialog is only useful if the code that runs the tool consults the same policy object that the dialog describes. Teams should compare the tool name, arguments, target resource and scope that were shown with the values used at execution time. Look for fallback paths that approve unknown tool names, default to an allow decision or trust a subagent's self-reported risk level.

The CVE record does not establish that every agent invocation is exploitable. The engineering response starts with the tool boundary: record what the subagent requested, what the operator approved and what actually ran. Reconcile those records during incident review.

Update and test

Upgrade to 0.9.15 or later after verifying the release artifact. Build a test harness with a harmless file writer and shell command. Attempt unapproved tool names, changed arguments, nested subagents and repeated requests after a denial. Confirm that unknown tools fail closed and that approval for one action does not become approval for another.

Review shell history, generated files and outbound connections from agents that ran the affected version. Revoke long-lived credentials stored in the CLI environment. Require short-lived, resource-scoped credentials for future runs, and keep destructive actions behind a separate human confirmation path.

References

Top comments (0)