Skip to content

AAK-MCP-OMNIGENT-CVE-2026-62674-001: Omnigent shared-agent swap injects a stdio MCP command (below 0.3.0)

Severity
CRITICAL
Category
Supply Chain (supply-chain)
Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py
Auto-fixable
No.
SARIF name
OmnigentSharedAgentMcpInjection

What it detects

omnigent before 0.3.0 checks LEVEL_EDIT on the session in PUT /sessions/{session_id}/agent but never rejects a bound shared or template agent whose agent.session_id is None. An authenticated user with edit access to one session can therefore replace that shared agent bundle through omnigent/server/routes/sessions.py, attach a stdio MCP server, and have every later session that uses the shared agent launch an attacker-chosen command through omnigent/tools/mcp.py, running with the Omnigent runner's privileges (CVE-2026-62674, CVSS 3.1 9.0, CWE-94). The blast radius is the point: the injection is written once into shared state and executes for every consumer of it afterwards. Fixed in 0.3.0.

How to fix

Upgrade omnigent to >= 0.3.0 and pin it. Because the payload persists in a shared agent bundle rather than in a single session, upgrading does not undo an injection that already landed: audit shared and template agents for stdio MCP server entries you did not add, and treat session edit rights as equivalent to shared-agent edit rights until you are past 0.3.0.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-MCP-OMNIGENT-CVE-2026-62674-001

Limitations

Reads omnigent in requirements*.txt at any depth and, at the project root only, in pyproject.toml, Pipfile, .mcp.json, mcp.json, claude_desktop_config.json and the Pipfile.lock, poetry.lock and uv.lock lockfiles, taking the lowest version a range allows and reporting a reference that states no version. The dependency is not read when it is declared in a sub-directory manifest (services/api/pyproject.toml) or in a lockfile format the reader does not parse (pdm.lock). A file over 2 MB, or a lockfile over 32 MiB, is not read. A declaration nested more than 64 levels deep in package.json, a TOML manifest or an MCP config (an MCP server more than 62) is still judged, and reported without a line; a lockfile entry keeps its line at any depth.

References

  • CVE: CVE-2026-62674
  • OWASP MCP Top 10: MCP04:2025 (Software Supply Chain Attacks & Dependency Tampering), MCP05:2025 (Command Injection & Execution), MCP07:2025 (Insufficient Authentication & Authorization)
  • OWASP Agentic Top 10: ASI03 (Identity and Privilege Abuse), ASI04 (Agentic Supply Chain Vulnerabilities), ASI05 (Unexpected Code Execution (RCE))
  • Adversa AI MCP Top 25 (AAK-defined ids): ADV-INJECT-01 (Shell Injection via MCP)
  • CSA AI Controls Matrix (AICM): IVS-04, IAM-01

All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-MCP-OMNIGENT-CVE-2026-62674-001.md: the page then shows that text, with the registry reference appended under it.