Security mailing lists by PureSourceCode

CVE-2024-21896

CRITICAL 9.8CVSS 3.1

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.

Published
20 Feb 2024
Last modified
17 Jun 2026
Assigned by
support@hackerone.com
NVD status
Analyzed
Weakness
CWE-27
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD support@hackerone.com (Secondary) CVSS 3.0 HIGH 7.9 CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD nodejs node.js
cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*
>= 20.0.0, < 20.11.1 20.11.1
NVD nodejs node.js
cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*
>= 21.0.0, < 21.6.2 21.6.2

References

History

  • 25 Nov 2026 20:54 UTC · NVD: first stored (published 20 Feb 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.