CVE-2026-45727: CloakBrowser Path Traversal Vulnerability

HIGH
Advisory Identifier: GHSA-mf33-gv72-w2h5
CWE-22
Published
Advisory Summary

CVE-2026-45727 is a HIGH path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting CloakBrowser libraries in the PyPI ecosystem. The issue involves unauthenticated path traversal via fingerprint parameter in cloakserve leads to arbitrary directory deletion. Remediation is available by upgrading affected packages to version 0.3.28.

CVE-2026-45727 at a Glance

CVE Identifier CVE-2026-45727
GHSA Identifier GHSA-mf33-gv72-w2h5
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product CloakBrowser
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2026-45727

To remediate this vulnerability, upgrade all affected CloakBrowser dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

cloakbrowser fixed: 0.3.28
pip install cloakbrowser>=0.3.28
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show cloakbrowser

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-45727, inspect your installed packages using pip:

pip show cloakbrowser

Analyze the terminal output to locate any version of CloakBrowser in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.28), your application is affected.

Note: The pip show cloakbrowser command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In CloakBrowser, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The `cloakserve` CDP multiplexer uses the user-supplied `fingerprint` query parameter directly as a filesystem path component when creating Chrome profile directories. An unauthenticated attacker who can reach the cloakserve port can supply a crafted `fingerprint` value containing path traversal sequences to resolve `user_data_dir` outside the configured `data_dir`. When Chrome fails to start or the process is cleaned up, `shutil.rmtree()` deletes the traversed path, resulting in arbitrary directory deletion. Additionally, `cloakserve` bound to `0.0.0.0` by default, making it network-exposed. ### Impact An attacker with network access to the cloakserve port can delete arbitrary directories accessible to the service user. ### Patches Fixed in v0.3.28. ### Mitigations - Upgrade to v0.3.28 or later - Restrict network access to the cloakserve port

CVE-2026-45727 Affected CloakBrowser Versions

1 component(s)
Fixed Versions:
0.3.28
Product / Package Ecosystem Affected Versions Fixed Version
cloakbrowser
PyPI
< 0.3.28
0.3.28

References

Frequently Asked Questions

What is CVE-2026-45727?
CVE-2026-45727 is a security vulnerability in CloakBrowser involving Unauthenticated path traversal via fingerprint parameter in cloakserve leads to arbitrary directory deletion under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which CloakBrowser versions are affected?
Affected versions include releases prior to 0.3.28 across affected packages: cloakbrowser.
What version fixes CVE-2026-45727?
Upgrading to 0.3.28 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cloakbrowser affected?
Yes, cloakbrowser is affected in releases prior to 0.3.28. Upgrade your dependency to 0.3.28 or later.
What CWE is associated with CVE-2026-45727?
CVE-2026-45727 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check PyPI dependencies for CVE-2026-45727?
Run the dependency tree command: 'pip show cloakbrowser'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mf33-gv72-w2h5",
  "modified" : "2026-06-09T10:50:57Z",
  "published" : "2026-05-18T17:50:21Z",
  "aliases" : [ "CVE-2026-45727" ],
  "summary" : "CloakBrowser: Unauthenticated path traversal via fingerprint parameter in cloakserve leads to arbitrary directory deletion",
  "details" : "The `cloakserve` CDP multiplexer uses the user-supplied `fingerprint` query parameter directly as a filesystem path component when creating Chrome profile directories. An unauthenticated attacker who can reach the cloakserve port can supply a crafted `fingerprint` value containing path traversal sequences to resolve `user_data_dir` outside the configured `data_dir`. When Chrome fails to start or the process is cleaned up, `shutil.rmtree()` deletes the traversed path, resulting in arbitrary directory deletion.\n\nAdditionally, `cloakserve` bound to `0.0.0.0` by default, making it network-exposed.\n\n### Impact\n\nAn attacker with network access to the cloakserve port can delete arbitrary directories accessible to the service user.\n\n### Patches\n\nFixed in v0.3.28.\n\n### Mitigations\n\n- Upgrade to v0.3.28 or later\n- Restrict network access to the cloakserve port",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "cloakbrowser"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.28"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.3.27"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/CloakHQ/CloakBrowser/security/advisories/GHSA-mf33-gv72-w2h5"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-45727"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/CloakHQ/CloakBrowser"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-18T17:50:21Z",
    "nvd_published_at" : "2026-06-01T19:16:53Z"
  }
}