CVE-2026-53486: Decompress Archive Extraction Can Create Files Vulnerability

CRITICAL
Advisory Identifier: GHSA-mp2f-45pm-3cg9
CVSS 9.1
CWE-732 CWE-59 CWE-22
Published
Advisory Summary

CVE-2026-53486 is a CRITICAL (CVSS 9.1) archive extraction can create files vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Decompress libraries in the npm ecosystem. The issue involves archive extraction can create files and links outside of the target directory. Remediation is available by upgrading affected packages to version 10.2.1, 11.1.3.

CVE-2026-53486 at a Glance

CVE Identifier CVE-2026-53486
GHSA Identifier GHSA-mp2f-45pm-3cg9
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-732: Incorrect Permission Assignment for Critical Resource
Affected Product Decompress
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-53486

To remediate this vulnerability, upgrade all affected Decompress dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@xhmikosr/decompress fixed: 10.2.1
npm install @xhmikosr/decompress@10.2.1
@xhmikosr/decompress fixed: 11.1.3
npm install @xhmikosr/decompress@11.1.3
decompress fixed: Latest secure release
npm install decompress@Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @xhmikosr/decompress

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-53486, inspect your project dependencies using npm:

npm ls @xhmikosr/decompress

Analyze the terminal output to locate any version of Decompress in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.2.1), your application is affected.

Note: The npm ls @xhmikosr/decompress command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Decompress, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact When extracting an archive to a directory, a crafted archive can read or write files outside that directory. The flaw is in the code that writes the parsed entries, so it affects every format decompress handles: tar, tar.gz, tar.bz2, and zip by default, plus any others added through the plugins option. A link (hardlink) or symlink entry is created without checking where its target points. A hardlink can be aimed at any file the running process can read; that file then appears inside the output directory and its contents are exposed. A symlink can point outside the output directory and redirect a later write. The path containment check used a string prefix comparison (`realPath.indexOf(outputPath) !== 0`). Output `/srv/out` does not contain `/srv/out-old`, but the prefix comparison treats it as inside, so an entry can escape into a sibling directory whose name starts with the output directory name. File modes were applied as `mode & ~umask`, which does not remove the setuid, setgid, or sticky bits. A crafted entry can create a setuid or setgid file. This matters when extraction runs as root, for example in CI, containers, or install scripts. Any code that extracts archives from an untrusted or attacker-influenced source is affected. Archives are commonly downloaded before extraction, so this is reachable over the network in many setups. ### Patches Fixed in `@xhmikosr/decompress` 10.2.1 and 11.1.3. Link targets are now resolved and checked against the output directory, containment uses `path.relative`, and setuid, setgid, and sticky bits are removed. The upstream `decompress` package is unmaintained, and all versions through its last release (4.2.1) have the same flaws. There is no upstream fix. Migrate to `@xhmikosr/decompress` 11.1.3 or later. ### Workarounds Extract only archives you trust. Run extraction as a non-root user so the mode issue cannot create a privileged file. After extracting, reject any symlink or hardlink that points outside the target and any file with unexpected mode bits. ### Resources * Related prior issue in the upstream project this package forks: CVE-2020-12265 / GHSA-qgfr-5hqp-vrw9 * Fix commits and releases: * https://github.com/XhmikosR/decompress/releases/tag/v10.2.1 * https://github.com/XhmikosR/decompress/releases/tag/v11.1.3 * https://github.com/XhmikosR/decompress/commit/aca5aac * https://github.com/XhmikosR/decompress/commit/281cefa * https://github.com/XhmikosR/decompress/commit/60b5299

CVE-2026-53486 Affected Decompress Versions

3 component(s)
Fixed Versions:
10.2.111.1.3
Product / Package Ecosystem Affected Versions Fixed Version
@xhmikosr/decompress
npm
< 10.2.1
10.2.1
@xhmikosr/decompress
npm
≥ 11.0.0
< 11.1.3
11.1.3
decompress
npm
≤ 4.2.1

References

Frequently Asked Questions

