{"id":"GHSA-hrh2-vp3x-79xf","revision":"66a1bcfe996b4f6784e850f0a5b4f1f0","records":[{"revision":"66a1bcfe996b4f6784e850f0a5b4f1f0","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-hrh2-vp3x-79xf","aliases":["CVE-2026-101894"],"title":"@xhmikosr/decompress: Path traversal via symlink chain","description":"### Impact\n\nWhen 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.\n\nThis is a bypass of the hardening in GHSA-mp2f-45pm-3cg9. Any application that extracts attacker-controlled archives is affected.\n\n### Patches\n\nFixed in **11.1.4** (`latest`) and backported to **10.2.2** (`release-v10` dist-tag). Upgrade to one of these.\n\nThe unmaintained upstream `decompress` package shares this flaw and will not be patched. Migrate to `@xhmikosr/decompress@11.1.4` (or `@10.2.2`).\n\n### Workarounds\n\nNone. 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.","state":0,"publishedAt":"2026-09-29T23:49:42+00:00","modifiedAt":"2026-09-30T00:00:03.8421823+00:00","affected":[{"ecosystem":"npm","name":"@xhmikosr/decompress","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"11.0.0"},{"kind":"fixed","version":"11.1.4"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@xhmikosr/decompress","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"10.2.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"decompress","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"4.2.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/XhmikosR/decompress/security/advisories/GHSA-hrh2-vp3x-79xf","https://nvd.nist.gov/vuln/detail/CVE-2026-101894","https://github.com/XhmikosR/decompress/commit/5f4b2f64abb31bbaf1fef8975b595fd7df2558d8","https://github.com/XhmikosR/decompress/commit/f6c88c668216d6a12c6cecf4fe0b6c70bf77050a","https://github.com/XhmikosR/decompress","https://github.com/XhmikosR/decompress/releases/tag/v10.2.2","https://github.com/XhmikosR/decompress/releases/tag/v11.1.4"],"sourceUrl":"https://github.com/advisories/GHSA-hrh2-vp3x-79xf","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-hrh2-vp3x-79xf","identifiers":["GHSA-hrh2-vp3x-79xf","CVE-2026-101894"]},"retained":false,"historicalAffected":[]}],"coverage":[]}