Skip to main content

zip-lib CVE-2026-17524

| EUVDEUVD-2026-49687 HIGH
Path Traversal (CWE-22)
2026-07-28 snyk GHSA-73hr-7685-xwj3
8.7
CVSS 4.0 · Vendor: snyk
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft zip with directory symlink plus traversal entries
  2. Delivery
    Deliver archive to app using zip-lib <1.1.0
  3. Exploit
    First extraction caches symlink path as validated
  4. Execution
    Later entries bypass isOutsideTargetFolder check
  5. Impact
    Write arbitrary files outside target folder

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an application to extract an attacker-supplied (untrusted) zip archive using zip-lib before 1.1.0. The archive must be crafted so that a directory symlink is created during the first extraction pass - this is what causes isOutsideTargetFolder to cache a path-status result and then skip re-validation for subsequent entries, allowing later archive entries to resolve through the symlink and write outside the intended target folder. Limiting factors: the vulnerable application must process attacker-controlled archives (not just self-generated ones), and it must use zip-lib for extraction; there is no authentication or user-interaction gate beyond the act of extraction, and default extraction behavior is affected (no special non-default configuration is needed once untrusted input is extracted).

Impact

The vendor's CVSS 4.0 base of 8.7 (High) rests on VC:H/VI:N/VA:N, but every other signal points to an integrity impact, not confidentiality: this is a CWE-22 directory-traversal-during-extraction flaw, the added regression test is literally named 'unzipArbitraryFileWrite', and the fix logic tracks symlink folders to reject writes whose realpath escapes realTargetFolder. That strongly suggests the impact metrics are mislabeled - it should be VI:H (arbitrary file WRITE outside the target folder), not VC:H - so the raw 8.7 overstates confidentiality and understates integrity. Real-world urgency is modest: EPSS is 0.78% (52nd percentile), SSVC records Exploitation:none / Automatable:yes / Technical Impact:partial, there is no CISA KEV listing and no public exploit identified (Snyk-reported research disclosure). Automatable:yes plus a network-delivered malicious archive is the main reason to patch promptly, but this is a fix-in-normal-cycle issue rather than an emergency. A patch (zip-lib 1.1.0) is available, which is the decisive mitigation. Net: a legitimately exploitable library bug, but the 'critical-looking' score is inflated by a likely-wrong confidentiality metric and unsupported by exploitation telemetry.

Exploit ScenarioDerived

An attacker supplies a crafted zip archive to an application that extracts untrusted archives with zip-lib < 1.1.0. The archive first creates a directory symlink (whose path is validated and cached by isOutsideTargetFolder on first extraction), and subsequent entries reuse that stale cached validation to write files through the symlink outside the intended output folder. No public exploit code is identified, but the attack is deterministic and needs no privileges once the target extracts the archive.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 16, 2026

Directory traversal during archive extraction in zip-lib (npm) before 1.1.0 lets an attacker-crafted zip archive write files outside the intended destination folder. The root cause is the library's cached path validation: isOutsideTargetFolder only evaluates and caches a path's status when the first directory symlink is created during extraction, so subsequent archive entries that resolve through that symlink bypass the "outside target folder" check (CWE-22). The realistic impact is arbitrary file write / integrity loss rather than data disclosure, consistent with the fix commit that adds a symlinkFolders tracking list and a regression test named unzipArbitraryFileWrite. Exploitation requires the consuming application to extract an attacker-supplied archive with an affected version; there is no authentication or user-interaction gate beyond the extraction itself (PR:N/UI:N). No public exploit code was identified at time of analysis and the issue is not in CISA KEV; EPSS is 0.78% (52nd percentile), and the vendor fix is publicly available in 1.1.0.

RemediationAI

