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.

Created at: Jun 2, 2026Updated at: Jun 2, 2026

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.

Affected Package

Affecting cloakbrowser package, versions<=0.3.27

Also affects

---

How to Fix

Upgradecloakbrowserto0.3.28or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

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