Read the docs
TI-2022-06066 Aliases CVE-2022-21690GHSA-ch22-x2v3-v6vq

Cross-Site Scripting in Onionshare

Priority HIGH 73CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00795 56th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed onionshare (onionshare): 2.5onionshare-cli (PyPI): 2.5

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
onionshareonionsharebefore 2.52.5Patch availableCNA
—onionshare-cli (PyPI)before 2.52.5Patch availableGHSA-ch22-x2v3-v6vq
  • onionshare Vendoronionshare Affected before 2.5 Fixed in 2.5 Patch available CNA
  • onionshare-cli (PyPI) Vendor— Affected before 2.5 Fixed in 2.5 Patch available GHSA-ch22-x2v3-v6vq

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:onionshare:onionshare:*:*:*:*:*:*:*:*before 2.5Vulnerableonionshare
  • cpe:2.3:a:onionshare:onionshare:*:*:*:*:*:*:*:* Versions before 2.5 Vulnerable ·onionshare

Remediation

  • Fix · CNA onionshare (onionshare) Fixed in 2.5
  • Fix · GHSA-ch22-x2v3-v6vq onionshare-cli (PyPI) Fixed in 2.5 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-21690
  2. 2026-10-03 Alias added: GHSA-ch22-x2v3-v6vq

References

  • TI-2022-06068 Improper Access Control in Onionshare CVSS 3.1MEDIUM 4.3
  • TI-2021-18479 OnionShare 2.3 before 2.4 allows remote unauthenticated attackers to upload files on a… CVSS 3.1CRITICAL 9.8
  • TI-2022-06065 Denial of Service in Onionshare CVSS 3.1HIGH 7.5
  • TI-2022-06064 Out-of-bounds Read in Onionshare CVSS 3.1HIGH 7.5
  • TI-2022-06069 Path traversal in Onionshare CVSS 3.1MEDIUM 6.5
  • TI-2018-14146 The debug_mode function in web/web.py in OnionShare through 1.3.1, when --debug is… CVSS 3.0HIGH 7.0
See all 12 →

Sources