Skip to content
OpenAdvisories
High · 8.7 CVE-2022-21690 EUVD-2022-0181GHSA-ch22-x2v3-v6vqPYSEC-2022-41

Cross-Site Scripting in Onionshare

Published Jan 18, 2022 · Updated Apr 22, 2025 · Assigned by GitHub_M

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. 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.

Affected products

VendorProductAffectedFixed
onionshare onionshare < 2.5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 onionshare 2.5-1 —
Debian 13 onionshare 2.5-1 —
Debian 12 onionshare 2.5-1 —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-onionshare 2.5-1.1 openSUSE-SU-2024:11983-1
openSUSE Tumbleweed python3-onionshare 2.6-4.1 openSUSE-SU-2024:13635-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI onionshare-cli < 2.5 2.5 GHSA-ch22-x2v3-v6vq

Advisories 2

References