DeepSeek Harness Authentication Bypass Lets Sandboxed AI Agents Escape via Single Command (CVE-2026-82533)
DeepSeek Harness Authentication Bypass Lets Sandboxed AI (TL-2026-2412) is a critical-severity software vulnerability scored CVSS 9.4, first published 2026-09-09. It has no confirmed attribution, affects DeepSeek DeepSeek Harness (dsh), references 1 CVE (CVE-2026-82533), maps to 11 MITRE ATT&CK techniques (T1059.004, T1059.007, T1071.001), and is covered by 9 detection rules and 16 indicators of compromise.
Key facts for TL-2026-2412
- Threat ID
- TL-2026-2412
- Severity
- CRITICAL
- CVSS
- 9.4 (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H)
- Status
- ACTIVE
- Category
- VULNERABILITY
- First published
- 2026-09-09
- Last reviewed
- 2026-09-09
- Attribution confidence
- LOW
- Motivation
- UNKNOWN
- Target sectors
- technology, software-development, ai-ml, it - security, finance
- Target regions
- Global
- Detection rules
- 9
- Indicators of compromise
- 16
Malware and tooling in DeepSeek Harness Authentication Bypass Lets Sandboxed AI
Malware and tooling: BUBBLEWRAP - S0043, curl
DeepSeek Harness (CVE-2026-82533, CVSS 9.4 Critical) contains an authentication bypass in its local HTTP control-plane API: the isTrustedApiRequest function validates only the client-supplied Host header rather than the actual TCP connection origin. A sandboxed AI agent can exploit this with a single curl command to disable its own sandbox and approval prompts, and remote attackers reaching the port via tunnel or proxy gain full agent control and access to all stored conversations without credentials.
How DeepSeek Harness Authentication Bypass Lets Sandboxed AI works
DeepSeek Harness (dsh) is an open-source, local-first AI coding-agent harness that has rapidly amassed over 216,000 GitHub stars since its launch in August 2026. It runs AI coding agents on a developer's machine with OS-level filesystem sandboxing (Bubblewrap on Linux, Seatbelt on macOS, ACL-restricted-token on Windows) and an approval-prompt system intended to gate dangerous operations. The tool ships as the npm package @deepseek-ai/dsh and its CLI binary dsh, with version 0.1.1-rc.2 as the latest npm release. The harness exposes a local HTTP control-plane API on 127.0.0.1:3080 to manage agent sessions, execute commands, and retrieve conversation logs.
CVE-2026-82533, discovered by OX Security researchers Nir Zadok and Moshe Siman Tov Bustan, resides in the isTrustedApiRequest function within packages/client/connection/src/api-request-trust.ts. This function serves as the sole gate for the entire /api RPC surface. It reads the client-supplied Host header to determine trust — if the Host value matches a loopback address (127.0.0.1 or localhost) or appears in a configured trustedHosts list, access is granted. Crucially, the function never compares the Host value against the actual TCP connection peer address. The function's own code comments acknowledge this is a trust boundary designed to prevent DNS rebinding and CSRF from browsers, but it is explicitly documented as "not an auth layer." Non-browser clients (such as a curl command from within a sandboxed agent) can simply supply a spoofed Host: 127.0.0.1:3080 header and bypass the gate entirely.
The attack chain for sandbox escape is straightforward. The sandbox profiles on both Linux (Bubblewrap, using --unshare-pid but not --unshare-net) and macOS (Seatbelt, using (allow default) with only (deny file-write*)) leave loopback networking open while restricting filesystem writes. Ordinary bash tool calls require no approval. From inside the sandbox, an agent executes a single curl command: curl -s -X POST http://127.0.0.1:3080/api/session/update-config -H "Host: 127.0.0.1:3080" -H "Content-Type: application/json" -d '{"danger-full-access": true, "approval": "never"}'. This sets the session to danger-full-access mode (which disables the sandbox entirely) and approval to never (which stops all approval prompts). The session log records the policy change with source: {kind: 'user'} — the harness cannot distinguish the agent's shell from the human at the keyboard, and no approval/request event appears anywhere in the log. OX Research verified the exploit by running two identical sessions from default settings: the session that made the API call successfully wrote files outside its workspace (e.g., /home/ubuntu), while the confined session had the identical write blocked by the sandbox.
The remote attack path is equally severe. If port 3080 is reachable via SSH tunnel, reverse proxy, editor port forward, or the --host 0.0.0.0 option (which the CLI explicitly refuses but can be bypassed via proxy), an unauthenticated remote attacker gains full agent control: they can invoke commands/execute with danger-full-access permissions, read all stored conversations, and enumerate the filesystem via host.listDirectory and host.createDirectory — all without any credential or API key. The --profile web binding explicitly rejects --host 0.0.0.0, confirming the threat model includes local actors.
Beyond CVE-2026-82533, the vulnerability is part of a broader security picture for DeepSeek Harness. The same week the CVE was reported, community researchers published three additional vulnerabilities under discussion #451 (DSH-01, DSH-02, DSH-03): DSH-01 is a node:vm sandbox escape in the workflow tool (CVSS 8.8) where the constructor chain agent.constructor('return process')().getBuiltinModule('fs') bypasses the VM context entirely, achieving arbitrary file read/write and RCE; DSH-02 is a dynamic plugin host code escape via host-realm closure (CVSS 8.8) where btoa.constructor obtains the host Function constructor, enabling full process-level access including reading DEEPSEEK_API_KEY from process.env; and DSH-03 is the identical /api RPC bridge without authentication (the same class as CVE-2026-82533 but documented independently). A subsequent security audit (discussion #817) reported 7 additional findings: 2 High (unauthenticated LAN RPC when binding to 0.0.0.0, and the unpinned host-filesystem primitives the RPC carries) and 5 Medium (workflow tool bypassing sandbox modes, approval escalation not bound to the command, host-only dynamic packages activating with zero approval, sandbox context facade forwarding capability services, and Landlock falsely reporting full enforcement on NFS/CIFS/FUSE filesystems).
The project has no SECURITY.md file, and GitHub's private vulnerability reporting returns API 403, meaning there was no responsible disclosure path available. The fix was released in dsh-v0.1.2-alpha.1 on August 27, 2026 (commit 3e24087bfaeabe40b58ba2f7b936895b8f93fe27), implementing a one-time-token authentication scheme where the tool prints a token at startup, the browser exchanges it for a signed cookie, and every API call requires the cookie. However, the fix does not address the design limitations that the sandbox does not confine reads, network access, or process visibility, and the agent's shell still receives the interface address. The fix was first available on npm in version 0.1.2-alpha.2 (August 30) and the current npm release with the fix is 0.1.2-rc.1 (September 3). Third-party desktop builds that ship their own copy of the harness remain exposed until they update their pinned version.
A separate academic study (arXiv:2608.16393, August 2026) assessed DeepSeek Harness resistance to indirect prompt injection across 14,560 controlled agent executions, finding fake-completion attacks achieved 17.0% success, hidden unicode in files reached 25.5%, and the skills channel reached 16.0%, confirming that the broader attack surface extends well beyond the authentication bypass. No in-the-wild exploitation of CVE-2026-82533 has been reported as of publication.
MITRE ATT&CK techniques used in TL-2026-2412
Execution
T1059.004 Command and Scripting Interpreter: Unix Shell; T1059.007 Command and Scripting Interpreter: JavaScript; T1204.002 User Execution: Malicious File
Command and Control
T1071.001 Application Layer Protocol: Web Protocols
Discovery
T1082 System Information Discovery
Initial Access
T1190 Exploit Public-Facing Application
Collection
T1213 Data from Information Repositories
Privilege Escalation
T1548 Abuse Elevation Control Mechanism
Credential Access
T1552.001 Unsecured Credentials: Credentials in Files
Impact
T1565.001 Data Manipulation: Stored Data Manipulation
defense-impairment
Affected products and versions in DeepSeek Harness Authentication Bypass Lets Sandboxed AI
- DeepSeek — DeepSeek Harness (dsh)
Vulnerable versions: 0.0.1-rc.5 through 0.1.1-rc.2
Fixed in: 0.1.2-alpha.1; 0.1.2-alpha.2; 0.1.2-rc.1 - DeepSeek — npm package @deepseek-ai/dsh
Vulnerable versions: All versions before 0.1.2-alpha.2
Fixed in: 0.1.2-alpha.2; 0.1.2-rc.1 - Various — Third-party desktop builds wrapping DeepSeek Harness
Vulnerable versions: Any build pinning dsh < 0.1.2-alpha.1
Fixed in: Updated builds pinning dsh >= 0.1.2-alpha.1
Remediation for DeepSeek Harness Authentication Bypass Lets Sandboxed AI
Patches
- Apply DeepSeek Harness dsh-v0.1.2-alpha.1 or later (commit 3e24087bfaeabe40b58ba2f7b936895b8f93fe27)
- For npm users: update to @deepseek-ai/dsh@0.1.2-rc.1 or later
Immediate actions
- Upgrade DeepSeek Harness to version 0.1.2-alpha.1 or later immediately
- Ensure version 0.1.2-alpha.2 or later on npm (0.1.2-rc.1 is the current stable fixed release)
- Restrict network access to port 3080 with firewall rules blocking external traffic
- Audit for any third-party desktop builds or wrappers that ship their own harness copy and update them
- Check if port 3080 is exposed via SSH tunnels, reverse proxies, or editor port forwarding
Workarounds
- Use firewall rules to block all inbound traffic to port 3080 from non-loopback interfaces
- If using Bubblewrap, add --unshare-net to sandbox profiles to prevent loopback access from within the sandbox
- Monitor for curl commands targeting 127.0.0.1:3080 or localhost:3080 from agent sandbox environments
- Audit session logs for policy changes with source: {kind: 'user'} that lack corresponding user interaction events
Longer-term hardening
- Implement network segmentation for AI coding agent hosts
- Deploy network-level monitoring for Host header anomalies on development infrastructure
- Establish a vendor security review process for open-source AI development tools
- Consider running agents in containerized or microVM environments with full network isolation
CVEs associated with DeepSeek Harness Authentication Bypass Lets Sandboxed AI
Weaknesses (CWE) in DeepSeek Harness Authentication Bypass Lets Sandboxed AI
CWE-807, CWE-306, CWE-668
Timeline of DeepSeek Harness Authentication Bypass Lets Sandboxed AI
- DeepSeek Harness first published on npm as @deepseek-ai/dsh v0.0.1-rc.5; explosive growth begins with 75k GitHub stars by Aug 14
- GitHub Discussion #451 published: Three vulnerabilities disclosed (DSH-01: node:vm sandbox escape CVSS 8.8, DSH-02: dynamic plugin host code escape CVSS 8.8, DSH-03: unauthenticated /api RPC bridge CVSS 7.4) — including the Host-header fence bypass matching the CVE
- GitHub Discussion #243 published: Workflow tool VM escape via host-realm functions demonstrated with one-liner 'agent.constructor('return process')().getBuiltinModule('fs')' — bypasses all sandbox layers
- GitHub Discussion #817 published: Security audit of v0.1.0-rc.5 reporting 7 additional findings (2 High, 5 Medium) including unauthenticated LAN RPC, workflow tool bypassing sandbox modes, approval escalation not bound to the command, and Landlock false enforcement reporting
- arXiv:2608.16393 published: Security assessment of DeepSeek Harness against indirect prompt injection across 14,560 controlled agent executions, finding 25.5% success rate for hidden unicode in file mode
- OX Security (Nir Zadok and Moshe Siman Tov Bustan) confirms the Host-header authentication bypass vulnerability and discloses to VulnCheck as CNA — no responsible disclosure path existed as the project has no SECURITY.md and GitHub private reporting returns API 403
- Fix for CVE-2026-82533 released in dsh-v0.1.2-alpha.1 (commit 3e24087bfaeabe40b58ba2f7b936895b8f93fe27) implementing one-time-token authentication for the Web interface; release also includes strengthened safety notice, SSRF-protected WebFetch, and PTC Mode SDK isolation
- OX Research re-tests against v0.1.2-alpha.1 and confirms remediation; fix first available on npm with v0.1.2-alpha.2
- DeepSeek Harness v0.1.2-rc.1 published on npm as the current stable fixed release; third-party desktop builds wrapping the harness may still pin vulnerable versions
- One known Windows desktop build updated from vulnerable 0.1.1-rc.2 to 0.1.3-alpha.1 (fixed); other third-party wrappers may remain unpatched
- CVE-2026-82533 published by VulnCheck with CVSS 9.4 (Critical); NVD entry published; OX Security publishes full technical analysis with exploit details
- The Hacker News publishes article on CVE-2026-82533; CVE not listed in CISA KEV as of publication date; no in-the-wild exploitation reported
Sources cited for DeepSeek Harness Authentication Bypass Lets Sandboxed AI
- OX Security: CVE-2026-82533 — DeepSeek Harness AI Agent Sandbox Escape
- VulnCheck Advisory: DeepSeek Harness Authentication Bypass via Host Header Spoofing
- The Hacker News: DeepSeek Harness Flaw Lets AI Agents Escape Sandbox With a Single Command
- NVD Entry: CVE-2026-82533
- GitHub Release: dsh-v0.1.2-alpha.1 (Fix)
- GitHub Commit: Fix for CVE-2026-82533
- GitHub Discussion #243: Workflow Tool VM Escape via Host-Realm Functions
- GitHub Discussion #451: VM Sandbox Escapes + Unauthenticated /api RPC
- GitHub Discussion #817: Security Audit Report (7 Additional Findings)
- Rye Security Review: DeepSeek Harness Sandbox Network Scope
- arXiv:2608.16393 — Security Assessment of DeepSeek Harness with A.I.G (Indirect Prompt Injection)
- DeepSeek Harness Sandbox Architecture Documentation
- Tencent AI-Infra-Guard: DeepSeek Harness Security Assessment
More in vulnerability
- VLC Media Player: Integer Overflow in AllocatePicture (CVE-2026-56711) and RTSP Heap Out-of-Bounds Read (CVE-2026-73324)
- Dutch NCSC Warns of Critical Check Point VPN Flaws (CVE-2026-85102, CVE-2026-85103) — Exploitation Expected Imminently
- GitLab Patches Max-Severity Unauthenticated Path Traversal Flaw in Repository Commits API (CVE-2026-85706, CVSS 10.0)
- CVE-2026-0310: PAN-OS XML Processing Out-of-Bounds Write Enables Unauthenticated Root RCE
- Endor Labs Discloses 14 Critical/High Vulnerabilities Across Seven AI Orchestration Platforms (NocoBase, Flowise, Langflow, Dify, Activepieces, Kestra, Apache Airflow)
Detection coverage for TL-2026-2412
As of 2026-09-09, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-2412 across Splunk SPL, Microsoft KQL and Sigma, covering 16 indicator(s) of compromise. The whole corpus is readable without an account; a free account unlocks full detection query text in Splunk SPL, Microsoft KQL and Sigma; paid tiers add raw indicator values, correlation and the MCP server. Threadlinqs MCP server · View plans.