Description
The decompress package for Node.js extracts archives. Prior to 10.2.1 and 11.1.3, archive extraction can create files and links outside the target directory. When extracting an archive to a directory, a crafted archive can read or write files outside that directory because hardlink and symlink entries are created without checking where targets point, path containment used a string prefix comparison, and file modes failed to remove setuid, setgid, or sticky bits. This issue is fixed in @xhmikosr/decompress versions 10.2.1 and 11.1.3.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| XhmikosR | decompress | < 10.2.1, >= 11.0.0, < 11.1.3 | — |
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.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | dotnet-hostfxr-8.0 +7 | 8.0.28-1.2.hum1 | RHSA-2026:40415 |
| Red Hat Hardened Images 1 | dotnet8.0 +4 | 8.0.128-1.2.hum1 | RHSA-2026:40415 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | @xhmikosr/decompress | < 10.2.1 | 10.2.1 | GHSA-mp2f-45pm-3cg9 |
| npm | @xhmikosr/decompress | >= 11.0.0, < 11.1.3 | 11.1.3 | GHSA-mp2f-45pm-3cg9 |
| npm | decompress | <= 4.2.1 | — | GHSA-mp2f-45pm-3cg9 |
Advisories 1
- RHSA-2026:40415 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Oct 20, 2026
References
- https://github.com/XhmikosR/decompress/security/advisories/GHSA-mp2f-45pm-3cg9
- https://github.com/XhmikosR/decompress/commit/281cefa00cd4275c10479bc5f1abba6b14dee8bd
- https://github.com/XhmikosR/decompress/commit/60b5299402e72b0b53ca2e55222e9a1ccb44afae
- https://github.com/XhmikosR/decompress/commit/9fcda4b0a66ca22dc8d337f9b0e7c30293c5fb89
- https://github.com/XhmikosR/decompress/commit/aca5aac415dc04a6fae5200e51368cff436a09dd
- https://github.com/XhmikosR/decompress/releases/tag/v10.2.1
- https://github.com/XhmikosR/decompress/releases/tag/v11.1.3