A vulnerability has been identified in Node.js, specifically affecting the handling of drive names in the Windows environment. Certain Node.js functions do not treat drive names as special on Windows. As a result, although Node.js assumes a relative path, it actually refers to the root directory.
On Windows, a path that does not start with the file separator is treated as relative to the current directory.
This vulnerability affects Windows users of path.join API.
{
"versions": [
{
"introduced": "18.0"
},
{
"fixed": "18.20.6"
},
{
"introduced": "20.0"
},
{
"fixed": "20.18.2"
},
{
"introduced": "22.0"
},
{
"fixed": "22.13.1"
},
{
"introduced": "23.0"
},
{
"fixed": "23.6.1"
}
]
}