What is CVE-2026-53486?
CVE-2026-53486 is a security vulnerability in Decompress involving Archive extraction can create files and links outside of the target directory under CWE-732: Incorrect Permission Assignment for Critical Resource.
Which Decompress versions are affected?
Affected versions include releases prior to 10.2.1, 11.1.3 across affected packages: @xhmikosr/decompress, decompress.
What version fixes CVE-2026-53486?
Upgrading to 10.2.1, 11.1.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @xhmikosr/decompress affected?
Yes, @xhmikosr/decompress is affected in releases prior to 10.2.1, 11.1.3. Upgrade your dependency to 10.2.1, 11.1.3 or later.
Is decompress affected?
Yes, decompress is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-53486?
CVE-2026-53486 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2026-53486?
CVE-2026-53486 is classified under CWE-732: Incorrect Permission Assignment for Critical Resource (The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.).
How can I check npm dependencies for CVE-2026-53486?
Run the dependency tree command: 'npm ls @xhmikosr/decompress'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mp2f-45pm-3cg9",
  "modified" : "2026-07-06T20:27:38Z",
  "published" : "2026-07-06T20:27:38Z",
  "aliases" : [ "CVE-2026-53486" ],
  "summary" : "Decompress: Archive extraction can create files and links outside of the target directory",
  "details" : "### Impact\n\nWhen extracting an archive to a directory, a crafted archive can read or write files outside that directory. The flaw is in the code that writes the parsed entries, so it affects every format decompress handles: tar, tar.gz, tar.bz2, and zip by default, plus any others added through the plugins option.\n\nA link (hardlink) or symlink entry is created without checking where its target points. A hardlink can be aimed at any file the running process can read; that file then appears inside the output directory and its contents are exposed. A symlink can point outside the output directory and redirect a later write.\n\nThe path containment check used a string prefix comparison (`realPath.indexOf(outputPath) !== 0`). Output `/srv/out` does not contain `/srv/out-old`, but the prefix comparison treats it as inside, so an entry can escape into a sibling directory whose name starts with the output directory name.\n\nFile modes were applied as `mode & ~umask`, which does not remove the setuid, setgid, or sticky bits. A crafted entry can create a setuid or setgid file. This matters when extraction runs as root, for example in CI, containers, or install scripts.\n\nAny code that extracts archives from an untrusted or attacker-influenced source is affected. Archives are commonly downloaded before extraction, so this is reachable over the network in many setups.\n\n### Patches\n\nFixed in `@xhmikosr/decompress` 10.2.1 and 11.1.3. Link targets are now resolved and checked against the output directory, containment uses `path.relative`, and setuid, setgid, and sticky bits are removed.\n\nThe upstream `decompress` package is unmaintained, and all versions through its last release (4.2.1) have the same flaws. There is no upstream fix. Migrate to `@xhmikosr/decompress` 11.1.3 or later.\n\n### Workarounds\n\nExtract only archives you trust. Run extraction as a non-root user so the mode issue cannot create a privileged file. After extracting, reject any symlink or hardlink that points outside the target and any file with unexpected mode bits.\n\n### Resources\n\n* Related prior issue in the upstream project this package forks: CVE-2020-12265 / GHSA-qgfr-5hqp-vrw9\n* Fix commits and releases:\n  * https://github.com/XhmikosR/decompress/releases/tag/v10.2.1\n  * https://github.com/XhmikosR/decompress/releases/tag/v11.1.3\n  * https://github.com/XhmikosR/decompress/commit/aca5aac\n  * https://github.com/XhmikosR/decompress/commit/281cefa\n  * https://github.com/XhmikosR/decompress/commit/60b5299",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@xhmikosr/decompress"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "10.2.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@xhmikosr/decompress"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0"
      }, {
        "fixed" : "11.1.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "decompress"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "4.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/XhmikosR/decompress/security/advisories/GHSA-mp2f-45pm-3cg9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/XhmikosR/decompress/commit/281cefa"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/XhmikosR/decompress/commit/60b5299"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/XhmikosR/decompress/commit/aca5aac"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/XhmikosR/decompress"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22", "CWE-59", "CWE-732" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-06T20:27:38Z",
    "nvd_published_at" : null
  }
}