6.1medium
decompress: Arbitrary File Write via Archive Extraction (Zip Slip)
- Severity
- 6.1medium CVSS:4.0 by snyk
- Exploit likelihood
- 0.52% (higher than 45% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-h39j-r5qq-r9mm
Description
All versions of the package decompress are vulnerable to Arbitrary File Write via Archive Extraction (Zip Slip) when extracting a ZIP archive containing two entries with the same path - the first being a symlink to an arbitrary target and the second being a regular file - the file content is written through the symlink to the target location outside the output directory. This is due to the microtask processing order that checks readlink for the second file before resolving symlink for the first file. An attacker can write arbitrary file on the host filesystem potentially leading to remote code execution by providing a specially crafted ZIP archive. **Note:** This bypasses all existing path traversal protections including preventWritingThroughSymlink, added as a part of the fix for [CVE-2020-12265](https://security.snyk.io/vuln/SNYK-JS-DECOMPRESS-557358).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| decompress | before * | CVE List |
| redhat-user-workloads/volsync-0-12 | Not specified | CVE List |
| redhat-user-workloads/volsync-bundle-0-12 | Not specified | CVE List |
| rhacm2/volsync-operator-bundle | Not specified | CVE List |
| rhacm2/volsync-rhel9 | Not specified | CVE List |
| dotnet8.0 | Not specified | CVE List |
| decompress (npm) | up to 4.2.1 | GitHub Advisory Database |
All scores
| snyk | 6.1medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N/E:P |
| snyk | 6.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:L/E:P |
| redhat-SADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 6.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:L |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N/E:P |
Classification
What each source says
CVE List
All versions of the package decompress are vulnerable to Arbitrary File Write via Archive Extraction (Zip Slip) when extracting a ZIP archive containing two entries with the same path - the first being a symlink to an arbitrary target and the second being a regular file - the file content is written through the symlink to the target location outside the output directory. This is due to the microtask processing order that checks readlink for the second file before resolving symlink for the first file. An attacker can write arbitrary file on the host filesystem potentially leading to remote code execution by providing a specially crafted ZIP archive. **Note:** This bypasses all existing path traversal protections including preventWritingThroughSymlink, added as a part of the fix for [CVE-2020-12265](https://security.snyk.io/vuln/SNYK-JS-DECOMPRESS-557358).
GitHub Advisory Database
All versions of the package decompress are vulnerable to Arbitrary File Write via Archive Extraction (Zip Slip) when extracting a ZIP archive containing two entries with the same path - the first being a symlink to an arbitrary target and the second being a regular file - the file content is written through the symlink to the target location outside the output directory. This is due to the microtask processing order that checks readlink for the second file before resolving symlink for the first file. An attacker can write arbitrary files on the host filesystem potentially leading to remote code execution by providing a specially crafted ZIP archive.
Note:
This bypasses all existing path traversal protections including preventWritingThroughSymlink, added as a part of the fix for CVE-2020-12265.
NVD (es)
Todas las versiones del paquete decompress son vulnerables a la escritura arbitraria de archivos mediante extracción de archivo (Zip Slip) al extraer un archivo ZIP que contiene dos entradas con la misma ruta - la primera siendo un enlace simbólico a un objetivo arbitrario y la segunda siendo un archivo regular - el contenido del archivo se escribe a través del enlace simbólico a la ubicación de destino fuera del directorio de salida. Esto se debe al orden de procesamiento de microtareas que verifica readlink para el segundo archivo antes de resolver el enlace simbólico para el primer archivo. Un atacante puede escribir un archivo arbitrario en el sistema de archivos del host, lo que podría conducir a la ejecución remota de código al proporcionar un archivo ZIP especialmente diseñado. Nota: Esto elude todas las protecciones de salto de ruta existentes, incluyendo preventWritingThroughSymlink, añadido como parte de la solución para [CVE-2020-12265](https://security.snyk.io/vuln/SNYK-JS-DECOMPRESS-557358).
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-10732 changed 2026-09-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-h39j-r5qq-r9mm changed 2026-08-13 | CC-BY-4.0 |
| NVD | CVE-2026-10732 changed 2026-09-07 | Public domain |