Vulnerabilities

CVE-2026-21715

Low 3.3 CVSS 3.0

Description

A flaw in Node.js Permission Model filesystem enforcement leaves `fs.realpathSync.native()` without the required read permission checks, while all comparable filesystem functions correctly enforce them. As a result, code running under `--permission` with restricted `--allow-fs-read` can still use `fs.realpathSync.native()` to check file existence, resolve symlink targets, and enumerate filesystem paths outside of permitted directories. This vulnerability affects **20.x, 22.x, 24.x, and 25.x** processes using the Permission Model where `--allow-fs-read` is intentionally restricted.

Description as published by the source, in English.

Key facts

Published
2026-03-30
Last modified
2026-08-19
Assigned by
support@hackerone.com
CVSS vector
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Scored by
support@hackerone.com
Probability of exploitation
0.2 % higher than 5 % 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.20.1 Affected
Nodejs Node.js ≥ 22.0.0, ≤ 22.22.1 Affected
Nodejs Node.js ≥ 24.0.0, ≤ 24.14.0 Affected
Nodejs Node.js ≥ 25.0.0, ≤ 25.8.1 Affected

Weakness type

Attack techniques

Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.

  • T1083: File and Directory Discovery discovery
  • T1134.001: Token Impersonation/Theft stealth, privilege-escalation
  • T1505.005: Terminal Services DLL persistence
  • T1548: Abuse Elevation Control Mechanism privilege-escalation
  • T1550.004: Web Session Cookie lateral-movement
  • T1553.002: Code Signing defense-impairment
  • T1554: Compromise Host Software Binary persistence
  • T1574.005: Executable Installer File Permissions Weakness stealth, execution
  • T1574.010: Services File Permissions Weakness stealth, execution

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