CVE-2026-135206 in Builder
Summary
by MITRE • 11/23/2026
ToDesktop Builder before 0.36.1 contains a path traversal vulnerability in the todesktop-fs custom protocol handler that allows attackers to escape the bundled files directory using ../ sequences. Attackers who can run script in an application's renderer can issue XMLHttpRequest calls with traversal paths to read arbitrary files accessible to the user.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/23/2026
The ToDesktop Builder software, prior to version 0.36.1, contains a critical path traversal vulnerability within its custom protocol handler for todesktop-fs. This flaw stems from an insufficient validation of file system paths provided by application scripts running in the renderer process. In Electron-based applications, which are commonly built using tools like ToDesktop Builder, the renderer process typically has access to web technologies such as JavaScript and XMLHttpRequest. When a script within this environment attempts to interact with local files via the custom protocol handler, it expects the path to be confined strictly within the application's bundled resources directory. However, due to improper sanitization of input paths containing dot-dot-slash sequences, an attacker can manipulate these requests to traverse up the file system hierarchy and access arbitrary directories outside the intended sandboxed environment.
This vulnerability allows attackers who have the ability to execute scripts in the renderer process to read sensitive files accessible by the user running the application. By constructing XMLHttpRequest calls with carefully crafted traversal paths, such as ../../etc/passwd on Unix-like systems or C:\Windows\System32\drivers\etc\hosts on Windows, an adversary can exfiltrate configuration files, credential stores, environment variables, and other private data stored in locations that were not intended to be publicly readable. The severity of this issue is amplified by the fact that renderer processes often run with elevated privileges relative to web content because they are part of a native application wrapper rather than a standard browser sandbox. Consequently, successful exploitation can lead to significant information disclosure, potentially compromising user privacy and system security depending on what files reside in accessible directories.
From a classification perspective, this vulnerability aligns closely with CWE-22: Improper Limitation of a Pathname to a Restricted Directory. This weakness occurs when software does not properly neutralize special elements within file paths that can cause the path to resolve outside of the intended directory structure. Furthermore, in terms of offensive security tactics, this exploitation technique maps to MITRE ATT&CK tactic T1083: File and Directory Discovery, specifically through techniques involving local system enumeration via script execution. The ability to traverse directories is a precursor step for many advanced persistent threat campaigns that aim to gather intelligence about the target environment before proceeding with lateral movement or data exfiltration.
Mitigation strategies must focus on both immediate patching and long-term architectural improvements. Users should immediately upgrade ToDesktop Builder to version 0.36.1 or later, where this path traversal issue has been addressed by developers through stricter input validation and path canonicalization checks within the custom protocol handler. For organizations unable to update immediately, implementing a strict Content Security Policy can help restrict the types of network requests allowed from renderer processes, although this may not fully prevent local file access if other APIs remain open. Developers should also adopt secure coding practices that assume all user-supplied input is malicious, ensuring that any interaction with the file system uses absolute paths resolved against a known safe base directory without allowing relative traversal sequences to alter the final destination. Regular security audits and static code analysis tools configured to detect path manipulation vulnerabilities can further reduce the risk of similar flaws in future releases.