{"answers":{"affected":"2 open source packages ship an affected version, including adm-zip.","exploited":"There is no known exploitation of CVE-2026-76845 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-76845 is a medium-severity path traversal vulnerability in cthackers adm-zip, published on 24 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-76845 and fix it if it is affected.\n\nWhat it is: CVE-2026-76845 is a medium-severity path traversal vulnerability in cthackers adm-zip, published on 24 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-76845 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- adm-zip (npm): affected from 0.5.9 up to 0.6.0; no fix listed\n- adm-zip (npm): affected from 0.5.9 up to 0.6.0; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-76845/ (Markdown: https://insights.sbomify.com/CVE-2026-76845/index.md)","id":"CVE-2026-76845","markdown":"https://insights.sbomify.com/CVE-2026-76845/index.md","name":"CVE-2026-76845","record":{"aliases":["CLEANSTART-2026-FG34886","CLEANSTART-2026-RO21037","CLSA-2026-1790457506","GHSA-vwc7-r8mq-g2x9","MINI-236m-6jh4-qq8m","MINI-2j5x-hg3c-22hj","MINI-53wj-fp74-6x48","MINI-6383-v225-3f4q","MINI-882c-qm5c-qm56","MINI-8gf2-52qw-42qr","MINI-9vgg-gr4q-xxc9","MINI-cjjf-289p-cgm5","MINI-gw84-294c-6w74","MINI-h7c4-3w86-xfwv","MINI-j2p5-5hpx-8p99","MINI-p7pp-wwwf-jw3g","MINI-r8j5-9m73-c934","MINI-x45c-3hhm-w8v7"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Node.js zip library","requires_auth":"low_privilege","summary":"Attackers can overwrite arbitrary files outside the extraction directory by exploiting symlink following in adm-zip when overwrite is enabled.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"description":"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"adm-zip 0.5.9 through 0.6.0 Arbitrary File Overwrite via Symlink Following on Extraction","id":"CVE-2026-76845","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Grav before 2.0.16 Information Disclosure via Twig Sandbox","id":"CVE-2026-76846"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0.5.9"],"last_affected":["0.6.0"],"package":"adm-zip","purl":null,"source":"GHSA-vwc7-r8mq-g2x9"},{"ecosystem":"npm","fixed":[],"introduced":["0.5.9"],"last_affected":["0.6.0"],"package":"adm-zip","purl":"pkg:npm/adm-zip","source":"GHSA-vwc7-r8mq-g2x9"}],"prev":{"headline":"zlib 1.2.11 through 1.3.2 Heap Buffer Overflow via Stale gzwrite Pointer After Failed Write","id":"CVE-2026-76844"},"products":["adm-zip"],"published":"2026-08-24","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-24","vendors":["cthackers"]},"summary":"Attackers can overwrite arbitrary files outside the extraction directory by exploiting symlink following in adm-zip when overwrite is enabled.","url":"https://insights.sbomify.com/CVE-2026-76845/"}