Lucene search

K
hackeroneHaxatron1H1:2037887
HistoryJun 25, 2023 - 6:54 p.m.

Node.js: fs.mkdtemp() and fs.mkdtempSync() are missing getValidatedPath() checks.

2023-06-2518:54:52
haxatron1
hackerone.com
22
node.js
fs.mkdtemp()
fs.mkdtempsync()
getvalidatedpath()
permission model
path traversal
vulnerability
experimental version 20
bug bounty

0.001 Low

EPSS

Percentile

21.0%

fs.mkdtemp() and fs.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.