What’s Vulnerable › Vulnerabilities
CVE-2022-21694: OTF-006: Broken Website Hardening Control: The CSP can be turned on or off but not configured for the specific needs of the website
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.3% 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-732
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. The website mode of the onionshare allows to use a hardened CSP, which will block any scripts and external resources. It is not possible to configure this CSP for individual pages and therefore the security enhancement cannot be used for websites using javascript or external resources like fonts or images.
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/issues/1389
- https://github.com/onionshare/onionshare/releases/tag/v2.5
- https://github.com/onionshare/onionshare/security/advisories/GHSA-h29c-wcm8-883h
- https://github.com/onionshare/onionshare/issues/1389
- https://github.com/onionshare/onionshare/releases/tag/v2.5
- https://github.com/onionshare/onionshare/security/advisories/GHSA-h29c-wcm8-883h
Get alerted when CVE-2022-21694 or the next vulnerability affects your stack