Skip to content
Heist/ feed
CriticalFix available

@xhmikosr/decompress: Path traversal via symlink chain

Type: advisorySource: OSV1 source record

### Impact When extracting an untrusted archive with the default `decompress(input, output)` API, a crafted archive containing a chain of symlink entries can make a later entry resolve **outside** the output directory. The lexical containment checks pass, but the kernel follows the planted symlinks to a path outside `output`, letting an attacker write (and read) files outside the intended extraction directory. Overwriting startup scripts or configuration can lead to remote code execution. This is a bypass of the hardening in GHSA-mp2f-45pm-3cg9. Any application that extracts attacker-controlled archives is affected. ### Patches Fixed in **11.1.4** (`latest`) and backported to **10.2.2** (`release-v10` dist-tag). Upgrade to one of these. The unmaintained upstream `decompress` package shares this flaw and will not be patched. Migrate to `@xhmikosr/decompress@11.1.4` (or `@10.2.2`). ### Workarounds None. Do not extract untrusted archives on affected versions. If you cannot upgrade, validate entries out of band and reject any whose resolved path escapes the target directory.

Announced Group revision 1
Original source ↗

GHSA-hrh2-vp3x-79xf

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:GHSA-hrh2-vp3x-79xf

@xhmikosr/decompress

Source reference: /affected/0/package/name

Affected versions
Not stated in this record
Fixed versions
11.1.4

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

@xhmikosr/decompress

Source reference: /affected/1/package/name

Affected versions
Not stated in this record
Fixed versions
10.2.2

Source reference: /affected/1/ranges

Prerequisites
Not stated in this record

decompress

Source reference: /affected/2/package/name

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "11.0.0"
          },
          {
            "fixed": "11.1.4"
          }
        ]
      }
    ],
    "package": {
      "name": "@xhmikosr/decompress",
      "purl": "pkg:npm/%40xhmikosr/decompress",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-hrh2-vp3x-79xf/GHSA-hrh2-vp3x-79xf.json",
      "last_known_affected_version_range": "<= 11.1.3"
    }
  },
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "10.2.2"
          }
        ]
      }
    ],
    "package": {
      "name": "@xhmikosr/decompress",
      "purl": "pkg:npm/%40xhmikosr/decompress",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-hrh2-vp3x-79xf/GHSA-hrh2-vp3x-79xf.json",
      "last_known_affected_version_range": "<= 10.2.1"
    }
  },
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          },
          {
            "last_affected": "4.2.1"
          }
        ]
      }
    ],
    "package": {
      "name": "decompress",
      "purl": "pkg:npm/decompress",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-hrh2-vp3x-79xf/GHSA-hrh2-vp3x-79xf.json"
    }
  }
]
Related CVEs
CVE-2026-101894

Source reference: /aliases

Publisher severity

critical

Source reference: /database_specific/severity

Linked CVE context

These ratings describe the referenced vulnerabilities and products. They are not a severity rating for every application using this dependency.

CVE-2026-101894 · Critical

decompress, decompress

Event
#33263 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement