Various `node:fs` functions allow specifying paths as...
Critical severity
Unreviewed
Published
Oct 18, 2023
to the GitHub Advisory Database
•
Updated Nov 25, 2023
Description
Published by the National Vulnerability Database
Oct 18, 2023
Published to the GitHub Advisory Database
Oct 18, 2023
Last updated
Nov 25, 2023
Various
node:fs
functions allow specifying paths as either strings orUint8Array
objects. In Node.js environments, theBuffer
class extends theUint8Array
class. Node.js prevents path traversal through strings (see CVE-2023-30584) andBuffer
objects (see CVE-2023-32004), but not through non-Buffer
Uint8Array
objects.This is distinct from CVE-2023-32004 (report 2038134), which only referred to
Buffer
objects. However, the vulnerability follows the same pattern usingUint8Array
instead ofBuffer
.Impacts:
This vulnerability affects all users using the experimental permission model in Node.js 20.
Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.
References