PyPI: cloakbrowser
CVE-2026-45727
Safety vulnerability ID: SFTY-20260518-98137
Safety legacy ID: pyup.io-98226
Affected versions of the cloakbrowser package are vulnerable to Path Traversal leading to Arbitrary Directory Deletion due to the cloakserve CDP multiplexer using the user-supplied fingerprint query parameter directly as a filesystem path component without sanitisation. The fingerprint value is used to construct the Chrome profile user_data_dir path, and when Chrome fails to start or the process is cleaned up, shutil.rmtree() deletes the traversed path outside the configured data_dir. An unauthenticated attacker with network access to the cloakserve port can delete arbitrary directories accessible to the service user by supplying path traversal sequences in the fingerprint parameter.
Overview
CloakBrowser: Unauthenticated path traversal via fingerprint parameter in cloakserve leads to arbitrary directory deletion
Advisory
Affected versions of the cloakbrowser package are vulnerable to Path Traversal leading to Arbitrary Directory Deletion due to the cloakserve CDP multiplexer using the user-supplied fingerprint query parameter directly as a filesystem path component without sanitisation. The fingerprint value is used to construct the Chrome profile user_data_dir path, and when Chrome fails to start or the process is cleaned up, shutil.rmtree() deletes the traversed path outside the configured data_dir. An unauthenticated attacker with network access to the cloakserve port can delete arbitrary directories accessible to the service user by supplying path traversal sequences in the fingerprint parameter.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
