# 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: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.30%, higher than 71% of CVEs (2026-12-01)
- Published: 2022-01-18T22:20:10.000Z
- Modified: 2026-06-17T04:26:46.710Z
- Also known as: GHSA-h29c-wcm8-883h, PYSEC-2022-45
- Weaknesses: CWE-732
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- onionshare onionshare: < 2.5; before 2.5
- onionshare-cli (PyPI): from 2.2 before 2.5; before 2.5

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 3.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/onionshare/onionshare/releases/tag/v2.5> (release-notes, third-party-advisory, web)
- <https://github.com/onionshare/onionshare/security/advisories/GHSA-h29c-wcm8-883h> (advisory, third-party-advisory, web)
- <https://github.com/onionshare/onionshare/issues/1389> (issue-tracking, report, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21694> (advisory)
- <https://github.com/onionshare/onionshare> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/onionshare-cli/PYSEC-2022-45.yaml> (web)

## Sources

- CVE List: [CVE-2022-21694](https://www.cve.org/CVERecord?id=CVE-2022-21694), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-h29c-wcm8-883h](https://github.com/advisories/GHSA-h29c-wcm8-883h), CC-BY-4.0, modified 2024-10-07
- NVD: [CVE-2022-21694](https://nvd.nist.gov/vuln/detail/CVE-2022-21694), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-45](https://osv.dev/vulnerability/PYSEC-2022-45), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2022-21694 · Whole record: https://cve.day/CVE-2022-21694.json · Rebuilt by cve.day 2026-11-25T22:58:09.275Z
