Vulnerability · Published Jan 18, 2022 · Assigned by GitHub_M

CVE-2022-21690Cross-Site Scripting in Onionshare

High 8.7

In plain English

A high-severity cross-site scripting in onionshare from onionshare. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.7High
Exploit odds (30 days)0.8%top 43.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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. 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12onionshare2.5-1DEBIAN-CVE-2022-21690
Debian:13onionshare2.5-1DEBIAN-CVE-2022-21690
Debian:14onionshare2.5-1DEBIAN-CVE-2022-21690
PyPIonionshare-cli2.5GHSA-ch22-x2v3-v6vq
PyPIonionshare-cli2.5PYSEC-2022-41
Ubuntu:24.04:LTSonionshare2.6-6ubuntu1UBUNTU-CVE-2022-21690

Affected products (as reported)

VendorProductVersions
onionshare onionshare < 2.5

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

References