# CVE-2026-54706: OnionShare follows symlinks in shared directories, allowing unintended disclosure of local files

> Attackers can read local files outside the shared directory via symlink traversal in OnionShare's file sharing modes.

- **Severity:** Medium 4.8 (`CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 31 Jul 2026
- **Updated:** 31 Jul 2026
- **Also known as:** DEBIAN-CVE-2026-54706, GHSA-22p9-r2f5-22mf, PYSEC-2026-3585, UBUNTU-CVE-2026-54706

## What is CVE-2026-54706?

CVE-2026-54706 is a medium-severity path traversal vulnerability in onionshare, published on 31 Jul 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

### Official description

OnionShare is an open source tool that lets you securely and anonymously share files, host websites, and chat with friends using the Tor network. Prior to 2.6.4, OnionShare CLI/Desktop follows symbolic links in cli/onionshare_cli/web/send_base_mode.py through SendBaseModeWeb.set_file_info() and stream_individual_file(), allowing remote recipients of Share or Website mode to read local files outside the selected directory. This issue is fixed in version 2.6.4.

Weakness: CWE-59 (Improper Link Resolution Before File Access)

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

3 open source packages ship an affected version, including onionshare-cli.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `onionshare-cli` | PyPI | All versions | 2.6.4 |
| `onionshare-cli` | PyPI | All versions | 2.6.4 |
| `onionshare-cli` | PyPI | All versions | 2.6.4 |

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

Upgrade onionshare-cli to 2.6.4 or later.

## Is CVE-2026-54706 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54706 exists.

## Fix prompt for AI coding agents

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

What it is: CVE-2026-54706 is a medium-severity path traversal vulnerability in onionshare, published on 31 Jul 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54706 exists.

Affected packages and fixed versions:
- onionshare-cli (PyPI): affected all versions; fixed in 2.6.4
- onionshare-cli (PyPI): affected all versions; fixed in 2.6.4
- onionshare-cli (PyPI): affected all versions; fixed in 2.6.4

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-54706/ (Markdown: https://insights.sbomify.com/CVE-2026-54706/index.md)
```

## Sources

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

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