# CVE-2022-21690: PYSEC-2022-41 - OnionShare is an open source tool that lets you securely and anonymously share files, host websites…

Source: https://junglewise.ai/threats/cve-2022-21690-otf-001-improper-input-sanitation-the-path-parameter-of-the  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-01-18  
License: CC BY 4.0 with a link back

CVE-2022-21690 · Severity: low · CVSS 3.1 · Published 2022-01-18

OnionShare is an open source tool that lets you securely and anonymously share files, host websites, and chat with friends using the Tor network. In affected versions The path parameter of the requested URL is not sanitized before being passed to the QT frontend. This path is used in all components for displaying the server access history. This leads to a rendered HTML4 Subset (QT RichText editor) in the Onionshare frontend.

Technologies: [onionshare-cli (PyPI)](https://junglewise.ai/threats/technologies/onionshare-cli). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2022-21690 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-21690 being exploited in the wild.

**How severe is CVE-2022-21690?** Low severity, with a CVSS score of 3.1, published 18 January 2022.

**Which products and versions are affected?** onionshare-cli (PyPI) ECOSYSTEM:introduced=0,fixed=2.5.

**Is there a fix for CVE-2022-21690?** Yes. onionshare-cli (PyPI): upgrade to 2.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-21690?** Check whether you run onionshare-cli (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- onionshare-cli (PyPI): upgrade to 2.5 or later

  ```sh
  pip install "onionshare-cli>=2.5"
  ```


## Affected products

- onionshare-cli (PyPI) ECOSYSTEM:introduced=0,fixed=2.5

## Identifiers

- CVE-2022-21690
- GHSA-ch22-x2v3-v6vq
- PYSEC-2022-41

## Related threats

- [OnionShare incorrect authorization in Receive mode file upload sink](https://junglewise.ai/threats/cve-2026-54707-onionshare-incorrect-authorization-in-receive-mode-file-upload)
- [OnionShare symlink traversal in Share and Website modes](https://junglewise.ai/threats/cve-2026-54706-onionshare-symlink-traversal-in-share-and-website-modes)
- [PYSEC-2026-696 - Information disclosure vulnerability in OnionShare](https://junglewise.ai/threats/cve-2021-41867-information-disclosure-vulnerability-in-onionshare)
- [PYSEC-2026-434 - Remote unauthenticated attackers able to upload files in Onionshare](https://junglewise.ai/threats/cve-2021-41868-remote-unauthenticated-attackers-able-to-upload-files-in)
- [Withdrawn Advisory: OnionShare Predictable Pathname](https://junglewise.ai/threats/cve-2018-19960-withdrawn-advisory-onionshare-predictable-pathname)
