The vulnerability exists in the launch-editor npm package because it failed to properly sanitize input file paths. Specifically, on Windows systems, it was possible to pass a UNC (Universal Naming Convention) path to the launchEditor function. When the function attempted to check for the file's existence using fs.existsSync, the Windows OS would automatically try to connect to the remote share specified in the UNC path. This process involves NTLM authentication, during which the user's NTLMv2 password hash is sent to the remote server. An attacker could set up a malicious SMB server to receive this hash and then attempt to crack it offline to recover the user's password. The patch introduced a check at the beginning of the launchEditor function to detect and block UNC paths on Windows, thus preventing the underlying file system operation that triggers the NTLM authentication and subsequent hash disclosure.