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

CVE-2026-109375: Vercel deepsec Path Traversal Vulnerability

CVE-2026-109375 is a path traversal vulnerability in Vercel deepsec that allows sandboxed code to escape and write files outside the sandbox. This post covers technical details, affected versions, 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-109375 Overview

CVE-2026-109375 is a link-following vulnerability [CWE-59] in Vercel DeepSec versions 0.1.0 through 1.1.16. The flaw resides in the extractTarballLocally function, which processes result tarballs returned from sandboxed executions. Attackers controlling sandbox code can plant symbolic or hard links inside the host data directory. When DeepSec extracts the tarball on the orchestrator host, those links redirect writes to arbitrary filesystem locations.

The most relevant attack scenario involves a prompt-injected coding agent running inside the sandbox. Such an agent can produce a crafted tarball that escapes the sandbox boundary and writes files on the host system running DeepSec.

Critical Impact

Sandbox-controlled code can write arbitrary files on the orchestrator host, enabling escape of DeepSec's isolation boundary and potential compromise of orchestration integrity.

Affected Products

  • Vercel DeepSec 0.1.0 through 1.1.16
  • @deepsec/core sandbox download component (packages/deepsec/src/sandbox/download.ts)
  • DeepSec orchestrator hosts processing sandbox result tarballs

Discovery Timeline

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

Technical Details for CVE-2026-109375

Vulnerability Analysis

DeepSec orchestrates untrusted sandbox executions (such as autonomous coding agents) and retrieves results as tarballs. The extractTarballLocally routine in packages/deepsec/src/sandbox/download.ts extracts those archives into the host data directory without validating link entries or restricting output file types.

Because tar archives can contain symbolic links and hard links, a sandbox controlling the tarball content can plant a link in the host data directory on one extraction, then write through that link on a subsequent extraction. The write occurs with the privileges of the DeepSec orchestrator process, outside the intended sandbox boundary.

This is a classic link-following filesystem flaw [CWE-59] applied to an AI agent orchestration surface, where the attacker is the agentic workload itself rather than an external network actor.

Root Cause

The original extraction logic did not restrict allowed file types or validate link targets before extracting archive entries. The patch introduces an explicit allowlist (ALLOWED_EXTENSIONS of .json, .md, .csv) and switches to the hardened tar module, rejecting link entries and unexpected file types.

Attack Vector

An adversary needs control of code executing inside a DeepSec sandbox. Prompt injection against a coding agent is the documented path. The agent generates a result tarball containing symlinks or hard links aimed at sensitive paths on the orchestrator host (configuration files, authorized keys, shell startup scripts). On extraction, DeepSec writes attacker-controlled content through those links.

typescript
// Security patch in packages/deepsec/src/sandbox/download.ts
-import { spawn } from "node:child_process";
 import fs from "node:fs";
 import path from "node:path";
 import { dataDir } from "@deepsec/core";
 import type { Sandbox } from "@vercel/sandbox";
+import * as tar from "tar";
 import { DATA_DIR } from "./setup.js";

+// Sandbox results are JSON file records, run metadata, and reports —
+// nothing else. Lock the extract to these extensions so a tampered or
+// buggy tarball can't smuggle anything else onto the host. If the
+// sandbox legitimately needs to return a new file type, add it here.
+const ALLOWED_EXTENSIONS = new Set([".json", ".md", ".csv"]);
+
 const SETUP_MARKER = "/tmp/deepsec-setup-done";

Source: GitHub Commit c5a4e42

Detection Methods for CVE-2026-109375

Indicators of Compromise

  • Symbolic or hard link entries present within DeepSec's host data directory after a sandbox run completes.
  • Unexpected file writes outside DeepSec's data directory with timestamps correlating to tarball extraction.
  • Files with extensions other than .json, .md, or .csv appearing in post-extraction result directories.

Detection Strategies

  • Audit DeepSec versions in use across orchestrator hosts and flag any installation earlier than 1.1.17.
  • Monitor filesystem events on orchestrator hosts for link creation inside the DeepSec data directory, particularly from the Node.js process running DeepSec.
  • Review sandbox agent outputs for anomalous tarball structures containing link entries or non-allowlisted file types.

Monitoring Recommendations

  • Enable file integrity monitoring on sensitive host paths outside the DeepSec data directory (SSH configuration, shell init files, cron directories).
  • Log and alert on tar or child_process extraction activity initiated by the DeepSec orchestrator user.
  • Capture provenance for all tarballs produced by sandbox runs, including hashes and originating agent identifiers.

How to Mitigate CVE-2026-109375

Immediate Actions Required

  • Upgrade Vercel DeepSec to version 1.1.17 or later on every orchestrator host.
  • Audit DeepSec data directories for existing symbolic or hard links that may have been planted by prior sandbox runs.
  • Rotate credentials and inspect host configuration files if any pre-patch sandbox executions ran untrusted agents.

Patch Information

The fix is delivered in Vercel DeepSec 1.1.17. The commit c5a4e4220ece72aee67c2ea21f4340e65f673fc1 replaces the prior extraction path with the tar module and enforces an ALLOWED_EXTENSIONS allowlist of .json, .md, and .csv. See GitHub Pull Request #47 and the VulnCheck Advisory for details.

Workarounds

  • Run DeepSec orchestrator processes as an unprivileged user with no write access to sensitive host paths.
  • Place the DeepSec data directory on a dedicated filesystem mounted with nosymfollow where supported.
  • Restrict sandbox agents to trusted prompt and tool inventories until the patched release is deployed.
bash
# Upgrade to the patched release
npm install deepsec@^1.1.17

# Verify installed version
npm ls deepsec

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.