Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft zip with directory symlink plus traversal entries
-
DeliveryDeliver archive to app using zip-lib <1.1.0
-
ExploitFirst extraction caches symlink path as validated
-
ExecutionLater entries bypass isOutsideTargetFolder check
-
ImpactWrite 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (snyk).
CVSS VectorVendor: snyk
Lifecycle Timeline
3DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-49687
GHSA-73hr-7685-xwj3
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB