CVE-2022-21694
MEDIUM 5.3CVSS 3.1Incorrect Permission Assignment for Critical Resource in OnionShare
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.
- Published
- 18 Jan 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-732
- Also known as
- GHSA-h29c-wcm8-883hPYSEC-2022-45
- Sources
- NVDJSONOSV GHSA-h29c-wcm8-883hJSONOSV PYSEC-2022-45JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | onionshare | onionsharecpe:2.3:a:onionshare:onionshare:*:*:*:*:*:*:*:* |
< 2.5 | 2.5 |
| OSV | PyPI | onionshare-cli | >= 2.2, < 2.5 | 2.5 |
| OSV | PyPI | onionshare-cli | < 2.5 | 2.5 |
References
- https://github.com/onionshare/onionshare/issues/1389 · Issue Tracking, Third Party Advisory, WEB, REPORT
- 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 · Third Party Advisory, WEB, ADVISORY
- 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
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 18 Jan 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 18 Jan 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 21 Jan 2022)