CVE-2024-21896: The permission model protects itself against path traversal attacks by calling path.resolve() on any paths given by the user.
CVE-2024-21896 affects 59 listed versions of Node.js in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Node.js
59 of 250 listed versions are affected. Fixed in 21.6.2, 20.11.1. The newest release, 26.14.0, is not affected.
21.6.1 21.6.0 21.5.0 21.4.0 21.3.0 21.2.0 21.1.0 21.0.0 20.11.0 20.10.0 20.9.0 20.8.1 20.8.0 20.7.0 20.6.1 20.6.0 20.5.1 20.5.0 20.4.0 20.3.1 20.3.0 20.2.0 20.1.0 20.0.0 19.9.0 19.8.1 19.8.0 19.7.0 19.6.1 19.6.0 19.5.0 19.4.0 19.3.0 19.2.0 19.1.0 19.0.1 19.0.0 17.9.1 17.9.0 17.8.0 17.7.2 17.7.1 17.7.0 17.6.0 17.5.0 17.4.0 17.3.1 17.3.0 17.2.0 17.1.0 17.0.1 17.0.0 16.20.2 16.20.1 16.20.0 16.19.1 16.19.0 16.18.1 16.18.0
What it is
The permission model protects itself against path traversal attacks by calling path.resolve() on any paths given by the user. If the path is to be treated as a Buffer, the implementation uses Buffer.from() to obtain a Buffer from the result of path.resolve(). By monkey-patching Buffer internals, namely, Buffer.prototype.utf8Write, the application can modify the result of path.resolve(), which leads to a path traversal vulnerability. This vulnerability affects all users using the experimental permission model in Node.js 20 and Node.js 21. Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)
Published by Hackerone on 20 February 2024. Last changed 17 June 2026.
Sources
Check one version you run: look CVE-2024-21896 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.