Vendor-released patch: zip-lib 1.1.0 - upgrade to 1.1.0 or later (npm install zip-lib@^1.1.0) and rebuild any bundled/transpiled copies of the library, since the fix lives in src/unzip.ts and src/fs.ts and is delivered by the upstream commit https://github.com/fpsqdb/zip-lib/commit/0c29b1e17050f2611f4f37e6aaa92a60b3cb89d5; consult the Snyk advisory at https://security.snyk.io/vuln/SNYK-JS-ZIPLIB-13834403 and the upstream issue https://github.com/fpsqdb/zip-lib/issues/14 for tracking. Until every dependency is upgraded, apply the following compensating controls where untrusted archives are extracted: pre-screen archive entries and reject any that are symlinks, that contain '..' path segments, or that resolve outside the destination prefix (trade-off: legitimate archives that rely on symlinks or unusual relative paths may be rejected, and this requires custom parsing before extraction); extract into a dedicated, disposable directory owned by a least-privileged, non-privileged user or confined container so that any escape writes remain inside a disposable sandbox (trade-off: it does not stop overwriting files within that sandbox and needs correct volume/mount isolation); canonicalize each entry's destination with realpath against the destination root and abort the whole operation if a mismatch is detected after the first pass (trade-off: some overhead and it must be applied per-extraction, plus a partial write may have already occurred before abort, so combine it with ordering or symlink rejection); and avoid extracting attacker-controlled archives in the same filesystem subtree as application code, configs, cron/startup locations or package directories, since those are the practical targets of an arbitrary-file-write primitive. Note that EPSS is only 0.78% and there is no identified public exploit code, so prioritization can reflect the exposure of any extraction endpoint rather than mass emergency patching.

Affected VersionsENISA

zip-lib 0 <1.1.0

Affected Packages

euvd zip_lib fix: 1.1.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

zip-lib is an open-source Node.js/TypeScript archive (zip/unzip) library published to npm under the fpsqdb repository, widely used by build tools, server-side upload handlers and automation that extract user-provided archives. The vulnerability is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory / Path Traversal), specifically a symlink-based escape during extraction. In pre-1.1.0 code, ensureFolder/mkdir in src/fs.ts used fs.stat and treated an existing entry as a normal directory, while unzip.ts maintained a validation helper (isOutsideTargetFolder) that short-circuits as soon as it has cached a result for a path. Because the symlink directory is created by the first archive entry and the check for it is cached, entries extracted later (for example 'dirlink/../../evil.js' or files placed under a symlinked directory) are resolved through the symlink without re-validation, allowing writes outside the target folder. The upstream fix changes src/unzip.ts to track symlink folders ('symlinkFolders: {folder, realpath}[]'), to run the outside-target check when either symlink files or symlink folders exist, and to compare each entry's realpath prefix against realTargetFolder; src/fs.ts now uses fs.lstat and realpath to distinguish real directories from symlinks and returns the resolved real path. The commit diff also comments out earlier ad-hoc debugging paths and adds test/src/unzipArbitraryFileWrite.ts as an explicit regression test. The CPE string cpe:2.3:a:n/a:zip-lib:*:*:*:*:*:*:*:* has an unassigned vendor component and no version bound, so the authoritative version constraint comes from the vendor/EUVD data: all releases below 1.1.0.

Know when Zip Lib gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (snyk) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

Malicious archive is network-delivered and needs no privileges (AV:N/PR:N); impact is arbitrary file write outside the target folder (I:H), with no confidentiality or availability effect, so C:N/A:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (snyk).

CVSS VectorVendor: snyk

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Patch available
Jul 28, 2026 - 07:01 EUVD
CVSS changed
Jul 28, 2026 - 06:22 NVD
7.5 (HIGH) 8.7 (HIGH)
CVE Published
Jul 28, 2026 - 05:00 cve.org
HIGH 8.7

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A path-validation defect in the zip-lib npm package (versions prior to 1.1.0) lets a specially crafted ZIP archive write files outside the folder an application intended to extract into, allowing overwrite or corruption of files anywhere the extraction process has write access. Any product, service, or build pipeline that unpacks external or user-supplied archives using an affected version is in scope, and no authentication or user interaction is needed to trigger it. The realistic consequence is integrity loss - tampered application code, configuration, or CI/CD artifacts - rather than data disclosure, and remediation is a straightforward dependency upgrade.

Business Impact: High
Compensating Controls

Apply vendor patch. Until upgraded, extract archives only into an isolated, ephemeral directory owned by a least-privilege account, run extraction in a sandbox or container with no write access to application, configuration, or credential paths, and prefer pre-validated or trusted archive sources.

Threat Intelligence Overview

EPSS Score
0.8%
Top 48% exploitable
Prevalence
Low
niche npm zip-extraction library, not a top-tier archive package
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy