# CVE-2026-45727: CloakBrowser: Unauthenticated path traversal via fingerprint parameter in cloakserve leads to arbitrary directory deletion

> Unauthenticated attackers can delete arbitrary directories via path traversal in the fingerprint parameter of CloakBrowser's cloakserve component.

- **Severity:** High 8.8 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 1 Jun 2026
- **Updated:** 1 Jun 2026
- **Also known as:** GHSA-mf33-gv72-w2h5, PYSEC-2026-2420

## What is CVE-2026-45727?

CVE-2026-45727 is a high-severity path traversal vulnerability in CloakHQ CloakBrowser, published on 1 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

CloakBrowser is a tool to bypass bot detection tests. Prior to version 0.3.28, 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. This issue has been patched in version 0.3.28.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2026-45727?

3 open source packages ship an affected version, including cloakbrowser.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `cloakbrowser` | PyPI | All versions | 0.3.28 |
| `cloakbrowser` | PyPI | All versions | 0.3.28 |
| `cloakbrowser` | PyPI | All versions | 0.3.28 |

## How do I fix CVE-2026-45727?

Upgrade cloakbrowser to 0.3.28 or later.

## Is CVE-2026-45727 being exploited?

There is no known exploitation of CVE-2026-45727 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-45727 and fix it if it is affected.

What it is: CVE-2026-45727 is a high-severity path traversal vulnerability in CloakHQ CloakBrowser, published on 1 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-45727 in the wild and no public exploit code.

Affected packages and fixed versions:
- cloakbrowser (PyPI): affected all versions; fixed in 0.3.28
- cloakbrowser (PyPI): affected all versions; fixed in 0.3.28
- cloakbrowser (PyPI): affected all versions; fixed in 0.3.28

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-45727/ (Markdown: https://insights.sbomify.com/CVE-2026-45727/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-45727
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-45727
- OSV: https://osv.dev/vulnerability/CVE-2026-45727

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-45727/
Summaries are generated and may contain mistakes; the official description above is the record.
