---
id: CVE-2026-29786
title: node-tar is a full-featured Tar for Node.js
summary: >-
  node-tar is a full-featured Tar for Node.js. Prior to version 7.5.10, tar can
  be tricked into creating a hardlink that points outside the extraction
  directory by using a drive-relative link target such as C:../target.txt, which
  enables f…
severity: medium
cvss: 6.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N'
cwe:
  - CWE-22
  - CWE-59
  - CWE-22
  - CWE-22
vendor: isaacs
product: tar
affected:
  - tar < 7.5.10
patched:
  - tar 7.5.10
published: '2026-03-07'
updated: '2026-09-01'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-29786'
references:
  - url: >-
      https://github.com/isaacs/node-tar/commit/7bc755dd85e623c0279e08eb3784909e6d7e4b9f
    label: security-advisories@github.com
  - url: 'https://github.com/isaacs/node-tar/security/advisories/GHSA-qffp-2rhf-9h96'
    label: security-advisories@github.com
  - url: 'https://access.redhat.com/security/cve/CVE-2026-29786'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2445476'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-29786.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
tags:
  - nvd
  - exploit-available
epss: 0.00439
epssPercentile: 0.37601
ingestedAt: '2026-09-01T13:27:08.005Z'
exploits:
  github: 2
  githubRepos:
    - 'https://github.com/Jvr2022/CVE-2026-29786'
    - 'https://github.com/Rohitberiwala/NodeJS-Tar-Symlink-Exploit-CVE-2026-29786'
  checkedAt: '2026-09-24T07:53:01.832Z'
exploitAvailable: true
---

## Overview

node-tar is a full-featured Tar for Node.js. Prior to version 7.5.10, tar can be tricked into creating a hardlink that points outside the extraction directory by using a drive-relative link target such as C:../target.txt, which enables file overwrite outside cwd during normal tar.x() extraction. This issue has been patched in version 7.5.10.

## Affected

- `tar < 7.5.10`

## Remediation

Upgrade past the affected range:

- `tar 7.5.10`
