{"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-59874 exists.","fix":"Upgrade tar to 7.5.18 or later.","what":"CVE-2026-59874 is a high-severity denial of service vulnerability in isaacs node-tar, published on 8 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-59874 and fix it if it is affected.\n\nWhat it is: CVE-2026-59874 is a high-severity denial of service vulnerability in isaacs node-tar, published on 8 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-59874 exists.\n\nAffected packages and fixed versions:\n- tar (npm): affected all versions; fixed in 7.5.18\n- tar (npm): affected all versions; fixed in 7.5.18\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-59874/ (Markdown: https://insights.sbomify.com/CVE-2026-59874/index.md)","id":"CVE-2026-59874","markdown":"https://insights.sbomify.com/CVE-2026-59874/index.md","name":"CVE-2026-59874","record":{"aliases":["CLEANSTART-2026-JQ76135","CLEANSTART-2026-NS47377","CLEANSTART-2026-RB55722","DEBIAN-CVE-2026-59874","ECHO-ddc0-f33b-a817","GHSA-8x88-c5mf-7j5w","MINI-2m92-c7p7-phq2","MINI-2x29-f86x-rpqp","MINI-3hh2-r4c3-4mhr","MINI-4mwf-fq5p-fq82","MINI-5426-2r77-x552","MINI-5hxx-pr38-qr6j","MINI-6ww3-f9xw-8vch","MINI-7mj2-qwpp-chwg","MINI-7w3w-j2m9-m9r6","MINI-8jrm-jw38-h27x","MINI-8rm2-php3-54x6","MINI-c5xp-2732-69mv","MINI-cc7p-9hw5-wpgf","MINI-cpqv-vq67-438c","MINI-f55p-wmhg-3jg7","MINI-fc2x-r23r-784q","MINI-gq7w-5x4r-47pv","MINI-h2fj-6772-2c48","MINI-mrx6-pc3v-vx45","MINI-mw3f-mv9m-v2c9","MINI-p7w3-9xx7-x5qm","MINI-rcqg-jv3q-c9rj","MINI-rfr4-48fm-9q2h","MINI-rpj6-vrg4-ff6x","MINI-rpp9-xp7g-pm36","MINI-rr6p-ghj5-qp8g","MINI-rvpj-7759-6x26","MINI-wphg-2p67-99j6","MINI-wr6g-2w3g-mrg3","MINI-wxcj-39v3-w5h7","MINI-xhgp-r5m3-9frr","ROOT-APP-NPM-CVE-2026-59874","UBUNTU-CVE-2026-59874"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js tar library","requires_auth":"none","summary":"An attacker can cause a denial of service in node-tar by providing a tar archive with a negative entry size, leading to an infinite loop during archive replacement.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"tar","vendor":"isaacs"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"description":"node-tar is a tar archive manipulation library for Node.js. Prior to 7.5.18, tar.replace accepts a checksum-valid tar header with a negative base-256 encoded entry size, causing the archive scanner to make no progress while repeatedly parsing the same header. This issue is fixed in version 7.5.18.","ecosystems":["npm"],"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: Negative tar entry size causes infinite loop in archive replace","id":"CVE-2026-59874","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"node-tar: Uncaught Exception DoS via NUL byte in PAX path/linkpath records","id":"CVE-2026-59875"},"packages":[{"ecosystem":"npm","fixed":["7.5.18"],"introduced":["0"],"last_affected":[],"package":"tar","purl":null,"source":"GHSA-8x88-c5mf-7j5w"},{"ecosystem":"npm","fixed":["7.5.18"],"introduced":["0"],"last_affected":[],"package":"tar","purl":"pkg:npm/tar","source":"GHSA-8x88-c5mf-7j5w"}],"prev":{"headline":"node-tar: Decompression/parse DoS via unlimited input","id":"CVE-2026-59873"},"products":["node-tar"],"published":"2026-07-08","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.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 Creation/Overwrite via Hardlink Path Traversal","id":"CVE-2026-24842","kev_date_added":null,"published":"2026-01-28"},{"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":"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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-08","vendors":["isaacs"]},"summary":"An attacker can cause a denial of service in node-tar by providing a tar archive with a negative entry size, leading to an infinite loop during archive replacement.","url":"https://insights.sbomify.com/CVE-2026-59874/"}