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-112101 Overview
CVE-2026-112101 is an origin validation flaw [CWE-345] in the BlackBeltTechnology pi-agent-dashboard project through version 0.8.0. The vulnerability resides in the WebSocket Gateway component and is triggered by manipulation of the cwd argument on the /BlackBeltTechnology/pi-agent-dashboard endpoint. An attacker can exploit the issue remotely across the network, and the exploit has been publicly disclosed. The project maintainers addressed the issue in version 0.9.0 with commit 48fd0bad5adfe76af9736599699d51a5f60019f6, which introduces a cross-site mutation gate for WebSocket upgrades and mutating REST requests.
Critical Impact
Remote attackers can bypass origin validation on the WebSocket Gateway, enabling Cross-Site WebSocket Hijacking (CSWSH) and cross-origin state-changing requests that abuse a victim's ambient browser trust.
Affected Products
- BlackBeltTechnology pi-agent-dashboard versions up to and including 0.8.0
- WebSocket Gateway component of pi-agent-dashboard
- Mutating REST routes served by the pi-agent-dashboard Fastify server
Discovery Timeline
- 2026-10-19 - CVE-2026-112101 published to the National Vulnerability Database (NVD)
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-112101
Vulnerability Analysis
The vulnerability is an origin validation error [CWE-345] affecting the WebSocket Gateway and mutating HTTP routes exposed by pi-agent-dashboard. Prior to the fix, the server did not verify the Origin header on WebSocket upgrades or on state-changing REST requests. As a result, any webpage a victim visited could issue a fetch("/api/…", {method:"POST", mode:"no-cors"}) or open a WebSocket connection to the dashboard, carrying the user's cookies and ambient session trust. The attacker-controlled page could then drive mutations or interact with the WebSocket channel on behalf of the authenticated user.
Root Cause
The root cause is the absence of a server-side Origin check for cross-site requests. The patch comment makes this explicit: "CORS decides who may READ a response. It never stops the request from happening." The dashboard relied on CORS to protect state, which does not block cross-origin writes or WebSocket upgrades. The attack surface is further widened by the cwd argument being reachable through the vulnerable path, which is accepted during an unauthenticated or cross-origin upgrade sequence.
Attack Vector
The attack is network-based and requires user interaction, such as visiting a malicious page while authenticated to the dashboard. The attacker's page issues a cross-origin WebSocket upgrade or a non-GET REST request to the dashboard. Because the server does not validate the Origin header, the request executes with the victim's credentials. Manipulation of the cwd parameter can then direct the gateway into attacker-controlled behavior.
// Security patch: packages/server/src/auth/mutation-origin-gate.ts
// fix(fix-ws-origin-cswsh): gate cross-site WebSocket and mutating REST by Origin
/**
* 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"]);
/** Does this matched route pattern carry state-changing authority? */
function isGuardedRoute(routed: string): boolean {
// ...
}
Source: GitHub Commit 48fd0bad5adf
A second hunk in packages/server/src/pi/bridge-upgrade-auth.ts adds a new refusal cause specifically for WebSocket upgrades originating from a browser cross-site context:
/** Distinct refusal causes — "no credential" ≠ "bad credential" (tasks 5.4/10.3). */
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 48fd0bad5adf
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-112101
Indicators of Compromise
- WebSocket upgrade requests to /BlackBeltTechnology/pi-agent-dashboard carrying an Origin header that does not match the dashboard's own domain.
- Non-GET HTTP requests to dashboard API routes with a mismatched or unexpected Origin or Referer header.
- Unexpected values supplied in the cwd argument on WebSocket upgrade requests.
- Server logs showing the new browser-origin refusal cause after upgrading, which indicates attempted cross-site WebSocket hijacking.
Detection Strategies
- Review Fastify or reverse-proxy access logs for upgrade requests whose Origin header is absent or external, correlated with authenticated session cookies.
- Alert on bursts of POST, PUT, PATCH, or DELETE requests to dashboard routes carrying third-party Origin values.
- Baseline legitimate client Origins against observed traffic and flag deviations.
Monitoring Recommendations
- Forward dashboard server logs to a centralized logging or SIEM platform and build rules on Origin-header mismatches and the new browser-origin refusal cause.
- Monitor for new or unauthorized WebSocket clients establishing persistent sessions outside expected network ranges.
- Track version strings reported by deployed instances and alert when any node still runs pi-agent-dashboard at or below 0.8.0.
How to Mitigate CVE-2026-112101
Immediate Actions Required
- Upgrade pi-agent-dashboard to version 0.9.0 or later, which includes commit 48fd0bad5adfe76af9736599699d51a5f60019f6.
- Audit which dashboards are reachable from the public internet and restrict exposure where possible.
- Invalidate active user sessions after upgrading so that any pre-existing cross-origin WebSocket connections are terminated.
Patch Information
The fix is delivered in GitHub Release v0.9.0 and merged through GitHub Pull Request #636, tracked under GitHub Issue #625. The patch adds a cross-site mutation gate (mutation-origin-gate.ts) that refuses any non-safe HTTP method whose Origin is not on the trusted list, and extends the bridge upgrade authenticator in bridge-upgrade-auth.ts with a new browser-origin refusal cause for WebSocket upgrades.
Workarounds
- Place the dashboard behind a reverse proxy that strips or validates the Origin header on WebSocket upgrades and non-GET requests until the upgrade is applied.
- Restrict access to the dashboard to trusted internal networks or VPN clients.
- Require authenticated users to log out of the dashboard before browsing untrusted sites, and shorten session lifetimes to reduce the window for cross-site WebSocket hijacking.
# Example: upgrade pi-agent-dashboard to the patched release
npm install @blackbelttechnology/pi-agent-dashboard@0.9.0
# Verify the installed version includes the Origin-gate fix
npm ls @blackbelttechnology/pi-agent-dashboard
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

