yarn ssh2-sftp-client 13.0.1
Security bug fix

one hour ago

A security issue in the downloadDir() method was identified by kochoi95. The vulnerability could allow a malicious remote sftp server write arbitrary data to a location outside the destination directory set in a call to downloadDir() by returning filenames with special characters i.e. '../' and './'. The problem was that the filenames returned by the call to the remote server's ls method were joined onto the destination directory path without sanitisation and escaping of characters with special meanings in directory paths, such as '..', '.' and '/'.

For an attacker to use this exploit, they must first get the client to connect to a malicious sftp server which will return the dangerous filename spec and the destination directory path for the malicious payload must exist and the client must be running with sufficient permissions to enable writing of files to the destination directory.

This issue has been addressed and a fix applied to version 13.0.0 and 13.0.1 Only versions prior to v13.0.0 are vulnerable.

Don't miss a new ssh2-sftp-client release

NewReleases is sending notifications on new releases.