CVE-2026-97662: Argument injection in AWS security-agent-mcp-server diff scan
AWS disclosed an argument injection vulnerability (CVE-2026-97662) in the open-source security-agent-mcp-server, a Model Context Protocol server AI assistants use to run local security scans. A crafted reference value passed to the diff scan can be interpreted as a command-line option, allowing a context-dependent actor to create, overwrite, or truncate arbitrary files outside the intended workspace, bypassing workspace-confinement protections. Versions >=0.1.1 and <0.2.0 are affected; the fix ships in version 0.2.0.
SECURITY · DEVOPS · AI · VULNERABILITY · SECURITY ADVISORY
PUBLISHED OCT 22, 2026 15:01 UTC
WHAT CHANGED
The diff scan operation in security-agent-mcp-server failed to properly sanitize a reference value, letting attacker-controlled input be parsed as a CLI flag instead of a revision string. This argument injection enables arbitrary file create/overwrite/truncate actions on the host outside the designated workspace directory, defeating the server's workspace-confinement control. AWS has released version 0.2.0 to remediate the issue; no workaround exists other than upgrading, though running diff scans only against trusted repositories and operating the server as a least-privileged user in an isolated environment can reduce exposure until patched.
WHY IT MATTERS
Any deployment running security-agent-mcp-server between versions 0.1.1 and 0.2.0 is exposed to arbitrary file manipulation triggered by untrusted scan inputs, which could corrupt host files, disrupt CI/scan pipelines, or be chained for further compromise if the server runs with elevated privileges. Because the server is invoked by AI assistants performing automated security scans, organizations using it in automated or agentic workflows should prioritize patching to prevent silent file tampering outside the intended workspace sandbox.
WHO IS AFFECTED
- PRODUCTS
- security-agent-mcp-server (awslabs/mcp repository)
- FEATURES
- diff scan operation
- CONFIGURATIONS
- Versions >= 0.1.1 and < 0.2.0
WHAT TO DO
- 01CRITICALAUTOMATABLE
Upgrade security-agent-mcp-server to version 0.2.0 or later to remediate CVE-2026-97662.
- 02HIGH
Audit and patch any forked or derivative copies of security-agent-mcp-server to incorporate the 0.2.0 fix.
- 03HIGH
Until upgraded, restrict diff scans to trusted repositories only to avoid triggering the argument injection.
- 04MEDIUM
Run the security-agent-mcp-server process as a least-privileged user in an isolated environment to limit impact of unauthorized file writes.
TIMELINE
- ANNOUNCED
- OCT 1, 2026
SOURCES
- PRIMARY SOURCEAMAZON WEB SERVICES, INC.
CVE-2026-97662 - Argument injection in AWS security-agent-mcp-server diff scan
PUBLISHED OCT 1, 2026VIEW SOURCE
VERIFICATION
ShiftWire summarizes and analyzes changes from the cited sources. Always review the primary source before implementing material changes.