CVE-2022-21694Onionshare
Medium 5.3 No auth needed
Follow: this CVE · Onionshare · Onionshare We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 70
- Auth required
- No
- Published
- Jan 18, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-732
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
What happens
OnionShare is an open source tool that lets you securely and anonymously share files, host websites, and chat with friends using the Tor network. The website mode of the onionshare allows to use a hardened CSP, which will block any scripts and external resources. It is not possible to configure this CSP for individual pages and therefore the security enhancement cannot be used for websites using javascript or external resources like fonts or images.
What to do
- Apply the vendor's security update for Onionshare.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | onionshare-cli |
≥ 2.2 < 2.5 |
2.5 |
pip install "onionshare-cli>=2.5" |
| PyPI | onionshare-cli |
< 2.5 |
2.5 |
pip install "onionshare-cli>=2.5" |
Per OSV / GitHub Advisories (GHSA-h29c-wcm8-883h, PYSEC-2022-45). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| onionshare | onionshare | < 2.5 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Issue Tracking Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Third Party Advisory