December 2026 tar CVE roundup: seven archive-handling flaws fixed in 8.0.x
How newly disclosed tar bugs can crash extraction, overwrite files, or let symlinks reach outside the unpack directory

node-tar (published on npm as tar) is the standard JavaScript library for creating, extracting, listing, and updating .tar archives in Node.js and other modern runtimes. It was assigned a cluster of new CVEs published on December 1 and December 2, 2026. Across these seven disclosures, the main risks are denial of service during extraction, file overwrite inside the extraction target, and symlink behavior that lets later consumers read files outside the directory they meant to unpack into. Most affected releases are tar versions before 8.0.0, with one resource-exhaustion issue fixed in 8.0.2. For teams still running older package-management and build workflows, the key step is to identify where untrusted archives are extracted and move those systems to the fixed 8.0.x line.
Need coverage for
tarand other unsupported libraries with NES? See HeroDevs pricing.
What is in this tar CVE roundup?
This roundup covers seven tar CVEs disclosed together around the start of December 2026, all affecting archive extraction or parsing behavior.
Three of them are about containment. CVE-2026-140244, CVE-2026-140246, and CVE-2026-140247 describe different ways a crafted archive can create a symbolic link inside the extraction directory that actually resolves outside it. In each case, the advisory says the main danger comes later, when another part of the application reads, serves, copies, or archives the extracted tree and follows that planted link.
One issue, CVE-2026-140238, affects PAX extended headers. The advisory says a newline inside a PAX value can be treated as a new record during extraction, letting an attacker forge entry attributes such as path. In the most serious case, that can overwrite files within the extraction target. The NVD description adds that on Windows, in a specific npm install flow, that overwrite can reach package.json and later run an injected postinstall script.
CVE-2026-140234 is a NUL-byte handling bug. The advisory says crafted names can retain a NUL byte in ustar, GNU, or PAX names, and in async extraction that bad name can reach the filesystem layer and throw, crashing a process that does not catch the error.
CVE-2026-140240 and CVE-2026-140230 are the denial-of-service entries in the set. CVE-2026-140240 can drive excessive path-reservation work and memory retention with a very small crafted archive, which can force CPU or memory use high enough to crash services that unpack untrusted archives. CVE-2026-140230 is a separate flaw where a deeply nested symlink linkpath bypasses the package's depth guard, forcing quadratic memory allocation and causing an out-of-memory crash during extraction.
How severe are these CVEs?
All seven entries in this roundup were disclosed as High severity in the advisories or associated records we reviewed.
CVE-2026-140234, CVE-2026-140240, and CVE-2026-140230 primarily affect availability. The first can crash async extraction when a malformed name reaches the filesystem layer, while the latter two can exhaust memory or CPU with a small crafted archive.
CVE-2026-140238, CVE-2026-140244, CVE-2026-140246, and CVE-2026-140247 are more about integrity and containment. In plain terms, they break assumptions that extracted files and links stay where the archive says they should stay. That matters anywhere a build pipeline, package workflow, upload-processing job, or artifact service unpacks archives from an outside source.
| Version | Affected? | Free fix available? | Covered by HeroDevs? |
|---|---|---|---|
tar before 8.0.0 | Yes for CVE-2026-140230, CVE-2026-140234, CVE-2026-140238, CVE-2026-140244, CVE-2026-140246, and CVE-2026-140247 | Yes, upgrade to 8.0.0 or later | Yes |
tar 8.0.0 or 8.0.1 | Yes for CVE-2026-140240 | Yes, upgrade to 8.0.2 or later | Yes |
tar 8.0.2 and later | No for this roundup | Already fixed | Yes |
How to fix or reduce the risk
| If you are on | Do this |
|---|---|
tar before 8.0.0 | Upgrade to 8.0.2 or later so you pick up the 8.0.0 fixes for CVE-2026-140230, CVE-2026-140234, CVE-2026-140238, CVE-2026-140244, CVE-2026-140246, and CVE-2026-140247, plus the later 8.0.2 fix for CVE-2026-140240. |
tar 8.0.0 or 8.0.1 | Upgrade to 8.0.2 to address CVE-2026-140240. |
| An older environment where updating tar dependencies is difficult | Review whether untrusted archives are ever unpacked in build, package, or upload-processing workflows, and use HeroDevs pricing if you need coverage for tar and other unsupported libraries while you reduce exposure. |
| Any workflow that extracts third-party or user-supplied tar archives | Treat extracted trees as untrusted input, especially if later steps read files from them, serve them back to users, or copy them elsewhere. That is where the symlink-escape issues in this roundup matter most, and where the denial-of-service flaws can interrupt service. |
Taking action
Teams using tar should treat this as a dependency review and upgrade task, especially where archives come from users, external feeds, or package-install workflows. The fastest path is to move to 8.0.2 or later and then check the systems that read or reuse extracted content. If you need broader coverage for tar and other unsupported libraries as part of a legacy stack, HeroDevs can help you plan that work and reduce exposure while you close the gap.
Resources
View All Articles


