`fs.mkdtemp()` and `fs.mkdtempSync()` can be used to...
Moderate severity
Unreviewed
Published
Aug 15, 2023
to the GitHub Advisory Database
•
Updated Apr 4, 2024
Description
Published by the National Vulnerability Database
Aug 15, 2023
Published to the GitHub Advisory Database
Aug 15, 2023
Last updated
Apr 4, 2024
fs.mkdtemp()
andfs.mkdtempSync()
can be used to bypass the permission model check using a path traversal attack. This flaw arises from a missing check in the fs.mkdtemp() API and the impact is a malicious actor could create an arbitrary directory.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