What’s Vulnerable › Vulnerabilities
CVE-2022-21690: Cross-Site Scripting in Onionshare
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-01-18 · updated 2026-06-17
- Weakness: CWE-79
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
- onionshare: before 2.5 — fixed in 2.5
How to fix
Upgrade to a fixed version: onionshare 2.5. Check the vendor advisory for mitigations.
References
- https://github.com/onionshare/onionshare/releases/tag/v2.5
- https://github.com/onionshare/onionshare/security/advisories/GHSA-ch22-x2v3-v6vq
- https://github.com/onionshare/onionshare/releases/tag/v2.5
- https://github.com/onionshare/onionshare/security/advisories/GHSA-ch22-x2v3-v6vq
Get alerted when CVE-2022-21690 or the next vulnerability affects your stack