# CVE-2021-3427: Deluge Web-UI vulnerable to XSS through a crafted torrent file

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/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): 0.99%, higher than 63% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-08-26T00:00:00.000Z
- Modified: 2026-06-17T04:05:04.240Z
- Also known as: GHSA-5c8p-qhch-qhx6, PYSEC-2022-256
- Weaknesses: CWE-79
- Assigned by: redhat

## Description

The Deluge Web-UI is vulnerable to XSS 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.

(As written by CVE List.)

## Affected

- Deluge-web: Not-Known
- deluge (PyPI): before 2.1.0
- deluge-torrent deluge: before 2.1.0

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://dev.deluge-torrent.org/ticket/3459> (exploit, issue-tracking, patch, vendor-advisory, web)
- <https://groups.google.com/g/deluge-dev/c/e5zh7wT0rEg> (exploit, issue-tracking, mailing-list, third-party-advisory, web)
- <https://security.gentoo.org/glsa/202210-07> (third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3427> (advisory)
- <https://github.com/advisories/GHSA-5c8p-qhch-qhx6> (advisory)
- <https://github.com/deluge-torrent/deluge> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/deluge/PYSEC-2022-256.yaml> (web)

## Sources

- CVE List: [CVE-2021-3427](https://www.cve.org/CVERecord?id=CVE-2021-3427), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-5c8p-qhch-qhx6](https://github.com/advisories/GHSA-5c8p-qhch-qhx6), CC-BY-4.0, modified 2024-09-16
- NVD: [CVE-2021-3427](https://nvd.nist.gov/vuln/detail/CVE-2021-3427), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-256](https://osv.dev/vulnerability/PYSEC-2022-256), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-3427 · Whole record: https://cve.day/CVE-2021-3427.json · Rebuilt by cve.day 2026-11-25T22:58:07.795Z
