What’s Vulnerable › Vulnerabilities
CVE-2022-21696: Username spoofing in OnionShare
- Severity: medium (CVSS 4.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.7% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-01-18 · updated 2026-06-17
- Weakness: CWE-20
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 it is possible to change the username to that of another chat participant with an additional space character at the end of the name string. An adversary with access to the chat environment can use the rename feature to impersonate other participants by adding whitespace characters at the end of the username.
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-68vr-8f46-vc9f
- https://github.com/onionshare/onionshare/releases/tag/v2.5
- https://github.com/onionshare/onionshare/security/advisories/GHSA-68vr-8f46-vc9f
Get alerted when CVE-2022-21696 or the next vulnerability affects your stack