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

CVE-2026-107709: Bower decompress-zip Path Traversal Flaw

CVE-2026-107709 is a path traversal vulnerability in Bower decompress-zip through version 0.3.3 that enables attackers to write files outside intended directories. This article covers technical details, exploitation risks, 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-107709 Overview

CVE-2026-107709 is a path traversal vulnerability [CWE-22] in the Bower decompress-zip library through version 0.3.3. The flaw resides in lib/decompress-zip.js, which fails to properly validate archive entry paths during ZIP extraction. An attacker who supplies a crafted ZIP archive containing entries that resolve to prefix-sibling directories can force files to be written outside the intended extraction directory. Successful exploitation can lead to arbitrary file overwrite, application compromise, or remote code execution depending on which sibling paths are writable in the target environment.

Critical Impact

A malicious ZIP archive processed by decompress-zip can write files outside the target directory, enabling arbitrary file overwrite and potential code execution on the host application.

Affected Products

  • Bower decompress-zip library
  • All versions up to and including 0.3.3
  • Node.js applications that invoke decompress-zip to process untrusted ZIP archives

Discovery Timeline

  • 2026-10-08 - CVE-2026-107709 published to the National Vulnerability Database (NVD)
  • 2026-10-08 - Last updated in NVD database

Technical Details for CVE-2026-107709

Vulnerability Analysis

The decompress-zip library extracts ZIP archives on the Node.js platform. During extraction, the library reads each entry's declared path and joins it with the user-supplied destination directory. The path validation logic in lib/decompress-zip.js does not correctly reject entries whose resolved paths escape the destination root through sibling-prefix manipulation.

An attacker crafts a ZIP containing entry names that, after normalization, share a prefix with the destination directory but resolve to an adjacent sibling location. For example, if the destination is /tmp/safe, an entry resolving to /tmp/safe-evil/payload passes a naive startsWith check yet writes outside the intended directory. This is a variant of the Zip Slip class of attacks, specifically the sibling-prefix bypass documented in the MoizXSec Analysis on Zip Slip.

Root Cause

The root cause is improper limitation of a pathname to a restricted directory. The library compares the resolved extraction path against the destination root using string-prefix logic rather than verifying that the resolved path is a strict descendant of the destination directory, with a trailing path separator enforced.

Attack Vector

Exploitation requires that an application pass a malicious ZIP archive to decompress-zip. The attack vector is local and requires user interaction, typically triggered when a user or automated workflow extracts attacker-controlled archive content. Writable sibling paths such as application configuration directories, cron directories, or Node.js module locations determine the final impact. See the GitHub Decompress Zip Repository for library source and context.

Detection Methods for CVE-2026-107709

Indicators of Compromise

  • Files appearing in directories adjacent to known extraction targets, especially with names matching entries from recently processed ZIP archives.
  • Modifications to executable scripts, startup files, or configuration files immediately following a ZIP extraction operation by a Node.js process.
  • Unexpected write() or rename() syscalls originating from Node.js processes targeting paths outside documented application directories.

Detection Strategies

  • Audit application dependency manifests for decompress-zip versions at or below 0.3.3 using npm ls decompress-zip across projects.
  • Instrument extraction code paths to log the resolved absolute path of each archive entry before write and alert on paths outside the destination root.
  • Review historical build and CI logs for extraction of third-party archives processed through decompress-zip.

Monitoring Recommendations

  • Enable file integrity monitoring on directories that are siblings of common application extraction targets.
  • Alert on Node.js processes writing to sensitive locations such as ~/.ssh, systemd unit directories, or node_modules outside the project root.
  • Correlate archive-processing events with downstream file writes to detect out-of-bounds extraction attempts.

How to Mitigate CVE-2026-107709

Immediate Actions Required

  • Inventory all applications and build pipelines that depend on decompress-zip and identify versions at or below 0.3.3.
  • Stop processing untrusted ZIP archives with decompress-zip until a fixed version or replacement is in place.
  • Replace decompress-zip with an actively maintained alternative such as yauzl or adm-zip with explicit path validation, where feasible.

Patch Information

At the time of publication, no fixed version is listed in the NVD entry. Monitor the GitHub Decompress Zip Repository for release updates and apply any published patch promptly. If no patch is available, migrate to a maintained archive library.

Workarounds

  • Validate each resolved entry path against the destination directory using path.resolve() and verify the result starts with the destination path plus a trailing separator.
  • Extract untrusted archives inside a sandboxed, non-privileged working directory with no writable sibling paths of value.
  • Run extraction workloads under a dedicated low-privilege service account that lacks write access outside the extraction root.
bash
# Example safe path validation before writing each ZIP entry
const path = require('path');
const destRoot = path.resolve('/tmp/safe') + path.sep;
const resolved = path.resolve(destRoot, entry.path);
if (!resolved.startsWith(destRoot)) {
  throw new Error('Blocked path traversal attempt: ' + entry.path);
}

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.