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

CVE-2026-107700: dot-access RCE Vulnerability

CVE-2026-107700 is a code injection flaw in dot-access npm package versions 0.0.3 through 1.0.0 that enables remote code execution. Attackers exploit crafted paths to execute system commands. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

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

CVE-2026-107700 is a code injection vulnerability [CWE-94] in the dot-access npm package, affecting versions 0.0.3 through 1.0.0. The library's get() function concatenates attacker-controlled path strings into a dynamically constructed new Function() body inside index.js. Remote attackers can supply crafted paths that reach constructor.constructor to load Node.js modules such as child_process and execute arbitrary operating system commands in the host process.

Critical Impact

Unauthenticated remote attackers can achieve arbitrary code execution in any Node.js application that passes user-controlled input to the dot-accessget() function.

Affected Products

  • dot-access npm package version 0.0.3
  • dot-access npm package versions between 0.0.3 and 1.0.0
  • dot-access npm package version 1.0.0

Discovery Timeline

  • 2026-10-08 - CVE-2026-107700 published to NVD
  • 2026-10-09 - Last updated in NVD database

Technical Details for CVE-2026-107700

Vulnerability Analysis

The dot-access package provides dotted-path property access for JavaScript objects. Its get() implementation in index.js builds a function body by concatenating the path argument directly into source code, then evaluates it with the Function constructor. Because the path string is interpolated without sanitization or escaping, any JavaScript expression embedded in the path becomes executable code at call time.

An attacker who controls the path value can traverse constructor.constructor on any object reference to obtain the global Function constructor. From there, the attacker can require('child_process') and invoke exec or spawn to run operating system commands with the privileges of the Node.js process. This matches the classic sandbox-escape pattern seen in prior vulnerable template and expression libraries.

The vulnerability requires no authentication, no user interaction, and is exploitable over the network when applications accept untrusted input as the path argument. Common exposure patterns include REST API handlers that forward request body fields, GraphQL resolvers, or configuration lookups driven by query parameters.

Root Cause

The root cause is the use of new Function(body) with unsanitized input concatenated into body. This pattern turns a property-access utility into an arbitrary code evaluator. The affected code is visible in the upstream repository at GitHub Code Snippet in dot-access.

Attack Vector

Exploitation requires the application to pass attacker-controlled data as the path argument to get(). The attacker crafts a path containing a JavaScript expression that resolves constructor.constructor on any accessible value, instantiates a new function from a string, and calls require('child_process').exec() with the desired command. See the public proof of concept at GitHub Gist PoC and the VulnCheck Advisory for dot-access.

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 Attempts

Detection Methods for CVE-2026-107700

Indicators of Compromise

  • Node.js processes spawning unexpected child processes such as /bin/sh, bash, or cmd.exe from applications that use dot-access.
  • HTTP request parameters or JSON bodies containing the substrings constructor.constructor, child_process, or require( targeting endpoints that perform object property lookups.
  • Outbound network connections from Node.js workers to attacker infrastructure immediately following requests to object-lookup endpoints.

Detection Strategies

  • Perform software composition analysis (SCA) on package.json and package-lock.json to flag any resolved version of dot-access between 0.0.3 and 1.0.0.
  • Enable runtime monitoring of Node.js services to alert on child_process.exec or spawn invocations from code paths that should not shell out.
  • Deploy web application firewall rules that inspect request parameters for JavaScript meta-characters and known gadget strings like constructor.constructor.

Monitoring Recommendations

  • Log all calls to object-lookup APIs with the raw path argument and alert on paths containing parentheses, brackets, or the token constructor.
  • Correlate process-execution telemetry with inbound HTTP requests to identify command execution originating from web request handlers.
  • Monitor npm registry audit output (npm audit) and CI pipelines for new advisories affecting dot-access and related dotted-path libraries.

How to Mitigate CVE-2026-107700

Immediate Actions Required

  • Inventory all Node.js services and build artifacts for dot-access versions 0.0.3 through 1.0.0 and remove or replace the dependency.
  • Validate and reject any user-supplied path argument that is not a strict dot-delimited identifier matching ^[A-Za-z_$][A-Za-z0-9_$]*(\.[A-Za-z_$][A-Za-z0-9_$]*)*$.
  • Isolate affected services behind a WAF rule that blocks requests containing constructor.constructor or child_process in parameters.

Patch Information

No fixed version of dot-access is identified in the published advisory. Consult the VulnCheck Advisory for dot-access and the upstream GitHub Repository for dot-access for maintainer updates. Until a patched release is available, migrate to a maintained alternative such as lodash.get or implement a safe property-walker that iterates over String.prototype.split('.') without invoking new Function().

Workarounds

  • Replace dot-access with a library that resolves properties using a plain loop over the split path instead of dynamic code generation.
  • Wrap existing get() call sites with an allowlist check that only permits paths matching known schema fields.
  • Run Node.js workloads with least-privilege operating system accounts and restrict outbound network egress to limit post-exploitation impact.
bash
# Configuration example: remove dot-access and audit remaining dependencies
npm uninstall dot-access
npm install lodash.get
npm audit --production

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.