CVE-2026-76845: Adm zip Adm-zip Extraction Follows Destination Symlinks, Vulnerability
MODERATECVE-2026-76845 is a MODERATE (CVSS 6.5) adm-zip extraction follows destination symlinks, vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting Adm zip libraries in the npm ecosystem. The issue involves adm-zip extraction follows destination symlinks, allowing arbitrary file overwrite. Remediation is available in the latest vendor maintenance releases.
CVE-2026-76845 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N).
How to Fix CVE-2026-76845
To remediate this vulnerability, upgrade all affected Adm zip dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install adm-zip@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls adm-zip
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-76845, inspect your project dependencies using npm:
npm ls adm-zip
Analyze the terminal output to locate any version of Adm zip in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls adm-zip command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following'), where the product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. In Adm zip, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-76845 Affected Adm zip Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
adm-zip
|
npm |
≥ 0.5.9
≤ 0.6.0
|
|
References
Frequently Asked Questions
What is CVE-2026-76845?
Which Adm zip versions are affected?
What version fixes CVE-2026-76845?
Is adm-zip affected?
What is the CVSS score of CVE-2026-76845?
What CWE is associated with CVE-2026-76845?
How can I check npm dependencies for CVE-2026-76845?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vwc7-r8mq-g2x9",
"modified" : "2026-09-08T21:20:41Z",
"published" : "2026-08-24T15:31:51Z",
"aliases" : [ "CVE-2026-76845" ],
"summary" : "adm-zip extraction follows destination symlinks, allowing arbitrary file overwrite",
"details" : "adm-zip 0.5.9 through 0.6.0 follows symbolic links at the extraction destination. Utils.sanitize in util/utils.js enforces containment by comparing only the string form of an archive entry name against the resolved extraction root, and Utils.writeFileTo opens the computed destination with fs.openSync(path, \"w\", 0o666), which resolves symbolic links and carries neither O_NOFOLLOW nor a pre-write fs.lstatSync check. When a path component at the destination already exists as a symbolic link pointing outside the extraction root, extractAllTo, extractAllToAsync and extractEntryTo write the entry contents through that link and then chmod its target, placing attacker-controlled content in a file outside the root without any traversal sequence appearing in the archive. Reaching the write requires overwrite to be enabled, because the preceding fs.existsSync check also resolves the link and otherwise declines. An attacker able to create a symbolic link inside a shared, reused or predictable extraction directory, such as a temporary directory or a continuous integration workspace, can overwrite any file the extracting process is permitted to write.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "adm-zip"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.5.9"
}, {
"last_affected" : "0.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-76845"
}, {
"type" : "WEB",
"url" : "https://github.com/cthackers/adm-zip/issues/574"
}, {
"type" : "WEB",
"url" : "https://github.com/cthackers/adm-zip/pull/575"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cthackers/adm-zip"
}, {
"type" : "WEB",
"url" : "https://github.com/cthackers/adm-zip/blob/v0.6.0/util/utils.js"
}, {
"type" : "WEB",
"url" : "https://www.vulncheck.com/advisories/adm-zip-through-arbitrary-file-overwrite-via-symlink-following-on-extraction"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-59" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-08T21:20:41Z",
"nvd_published_at" : "2026-08-24T14:17:02Z"
}
}