Deluge Web-UI vulnerable to XSS through a crafted torrent file
The Deluge Web-UI is vulnerable to cross-site scripting through a crafted torrent file. The the data from torrent files is not properly sanitised as it's interpreted directly as HTML. Someone who supplies the user with a malicious torrent file can execute arbitrary Javascript code in the context of the user's browser session.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | deluge | < 2.1.0 | 2.1.0 |
References
- https://groups.google.com/g/deluge-dev/c/e5zh7wT0rEg
- https://dev.deluge-torrent.org/ticket/3459
- https://github.com/advisories/GHSA-5c8p-qhch-qhx6
- https://nvd.nist.gov/vuln/detail/CVE-2021-3427
- https://github.com/deluge-torrent/deluge
- https://github.com/pypa/advisory-database/tree/main/vulns/deluge/PYSEC-2022-256.yaml
- https://security.gentoo.org/glsa/202210-07
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N- Weakness (CWE)
CWE-79- Platform
- Python (PyPI)
- Package
deluge- Disclosed
- 26.08.2022
- Updated
- 11.10.2026 11:20
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2022-256 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-5c8p-qhch-qhx6 - CC BY 4.0
Vulnerability history: deluge
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 3
- First → latest
- 08.2022 03.2026
- Without a fix
- 2
- Exploited in attacks
- 0
Severity breakdown
- Medium 3
Disclosures per year
- 2022: 1
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 2
-
Deluge Web-UI vulnerable to XSS through a crafted torrent file this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.