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

Source: https://junglewise.ai/threats/cve-2021-3427-deluge-web-ui-vulnerable-to-xss-through-a-crafted-torrent-file  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-08-26  
License: CC BY 4.0 with a link back

CVE-2021-3427 · Severity: low · CVSS 3.1 · Published 2022-08-26

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.

Technologies: [deluge (PyPI)](https://junglewise.ai/threats/technologies/deluge). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2021-3427 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-3427 being exploited in the wild.

**How severe is CVE-2021-3427?** Low severity, with a CVSS score of 3.1, published 26 August 2022.

**Which products and versions are affected?** deluge (PyPI) ECOSYSTEM:introduced=0,fixed=2.1.0.

**Is there a fix for CVE-2021-3427?** Yes. deluge (PyPI): upgrade to 2.1.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-3427?** Check whether you run deluge (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- deluge (PyPI): upgrade to 2.1.0 or later

  ```sh
  pip install "deluge>=2.1.0"
  ```


## Affected products

- deluge (PyPI) ECOSYSTEM:introduced=0,fixed=2.1.0

## Identifiers

- CVE-2021-3427
- GHSA-5c8p-qhch-qhx6
- PYSEC-2022-256

## Related threats

- [PYSEC-2026-39 - Deluge 1.3.15 contains a denial of service vulnerability that allows local attackers to crash the…](https://junglewise.ai/threats/cve-2019-25586-pysec-2026-39-deluge-1-3-15-contains-a-denial-of-service)
- [PYSEC-2026-38 - Deluge 1.3.15 contains a denial of service vulnerability that allows local attackers to crash the…](https://junglewise.ai/threats/cve-2019-25585-pysec-2026-38-deluge-1-3-15-contains-a-denial-of-service)
