{"answers":{"affected":"2 open source packages ship an affected version, including tar. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-24842 exists.","fix":"Upgrade tar to 7.5.7 or later.","what":"CVE-2026-24842 is a high-severity path traversal vulnerability in isaacs node-tar, published on 28 Jan 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-24842 and fix it if it is affected.\n\nWhat it is: CVE-2026-24842 is a high-severity path traversal vulnerability in isaacs node-tar, published on 28 Jan 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-24842 exists.\n\nAffected packages and fixed versions:\n- tar (npm): affected all versions; fixed in 7.5.7\n- tar (npm): affected all versions; fixed in 7.5.7\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-24842/ (Markdown: https://insights.sbomify.com/CVE-2026-24842/index.md)","id":"CVE-2026-24842","markdown":"https://insights.sbomify.com/CVE-2026-24842/index.md","name":"CVE-2026-24842","record":{"aliases":["CLEANSTART-2026-RV26689","CLEANSTART-2026-WI35354","DEBIAN-CVE-2026-24842","ECHO-60e5-49eb-41f5","GHSA-34x7-hfp2-rc4v","MINI-27cj-2277-vcqf","MINI-328c-g55r-hwc3","MINI-3j67-pwmc-h66x","MINI-3j82-xf2r-33hj","MINI-5xg4-pqx8-4cq3","MINI-6mqc-7538-w55r","MINI-7354-wgf2-4whh","MINI-778q-r5fv-p9m9","MINI-8g26-fp85-p3r5","MINI-8x94-qqg3-j72p","MINI-947f-mrph-26qc","MINI-9rp5-4p8h-2xf8","MINI-f732-fjp5-2wc9","MINI-f829-7rhr-g7ph","MINI-jjfq-74w5-mp64","MINI-m5xp-8pmg-rq43","MINI-m82f-p574-496f","MINI-mgq4-j4m5-jx5v","MINI-p6g5-px2m-8wmc","MINI-p8mm-8xp2-f5g4","MINI-p964-962p-cxcr","MINI-vm3g-pjgx-cxpx","MINI-w7jx-5mx3-cgmm","MINI-wfg6-w6jv-p7qq","MINI-x3p9-68v6-g56j","ROOT-APP-NPM-CVE-2026-24842","UBUNTU-CVE-2026-24842","openSUSE-SU-2026:10410-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js tar library","requires_auth":"none","summary":"Attackers can exploit a path traversal flaw in node-tar to create hardlinks to arbitrary files, potentially leading to data modification or code execution.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"tar","vendor":"isaacs"}],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"node-tar,a Tar for Node.js, contains a vulnerability in versions prior to 7.5.7 where the security check for hardlink entries uses different path resolution semantics than the actual hardlink creation logic. This mismatch allows an attacker to craft a malicious TAR archive that bypasses path traversal protections and creates hardlinks to arbitrary files outside the extraction directory. Version 7.5.7 contains a fix for the issue.","ecosystems":["npm","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal","id":"CVE-2026-24842","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"melange QEMU runner could write files outside workspace directory","id":"CVE-2026-24843"},"packages":[{"ecosystem":"npm","fixed":["7.5.7"],"introduced":["0"],"last_affected":[],"package":"tar","purl":null,"source":"GHSA-34x7-hfp2-rc4v"},{"ecosystem":"npm","fixed":["7.5.7"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:npm/tar","source":"GHSA-34x7-hfp2-rc4v"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["10.32.1-1.1"],"introduced":["0"],"last_affected":[],"package":"pnpm","purl":"pkg:rpm/opensuse/pnpm\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10410-1"}],"prev":{"headline":"Command injection in dokploy","id":"CVE-2026-24841"},"products":["node-tar"],"published":"2026-01-28","related":[{"cvss_score":9.2,"headline":"node-tar: Decompression/parse DoS via unlimited input","id":"CVE-2026-59873","kev_date_added":null,"published":"2026-07-08"},{"cvss_score":8.8,"headline":"node-tar has Race Condition in Path Reservations via Unicode Ligature Collisions on macOS APFS","id":"CVE-2026-23950","kev_date_added":null,"published":"2026-01-20"},{"cvss_score":8.7,"headline":"node-tar: Negative tar entry size causes infinite loop in archive replace","id":"CVE-2026-59874","kev_date_added":null,"published":"2026-07-08"},{"cvss_score":8.2,"headline":"node-tar Symlink Path Traversal via Drive-Relative Linkpath","id":"CVE-2026-31802","kev_date_added":null,"published":"2026-03-09"},{"cvss_score":8.2,"headline":"node-tar: Hardlink Path Traversal via Drive-Relative Linkpath","id":"CVE-2026-29786","kev_date_added":null,"published":"2026-03-07"},{"cvss_score":8.2,"headline":"node-tar Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization","id":"CVE-2026-23745","kev_date_added":null,"published":"2026-01-16"}],"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":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-07","vendors":["isaacs"]},"summary":"Attackers can exploit a path traversal flaw in node-tar to create hardlinks to arbitrary files, potentially leading to data modification or code execution.","url":"https://insights.sbomify.com/CVE-2026-24842/"}