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-107701 Overview
CVE-2026-107701 is a prototype pollution vulnerability [CWE-1321] in the dot-access npm package through version 1.0.0. The flaw resides in the set() function, which accepts a dotted path string to assign values on a target object. When the path contains __proto__ segments, the function walks into Object.prototype and writes attacker-controlled properties onto it. Any application that passes user-supplied field names to set() exposes the entire Node.js process to global object pollution. Successful exploitation can flip authorization flags, override option defaults, or crash the process through unexpected property values.
Critical Impact
An unauthenticated remote attacker who controls the path argument to set() can modify Object.prototype, altering runtime behavior across every object in the Node.js process.
Affected Products
- dot-access npm package, all versions through 1.0.0
- Node.js applications that pass untrusted input to the set() path argument
- Downstream libraries that re-export or wrap dot-access functionality
Discovery Timeline
- 2026-10-08 - CVE-2026-107701 published to the National Vulnerability Database
- 2026-10-14 - Last updated in NVD database
Technical Details for CVE-2026-107701
Vulnerability Analysis
The dot-access library provides a set() helper that interprets a string such as a.b.c and assigns a value to the nested property at that path. The implementation splits the path on . and iteratively walks the object, creating intermediate objects when a segment does not exist. Because the splitter does not reject reserved property names, a path beginning with __proto__ resolves to the target object's prototype chain. On a plain object literal, that prototype is Object.prototype, which is shared by every object in the Node.js runtime.
An attacker who controls the path, for example through a JSON body field name or a query parameter mapped to configuration keys, can inject arbitrary properties into Object.prototype. Subsequent code paths that read optional properties with default fallbacks will instead observe the attacker-controlled values. This commonly results in authorization bypass when flags such as isAdmin are polluted, altered defaults in security-sensitive option objects, or denial of service when polluted properties conflict with type assumptions.
Root Cause
The root cause is missing validation of path segments inside set(). The function does not blocklist __proto__, constructor, or prototype identifiers before performing property assignment. Reference the vulnerable code at GitHub dot-access Source Code and the maintainer tracking issue at GitHub Issue #5: dot-access.
Attack Vector
Exploitation is network-reachable when the vulnerable set() call processes attacker-supplied input, such as HTTP request body keys, query parameters, or deserialized message fields. No authentication or user interaction is required. A proof of concept is available at the GitHub Gist PoC Repository and additional analysis at the VulnCheck Advisory: dot-access Prototype Pollution.
Detection Methods for CVE-2026-107701
Indicators of Compromise
- Application logs showing request parameters or JSON keys containing the strings __proto__, constructor, or prototype
- Unexpected changes in authorization decisions following requests with crafted field names
- Process crashes or TypeError exceptions referencing properties that should not exist on plain objects
Detection Strategies
- Perform software composition analysis to flag any direct or transitive dependency on dot-access at version 1.0.0 or earlier
- Add static analysis rules that identify set(path, value) calls where path originates from req.body, req.query, or other request-scoped data
- Instrument runtime hooks that detect writes to Object.prototype and alert when non-whitelisted properties are added
Monitoring Recommendations
- Monitor web application firewall logs for request parameters containing __proto__ or encoded variants such as %5f%5fproto%5f%5f
- Alert on Node.js process restarts correlated with inbound requests carrying suspicious JSON key names
- Review audit trails for privilege escalations that lack a corresponding role change event
How to Mitigate CVE-2026-107701
Immediate Actions Required
- Inventory all applications and dependencies using dot-access with npm ls dot-access and remove or replace the package
- Add input validation to reject any user-supplied path containing __proto__, constructor, or prototype segments before invoking set()
- Deploy WAF rules that block request parameters and JSON keys matching prototype-pollution payload patterns
Patch Information
No fixed version is listed in the advisory at the time of publication. Track remediation progress through the GitHub Project: dot-access repository and the open GitHub Issue #5: dot-access. Until a patched release is available, replace dot-access with a maintained alternative such as lodash.set configured with safe-set semantics, or implement path assignment internally with explicit segment validation.
Workarounds
- Freeze Object.prototype at application startup with Object.freeze(Object.prototype) to prevent runtime pollution
- Create target objects with Object.create(null) so they have no prototype chain for set() to traverse
- Wrap set() in a validator that rejects any path segment matching /^(__proto__|constructor|prototype)$/
# Configuration example: enumerate and remove the vulnerable dependency
npm ls dot-access
npm uninstall dot-access
# Harden the Node.js runtime at process start
node -e "Object.freeze(Object.prototype); require('./server.js')"
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

