tar vulnerabilities

tar for node

Registry
npm
Latest
7.5.22
License
BlueOak-1.0.0

21 known advisories

The latest version, 7.5.22, is not affected by any of them. Projects on older versions may be.

Update to the latest version:npm install tar@7.5.22

Security advisories for tar

  • HighGHSA-r292-9mhp-454m24 Jul 2026

    node-tar: Uncontrolled recursion in mapHas/filesFilter allows uncatchable stack-overflow DoS via crafted long-path tar with member selection

    Affected
    <7.5.21
    Fixed in
    7.5.21
  • MediumGHSA-w8wr-v893-vjvp20 Jul 2026

    node-tar: Process crash via PAX numeric path type confusion

    Affected
    <7.5.18
    Fixed in
    7.5.18
  • CriticalGHSA-23hp-3jrh-7fpw20 Jul 2026

    node-tar: Decompression/parse DoS via unlimited input

    Affected
    <7.5.19
    Fixed in
    7.5.19
  • HighGHSA-8x88-c5mf-7j5w20 Jul 2026

    node-tar: Negative tar entry size causes infinite loop in archive replace

    Affected
    <7.5.18
    Fixed in
    7.5.18
  • MediumGHSA-gvwx-54wh-qm9j20 Jul 2026

    node-tar: Uncaught Exception DoS via NUL byte in PAX path/linkpath records

    Affected
    <7.5.17
    Fixed in
    7.5.17
  • MediumGHSA-vmf3-w455-68vh15 Jun 2026

    node-tar applies PAX size override to intermediary GNU long-name/long-link headers, causing tar parser interpretation differential (file smuggling)

    Affected
    <7.5.16
    Fixed in
    7.5.16
  • HighGHSA-9ppj-qmqm-q25610 Mar 2026

    node-tar Symlink Path Traversal via Drive-Relative Linkpath

    Affected
    <7.5.11
    Fixed in
    7.5.11
  • HighGHSA-qffp-2rhf-9h965 Mar 2026

    tar has Hardlink Path Traversal via Drive-Relative Linkpath

    Affected
    <7.5.10
    Fixed in
    7.5.10
  • HighGHSA-83g3-92jg-28cx18 Feb 2026

    Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in node-tar Extraction

    Affected
    <7.5.8
    Fixed in
    7.5.8
  • HighGHSA-34x7-hfp2-rc4v28 Jan 2026

    node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal

    Affected
    <7.5.7
    Fixed in
    7.5.7
  • HighGHSA-r6q2-hw4h-h46w21 Jan 2026

    Race Condition in node-tar Path Reservations via Unicode Ligature Collisions on macOS APFS

    Affected
    <7.5.4
    Fixed in
    7.5.4
  • HighGHSA-8qq5-rm4j-mr9716 Jan 2026

    node-tar is Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization

    Affected
    <7.5.3
    Fixed in
    7.5.3
  • MediumGHSA-29xp-372q-xqph30 Oct 2025

    node-tar has a race condition leading to uninitialized memory exposure

    Affected
    >=7.5.1 <7.5.2
    Fixed in
    7.5.2
  • MediumGHSA-f5x3-32g6-xq3622 Mar 2024

    Denial of service while parsing a tar file due to lack of folders count validation

    Affected
    <6.2.1
    Fixed in
    6.2.1
  • HighGHSA-9r2w-394v-53qc31 Aug 2021

    Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning using symbolic links

    Affected
    >=3.0.0 <4.4.16 · >=5.0.0 <5.0.8 · >=6.0.0 <6.1.7
    Fixed in
    4.4.16, 5.0.8, 6.1.7
  • HighGHSA-qq89-hq3f-393p31 Aug 2021

    Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning using symbolic links

    Affected
    >=3.0.0 <4.4.18 · >=5.0.0 <5.0.10 · >=6.0.0 <6.1.9
    Fixed in
    4.4.18, 5.0.10, 6.1.9
  • HighGHSA-5955-9wpr-37jh31 Aug 2021

    Arbitrary File Creation/Overwrite on Windows via insufficient relative path sanitization

    Affected
    <4.4.18 · >=5.0.0 <5.0.10 · >=6.0.0 <6.1.9
    Fixed in
    4.4.18, 5.0.10, 6.1.9
  • HighGHSA-3jfq-g458-7qm93 Aug 2021

    Arbitrary File Creation/Overwrite due to insufficient absolute path sanitization

    Affected
    <3.2.2 · >=4.0.0 <4.4.14 · >=5.0.0 <5.0.6 · >=6.0.0 <6.1.1
    Fixed in
    3.2.2, 4.4.14, 5.0.6, 6.1.1
  • HighGHSA-r628-mhmh-qjhw3 Aug 2021

    Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning

    Affected
    >=3.0.0 <3.2.3 · >=4.0.0 <4.4.15 · >=5.0.0 <5.0.7 · >=6.0.0 <6.1.2
    Fixed in
    3.2.3, 4.4.15, 5.0.7, 6.1.2
  • HighGHSA-j44m-qm6p-hp7m1 May 2019

    Arbitrary File Overwrite in tar

    Affected
    >=3.0.0 <4.4.2 · <2.2.2
    Fixed in
    2.2.2, 4.4.2
  • HighGHSA-gfjr-3jmm-4g9v24 Oct 2017

    Symlink Arbitrary File Overwrite in tar

    Affected
    <2.0.0
    Fixed in
    2.0.0

Which of your client projects still run an old tar?

NPMscan reads the package-lock.json, yarn.lock and pnpm-lock.yaml in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other npm packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the npm registry.