Skip to main content
Vulnerability Database/CVE-2026-109331

CVE-2026-109331: Network-AI Auth Bypass Vulnerability

CVE-2026-109331 is an authentication bypass flaw in Network-AI versions 5.14.0 to 5.15.1 that allows attackers to evade security controls. This post explains the technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-109331 Overview

CVE-2026-109331 is a security control bypass vulnerability in Network-AI versions 5.14.0 before 5.15.2. The flaw resides in the ClaudeHookBridge PreToolUse hook, which evaluates deny patterns only against the first present candidate field. A prompt-injected agent can place dangerous payloads in alternate fields such as Write content or an MCP script parameter alongside a benign file_path or command. This positioning evades the configured denyPatterns, allowing an attacker to write web shells or execute scripts through the AI agent.

Critical Impact

Attackers who achieve prompt injection can bypass hook-based safety controls to drop web shells and execute arbitrary scripts on the host running Network-AI.

Affected Products

  • Network-AI 5.14.0 through versions prior to 5.15.2
  • Deployments using the ClaudeHookBridge PreToolUse hook
  • Environments relying on denyPatterns for tool-call filtering

Discovery Timeline

  • 2026-10-12 - CVE-2026-109331 published to the National Vulnerability Database (NVD)
  • 2026-10-12 - Last updated in NVD database

Technical Details for CVE-2026-109331

Vulnerability Analysis

The vulnerability is classified under [CWE-436] Interpretation Conflict. Network-AI uses ClaudeHookBridge as a PreToolUse hook to inspect agent tool invocations before execution. The hook extracts a single candidate field from the tool call and tests it against the configured deny patterns. When a tool call contains multiple semantically meaningful fields, only the first one encountered is evaluated. Any dangerous content supplied in a secondary field passes through unchecked. This creates a parser-differential between the deny-pattern enforcer and the downstream tool consumer, which uses the full payload.

Root Cause

The root cause is incomplete input coverage in the extractFullTarget logic of ClaudeHookBridge. The function returns the first present candidate rather than aggregating all security-relevant fields. Deny-pattern matching therefore operates on a subset of attacker-controllable input while the tool executor processes the complete object.

Attack Vector

Exploitation requires an attacker to influence agent inputs through prompt injection, for example by poisoning retrieved content, repository files, or MCP tool outputs the agent consumes. The attacker crafts a tool invocation that pairs a benign file_path or command with a malicious content payload or MCP script parameter. The PreToolUse hook inspects only the benign field, approves the call, and the agent writes a web shell or runs an attacker-controlled script. The attack is local in scope because it operates through the agent runtime on the host.

No verified public proof-of-concept code is available. Refer to the GitHub Security Advisory GHSA-9p2w-prp8-5722 and the VulnCheck Advisory on Network-AI Bypass for technical details.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-109331

Indicators of Compromise

  • Agent tool invocations where Write or MCP script parameters contain shell metacharacters, interpreter directives, or server-side script syntax while file_path references a web-accessible directory.
  • New files appearing in web roots or served content paths following agent activity, especially files with extensions such as .php, .jsp, .aspx, or .sh.
  • PreToolUse hook logs showing approved tool calls whose payload fields were never evaluated against denyPatterns.

Detection Strategies

  • Inspect ClaudeHookBridge logs and compare the fields passed to the deny-pattern engine against the full tool-call payload sent to the executor.
  • Alert on agent-initiated Write operations whose content body matches known web shell signatures or script interpreters, independent of the file_path value.
  • Correlate agent sessions that follow untrusted input ingestion with subsequent filesystem writes or process executions.

Monitoring Recommendations

  • Forward agent runtime logs, hook decisions, and MCP tool call metadata to a centralized analytics platform for retrospective hunting.
  • Monitor outbound connections from processes spawned by the Network-AI agent for signs of post-exploitation activity.
  • Track version inventory for Network-AI deployments to confirm all instances run 5.15.2 or later.

How to Mitigate CVE-2026-109331

Immediate Actions Required

  • Upgrade Network-AI to version 5.15.2 or later on all hosts running the agent.
  • Audit denyPatterns configurations and recent agent sessions for tool calls that may have bypassed enforcement.
  • Restrict the agent's filesystem write scope so it cannot reach web roots, deployment directories, or interpreter paths.

Patch Information

The maintainers released a fix in Network-AI 5.15.2. The patched ClaudeHookBridge evaluates all security-relevant candidate fields rather than only the first present one. Patch details are documented in GitHub Security Advisory GHSA-9p2w-prp8-5722.

Workarounds

  • Disable the ClaudeHookBridge PreToolUse hook until the upgrade is complete, and gate agent tool execution behind an external allowlist.
  • Run the agent under a least-privilege account with no write access to web-served or executable directories.
  • Sanitize or isolate untrusted content sources, including repository files and MCP outputs, before they reach the agent context.
bash
# Verify installed Network-AI version and upgrade
network-ai --version
pip install --upgrade "network-ai>=5.15.2"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.