{"answers":{"affected":"2 open source packages ship an affected version, including decompress. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39243 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-39243 is a medium-severity path traversal vulnerability in n/a, published on 9 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-39243 and fix it if it is affected.\n\nWhat it is: CVE-2026-39243 is a medium-severity path traversal vulnerability in n/a, published on 9 Jul 2026. It can only be exploited from the same machine or local network, 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-39243 exists.\n\nAffected packages and fixed versions:\n- decompress (npm): affected all versions up to 4.2.1; no fix listed\n- decompress (npm): affected all versions up to 4.2.1; 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-39243/ (Markdown: https://insights.sbomify.com/CVE-2026-39243/index.md)","id":"CVE-2026-39243","markdown":"https://insights.sbomify.com/CVE-2026-39243/index.md","name":"CVE-2026-39243","record":{"aliases":["GHSA-jwp9-9v96-94mx","MINI-7m5j-mr6h-mjjm","MINI-pqvv-vqxg-252f","MINI-v964-8pvp-fh27"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Node.js decompression library","requires_auth":"none","summary":"Attackers can create arbitrary hardlinks during archive extraction to read or overwrite files on the same filesystem.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"decompress","vendor":"decompress_project"}],"cvss":{"score":5.5,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"description":"decompress before 4.2.2 allows arbitrary hardlink creation during archive extraction, enabling file read disclosure and file corruption. When processing hardlink entries (type === 'link'), the x.linkname field from the archive is passed directly to fs.link() without validation (index.js line 113). An attacker can craft an archive with a hardlink entry whose linkname is an absolute path to any file on the same filesystem. This creates a hardlink inside the extraction directory that shares the same inode as the target file, enabling both reading and overwriting the original file's content. Hardlinks are limited to files on the same filesystem and cannot target directories.","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":"decompress allows arbitrary hardlink creation during archive extraction","id":"CVE-2026-39243","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":"adm-zip: Crafted ZIP file triggers 4GB memory allocation","id":"CVE-2026-39244"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["4.2.1"],"package":"decompress","purl":null,"source":"GHSA-jwp9-9v96-94mx"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["4.2.1"],"package":"decompress","purl":"pkg:npm/decompress","source":"GHSA-jwp9-9v96-94mx"}],"prev":{"headline":"SQL injection in n/a","id":"CVE-2026-39229"},"products":["n/a"],"published":"2026-07-09","related":[{"cvss_score":9.8,"headline":"Path Traversal in decompress","id":"CVE-2020-12265","kev_date_added":null,"published":"2020-04-26"},{"cvss_score":7.5,"headline":"Path traversal in n/a","id":"CVE-2026-39246","kev_date_added":null,"published":"2026-07-09"},{"cvss_score":6.2,"headline":"Path traversal in n/a","id":"CVE-2026-39245","kev_date_added":null,"published":"2026-07-09"}],"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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-10","vendors":["n/a"]},"summary":"Attackers can create arbitrary hardlinks during archive extraction to read or overwrite files on the same filesystem.","url":"https://insights.sbomify.com/CVE-2026-39243/"}