{"id":"CVE-2022-21694","published":"2022-01-18T22:20:10Z","modified":"2025-04-23T19:10:18Z","title":"OTF-006: Broken Website Hardening Control: The CSP can be turned on or off but not configured for the specific needs…","vendor":"onionshare","product":"onionshare","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.013,"percentile":0.71159,"provenance":"source"},"cwes":[{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource"}],"references":[{"url":"https://github.com/onionshare/onionshare/releases/tag/v2.5","tags":["x_refsource_MISC"]},{"url":"https://github.com/onionshare/onionshare/security/advisories/GHSA-h29c-wcm8-883h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/onionshare/onionshare/issues/1389","tags":["x_refsource_MISC"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":14.23},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"onionshare","affectedVersions":[{"vendor":"onionshare","product":"onionshare","versions":["< 2.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:11:52.064770Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"onionshare-cli","vulnerableRanges":[">=2.2, <2.5","<2.5"],"patched":["2.5"],"from":["GHSA-h29c-wcm8-883h","PYSEC-2022-45"],"provenance":"source"}],"summary":{"text":"OnionShare, the open source file-sharing and website-hosting tool, has a flaw in its website mode's hardened Content Security Policy: the CSP can only be switched on or off and cannot be configured per page. An attacker on the network could exploit this to....","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:00Z"},"euvd":{"id":"EUVD-2022-0185","exploited":false,"provenance":"source"}}