Vulnerabilities

CVE-2025-55130

Critical 9.1 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2026-01-20
Last modified
2026-07-15
Assigned by
support@hackerone.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
1.6 % higher than 74 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
Nodejs Node.js ≥ 20.0.0, < 20.20.0 Affected
Nodejs Node.js ≥ 22.0.0, < 22.22.0 Affected
Nodejs Node.js ≥ 24.0.0, < 24.13.0 Affected
Nodejs Node.js ≥ 25.0.0, < 25.3.0 Affected

Weakness type

  • CWE-281: Improper Preservation of Permissions

    The product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended.

  • CWE-289: Authentication Bypass by Alternate Name

    The product performs authentication based on the name of a resource being accessed, or the name of the actor performing the access, but it does not properly check all possible names for that resource or actor.

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities