Back

MEDIUM

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

Published Aug 15, 2023

Description

`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.

Affected products

Remediation

Red Hat statement

For this CVE no Red Hat Products are affected as this CVE only affects Node.js version 20, specifically within the experimental permission model feature of Node.js 20, that we are not shipped.

Red Hat mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Metrics

Weaknesses (1)

References (9)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner hackerone
Published Aug 15, 2023
Updated Jul 3, 2025
Reserved May 1, 2023
CISA Vulnrichment
Updated Oct 9, 2024
NVD
Status Modified
Modified Jun 17, 2026
Red Hat
Severity Low
Public date Aug 9, 2023