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

CVE-2026-108890: pi-agent-dashboard Auth Bypass Vulnerability

CVE-2026-108890 is an authentication bypass flaw in BlackBeltTechnology pi-agent-dashboard that allows unauthorized terminal access through improper authorization. This post covers technical details, affected versions, and mitigation.

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-108890 Overview

CVE-2026-108890 is an improper authorization vulnerability [CWE-266] in BlackBeltTechnology pi-agent-dashboard through version 0.8.0. The flaw resides in the terminalManager.spawn function within packages/server/src/browser-handlers/terminal-handler.ts, part of the Terminal Handler component. An attacker can manipulate the cwd argument to bypass authorization checks against the server. The attack can be initiated remotely and a public disclosure has been made. The vendor responded quickly and released a patched version identified by commit 48fd0bad5adfe76af9736599699d51a5f60019f6.

Critical Impact

Remote attackers can abuse the Terminal Handler's cwd argument to perform actions outside their intended authorization scope, including cross-site WebSocket hijacking (CSWSH) and mutating REST calls through ambient browser trust.

Affected Products

  • BlackBeltTechnology pi-agent-dashboard versions up to and including 0.8.0
  • Terminal Handler component (packages/server/src/browser-handlers/terminal-handler.ts)
  • Server package WebSocket upgrade and REST mutation routes

Discovery Timeline

  • 2026-10-12 - CVE-2026-108890 published to NVD
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-108890

Vulnerability Analysis

The vulnerability is categorized as improper authorization under [CWE-266]. The terminalManager.spawn function in the Terminal Handler accepts a cwd (current working directory) argument from client input without enforcing adequate authorization boundaries. An attacker able to reach the dashboard endpoints can supply a crafted cwd value to invoke terminal spawning in a context the user should not control.

The patch commentary highlights a related class of weakness: Cross-Origin Resource Sharing (CORS) only governs who may read a response, not who may issue the request. A blind fetch from any origin reaches every dashboard route carrying the user's ambient trust. This allows cross-site WebSocket hijacking (CSWSH) and silent mutating REST invocations.

Root Cause

The root cause is the absence of an origin-based mutation gate on state-changing routes and WebSocket upgrades. The server trusted browser-initiated requests without validating the Origin header on non-safe methods, and the Terminal Handler did not re-check authorization on the cwd parameter before invoking spawn.

Attack Vector

Exploitation is network-based and requires user interaction (for example, loading an attacker-controlled page while authenticated to the dashboard). The attacker-controlled page issues cross-site requests or WebSocket upgrades that the browser automatically decorates with the victim's session credentials. Because the Terminal Handler accepted a client-controlled cwd, the attacker could redirect terminal spawning to arbitrary directories.

typescript
// Patch excerpt: packages/server/src/auth/mutation-origin-gate.ts
// Cross-site MUTATION gate — one `onRequest` hook (issue #625, design D4).
//
// CORS decides who may READ a response. It never stops the request from
// happening, so a blind `fetch("/api/…", {method:"POST", mode:"no-cors"})` from
// any page reached every dashboard route with the user's ambient trust. The
// gate refuses a mutation whose `Origin` is not admitted — browsers always send
// one on a non-GET, and non-browser clients send none and are unaffected.
import type { FastifyReply, FastifyRequest } from "fastify";
import {
  type CorsOriginOptions,
  isMutationOriginTrusted,
  sanitizeHeaderForLog,
} from "./cors-origin.js";

// Methods the gate lets through. OPTIONS is safe so preflights still get
// their CORS headers — the actual cross-site request that follows is then
// refused by this same hook.
const SAFE_METHODS = new Set(["GET", "HEAD", "OPTIONS"]);

function isGuardedRoute(routed: string): boolean {
  // ... route-matching rule
}

Source: GitHub Commit 48fd0bad

The bridge upgrade authorization logic was also extended to recognize a new refusal cause for browser-origin WebSocket upgrades:

typescript
// Patch excerpt: packages/server/src/pi/bridge-upgrade-auth.ts
// Distinct refusal causes — "no credential" ≠ "bad credential".
type BridgeRefusalCause =
  | "local-token-missing"
  | "local-token-invalid"
  | "no-ticket"
  | "browser-origin";

export type BridgeUpgradeVerdict =
  | { allow: true; reason: string; deprecated?: boolean; deviceId?: string };

Source: GitHub Commit 48fd0bad

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-108890

Indicators of Compromise

  • Unexpected POST, PUT, PATCH, or DELETE requests to dashboard routes carrying an Origin header that does not match the deployed dashboard host.
  • WebSocket upgrade attempts to the pi-agent-dashboard server with foreign or missing Origin values during an authenticated browser session.
  • Terminal spawn events whose cwd argument references directories outside the user's expected workspace.

Detection Strategies

  • Review Fastify request logs for mutating methods paired with cross-site Origin or Referer headers, correlated against the sanitized header values the patched gate records.
  • Hunt for anomalous terminalManager.spawn invocations where the cwd argument differs from the authenticated principal's assigned working directory.
  • Alert on WebSocket upgrades refused with the new browser-origin refusal cause introduced in the patch, which signals attempted CSWSH activity.

Monitoring Recommendations

  • Centralize server logs from pi-agent-dashboard into a security data platform and tag requests by method, route, and origin for retrospective hunting.
  • Monitor process creation telemetry on hosts running the dashboard for shell processes spawned with unusual working directories.
  • Track issue #625 and pull request #636 for additional detection guidance from the maintainers.

How to Mitigate CVE-2026-108890

Immediate Actions Required

  • Upgrade pi-agent-dashboard to the version containing commit 48fd0bad5adfe76af9736599699d51a5f60019f6 or later.
  • Restrict dashboard exposure to trusted networks and enforce authenticated reverse proxies in front of the service.
  • Audit historical logs for suspicious terminal spawn events and cross-origin mutating requests prior to patch deployment.

Patch Information

The vendor released a fix in commit 48fd0bad5adfe76af9736599699d51a5f60019f6, which introduces a cross-site mutation gate (mutation-origin-gate.ts) and extends bridge upgrade authorization with a browser-origin refusal cause. Review the GitHub Pull Request #636 and the VulDB Vulnerability Overview for full remediation context.

Workarounds

  • Place the dashboard behind a reverse proxy that strips or validates Origin headers on mutating HTTP methods and WebSocket upgrades.
  • Enforce SameSite=Strict session cookies to reduce the browser's willingness to attach credentials to cross-site requests.
  • Disable or firewall off the Terminal Handler endpoints until patched software is deployed.
bash
# Example: upgrade pi-agent-dashboard to a patched release
git clone https://github.com/BlackBeltTechnology/pi-agent-dashboard.git
cd pi-agent-dashboard
git checkout 48fd0bad5adfe76af9736599699d51a5f60019f6
npm install
npm run build

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.