Description
node-tar is a tar archive manipulation library for Node.js. Prior to 7.5.21, node-tar's filesFilter in src/list.ts uses the recursive mapHas helper to walk an archive entry path upward with path.dirname() and no segment cap when tar.t(...) or tar.x(...) receives a non-empty member-selection list. A crafted GNU L or PAX x long-path header with thousands of slash-separated segments reaches this.filter(entry.path, entry) in Parser[CONSUMEHEADER] in src/parse.ts before Unpack[CHECKPATH] applies maxDepth, causing an uncatchable RangeError stack overflow that terminates asynchronous and streaming Node.js consumers. This issue is fixed in version 7.5.21.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| isaacs | node-tar | < 7.5.21 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-tar | 7.5.22+~4.0.1-1 | — |
| Debian 13 | node-tar | No fix yet | — |
| Debian 12 | node-tar | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-tar | No fix yet | — |
| Ubuntu 26.04 LTS | node-tar | No fix yet | — |
| Ubuntu 24.04 LTS | node-tar | No fix yet | — |
| Ubuntu 22.04 LTS | node-tar | No fix yet | — |
| Ubuntu 18.04 LTS | node-tar | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | node-tar | No fix yet | — |
| Ubuntu Pro 16.04 LTS | node-tar | No fix yet | — |
| Ubuntu Pro 14.04 LTS | node-tar | No fix yet | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | nodejs22 +4 | 1:22.23.3-1.amzn2023.0.1 | ALAS2023-2026-3277 |
| Amazon Linux 2023 | nodejs22-npm | 1:10.9.9-1.22.23.3.1.amzn2023.0.1 | ALAS2023-2026-3277 |
| Amazon Linux 2023 | nodejs24 +4 | 1:24.22.0-1.amzn2023.0.1 | ALAS2023-2026-3297 |
| Amazon Linux 2023 | nodejs24-npm | 1:11.19.1-1.24.22.0.1.amzn2023.0.1 | ALAS2023-2026-3297 |
| Amazon Linux 2023 | v8-12.4-devel | 3:12.4.254.21-1.22.23.3.1.amzn2023.0.1 | ALAS2023-2026-3277 |
| Amazon Linux 2023 | v8-13.6-devel | 3:13.6.233.17-1.24.22.0.1.amzn2023.0.1 | ALAS2023-2026-3297 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | code-server | 4.130.0-r2 | — |
| Wolfi rolling | jupyter-base-notebook | 7.6.3-r2 | — |
| Wolfi rolling | kubeflow-centraldashboard | 1.10.0-r25 | — |
| Wolfi rolling | lerna | 9.0.7-r11 | — |
| Wolfi rolling | node-gyp | 13.0.1-r1 | — |
| Wolfi rolling | npm | 12.0.1-r2 | — |
| Wolfi rolling | opensearch-dashboards-3 +12 | 3.7.0-r7 | — |
| Wolfi rolling | pnpm-stage0 | No fix yet | — |
| Wolfi rolling | prism | 5.16.0-r4 | — |
| Wolfi rolling | pulumi-language-nodejs | 3.253.0-r2 | — |
| Wolfi rolling | renovate | 44.3.2-r0 | — |
| Wolfi rolling | saf | 1.7.0-r0 | — |
| Wolfi rolling | sqlpad | 7.5.7-r29 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | tar | < 7.5.21 | 7.5.21 | GHSA-r292-9mhp-454m |
Advisories 4
- WID-SEC-2026-3596 IBM App Connect Enterprise: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 10, 2026
- WID-SEC-2026-3376 Atlassian Bamboo, Bitbucket, Confluence, Fisheye/Crucible, Jira Software und Jira Service Management: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 10, 2026
- ALAS2023-2026-3277 Important: nodejs22 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 26, 2026
- ALAS2023-2026-3297 Important: nodejs24 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 26, 2026