7.1high
A flaw in Node.js’s Permissions model allows attackers to bypass --allow-fs-read and --allow-fs-write restrictions using crafted relative s…
- Severity
- 7.1high CVSS:3.1 by redhat-SADP
- Exploit likelihood
- 1.73% (higher than 78% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- hackerone
- Also known as
- BIT-NODE-2025-55130BIT-NODE-MIN-2025-55130
Description
A flaw in Node.js’s Permissions model allows attackers to bypass `--allow-fs-read` and `--allow-fs-write` restrictions using crafted relative symlink paths. By chaining directories and symlinks, a script granted access only to the current directory can escape the allowed path and read sensitive files. This breaks the expected isolation guarantees and enables arbitrary file read/write, leading to potential system compromise. This vulnerability affects users of the permission model on Node.js v20, v22, v24, and v25.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nodejs node | from 20.19.6 up to 20.19.6, from 22.21.1 up to 22.21.1, from 24.12.0 up to 24.12.0, from 25.2.1 up to 25.2.1 | CVE List |
| nodejs24 | Not specified Not affected: from 1:24.13.0-1.el10_1 before * | CVE List |
| nodejs22 | Not specified Not affected: from 1:22.22.0-3.el10_1 before *, from 1:22.22.0-1.el10_0 before * | CVE List |
| nodejs:24 | Not specified Not affected: from 8100020260116121421.6d880403 before *, from 9070020260117213814.rhel9 before * | CVE List |
| nodejs:22 | Not specified Not affected: from 8100020260119091831.6d880403 before *, from 9070020260117213838.rhel9 before *, from 9060020260210120402.rhel9 before * | CVE List |
| nodejs:20 | Not specified Not affected: from 8100020260119100525.489197e6 before *, from 9070020260117213748.rhel9 before *, from 9040020260211171433.rhel9 before *, from 9060020260210180816.rhel9 before * | CVE List |
| nodejs24-main | Not specified Not affected: from 24.14.1-4.1.hum1 before *, from 24.14.1-4.hum1 before * | CVE List |
| nodejs25-main | Not specified Not affected: from 25.9.0-1.1.hum1 before *, from 25.9.0-1.hum1 before * | CVE List |
| nodejs20-main | Not specified Not affected: from 20.20.0-7.1.hum1 before * | CVE List |
| nodejs22-main | Not specified Not affected: from 22.22.0-1.3.hum1 before * | CVE List |
| nodejs node.js | from 20.0.0 before 20.20.0, from 22.0.0 before 22.22.0, from 24.0.0 before 24.13.0, from 25.0.0 before 25.3.0 | NVD |
| node (Bitnami) | from 20.0.0 before 20.20.0, from 21.0.0 before 22.22.0, from 23.0.0 before 24.13.0, from 25.0.0 before 25.3.0 | Bitnami Vulnerability Database |
| node-min (Bitnami) | from 20.0.0 before 20.20.0, from 21.0.0 before 22.22.0, from 23.0.0 before 24.13.0, from 25.0.0 before 25.3.0 | Bitnami Vulnerability Database |
All scores
| hackerone | 7.1high CVSS:3.0 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| redhat-SADP | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| Bitnami Vulnerability Database | critical rating |
Classification
What each source says
CVE List
A flaw in Node.js’s Permissions model allows attackers to bypass `--allow-fs-read` and `--allow-fs-write` restrictions using crafted relative symlink paths. By chaining directories and symlinks, a script granted access only to the current directory can escape the allowed path and read sensitive files. This breaks the expected isolation guarantees and enables arbitrary file read/write, leading to potential system compromise. This vulnerability affects users of the permission model on Node.js v20, v22, v24, and v25.
NVD (es)
Una falla en el modelo de permisos de Node.js permite a los atacantes eludir las restricciones `--allow-fs-read` y `--allow-fs-write` utilizando rutas de enlaces simbólicos relativos manipuladas. Al encadenar directorios y enlaces simbólicos, un script al que se le concedió acceso solo al directorio actual puede escapar de la ruta permitida y leer archivos sensibles. Esto rompe las garantías de aislamiento esperadas y permite la lectura/escritura arbitraria de archivos, lo que lleva a un posible compromiso del sistema. Esta vulnerabilidad afecta a los usuarios del modelo de permisos en Node.js v20, v22, v24 y v25.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-55130 changed 2026-07-15 | CVE Terms of Use |
| NVD | CVE-2025-55130 changed 2026-07-15 | Public domain |
| Bitnami Vulnerability Database | BIT-NODE-2025-55130 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-NODE-MIN-2025-55130 changed 2026-09-08 | Apache-2.0 |