Description
Versions of the package zip-lib before 1.1.0 are vulnerable to Directory Traversal via the caching mechanism for path validation during the extraction process. An attacker can bypass security checks designed to prevent directory traversal. The intended security function, isOutsideTargetFolder, only checks and caches the path status when the initial directory symlink is created during the first extraction.
Published: 2026-07-28
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Versions of the package zip-lib before 1.1.0 contain a Directory Traversal flaw in the caching mechanism used for path validation during extraction. The flaw allows an attacker to bypass the intended isOutsideTargetFolder check, enabling them to place extracted files outside the target directory. This can lead to arbitrary file read or write, compromising confidentiality, integrity, or availability of the system. The weakness is identified as CWE‑22.

Affected Systems

The affected product is the npm package zip-lib, all installations using any version earlier than 1.1.0. No specific vendor name is supplied, but the library is used in Node.js applications that rely on zip file extraction.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity vulnerability, while the EPSS score of less than 1% suggests that, at present, exploitation is unlikely to be widespread. Nevertheless, the flaw is not listed in the CISA KEV catalog. The likely attack vector involves an application that extracts a malicious zip archive; an attacker can supply a crafted archive that includes paths with directory traversal tokens. If the host process running the library has write permissions, the attacker can overwrite files or create files outside the intended directory.

Generated by OpenCVE AI on August 3, 2026 at 15:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the zip-lib package to 1.1.0 or later, which removes the caching flaw and correctly validates extraction paths.
  • If an upgrade is not immediately feasible, implement server-side validation that verifies extracted paths are confined to the target directory before any filesystem write operations.
  • Disable or restrict the ability of untrusted users to trigger zip extraction within the application to reduce the attack surface.

Generated by OpenCVE AI on August 3, 2026 at 15:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 01 Aug 2026 01:00:00 +0000

Type Values Removed Values Added
Title Directory Traversal in zip-lib via Caching Path Validation

Thu, 30 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Fpsqdb
Fpsqdb zip-lib
Vendors & Products Fpsqdb
Fpsqdb zip-lib

Tue, 28 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 28 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description Versions of the package zip-lib before 1.1.0 are vulnerable to Directory Traversal via the caching mechanism for path validation during the extraction process. An attacker can bypass security checks designed to prevent directory traversal. The intended security function, isOutsideTargetFolder, only checks and caches the path status when the initial directory symlink is created during the first extraction.
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: snyk

Published:

Updated: 2026-07-28T16:06:25.209Z

Reserved: 2026-07-27T08:21:00.930Z

Link: CVE-2026-17524

cve-icon Vulnrichment

Updated: 2026-07-28T16:06:21.304Z

cve-icon NVD

Status : Deferred

Published: 2026-07-28T06:16:41.380

Modified: 2026-07-30T20:11:09.180

Link: CVE-2026-17524

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T15:45:04Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')