CVE-2025-55130
published 2026-01-20CVE-2025-55130: 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…
critical9.1CVSS 3.1
AVNACLPRNUINSUCHIHAN
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
14 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | nodejs | < nodejs 22.22.0+dfsg+~cs22.19.6-1 (forky) | nodejs 22.22.0+dfsg+~cs22.19.6-1 (forky) |
| nodejs | node | 20.19.6 – 20.19.6 | — |
| nodejs | node | 22.21.1 – 22.21.1 | — |
| nodejs | node | 24.12.0 – 24.12.0 | — |
| nodejs | node | 25.2.1 – 25.2.1 | — |
| nodejs | node.js | >= 20.0.0 < 20.20.0 | 20.20.0 |
| nodejs | node.js | >= 22.0.0 < 22.22.0 | 22.22.0 |
| nodejs | node.js | >= 24.0.0 < 24.13.0 | 24.13.0 |
| nodejs | node.js | >= 25.0.0 < 25.3.0 | 25.3.0 |
| nodejs | nodejs | >= 0 < 22.22.2-r0 | 22.22.2-r0 |
| nodejs | nodejs | >= 0 < 22.22.0-r0 | 22.22.0-r0 |
| nodejs | nodejs | >= 0 < 24.13.0-r0 | 24.13.0-r0 |
| nodejs | nodejs | >= 0 < 20.19.2+dfsg-1+deb13u1 | 20.19.2+dfsg-1+deb13u1 |
| nodejs | nodejs | >= 0 < 22.22.0+dfsg+~cs22.19.6-1 | 22.22.0+dfsg+~cs22.19.6-1 |
CVSS provenance
nvdv3.19.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
osv9.1CRITICAL