Vulnerabilities in pkg:pypi/deluge
PACKAGECVE-2021-3427 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Deluge libraries in the PyPI ecosystem. The issue involves deluge web-ui vulnerable to xss through a crafted torrent file. Remediation is available by upgrading affected packages to version 2.1.0.
pkg:pypi/deluge
Vulnerability advisories affecting package pkg:pypi/deluge. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-5c8p-qhch-qhx6 | CVE-2021-3427 | MODERATE | Deluge Web-UI vulnerable to XSS through a crafted torrent file |
CVE-2021-3427 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2021-3427
To remediate this vulnerability, upgrade all affected Deluge dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install deluge>=2.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show deluge
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2021-3427, inspect your installed packages using pip:
pip show deluge
Analyze the terminal output to locate any version of Deluge in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.0), your application is affected.
Note: The pip show deluge command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Deluge, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-3427 Affected Deluge Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
deluge
|
PyPI |
< 2.1.0
|
2.1.0
|
References
Frequently Asked Questions
What is CVE-2021-3427?
Which Deluge versions are affected?
What version fixes CVE-2021-3427?
Is deluge affected?
What is the CVSS score of CVE-2021-3427?
What CWE is associated with CVE-2021-3427?
How can I check PyPI dependencies for CVE-2021-3427?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5c8p-qhch-qhx6",
"modified" : "2024-09-16T13:50:34Z",
"published" : "2022-08-27T00:00:44Z",
"aliases" : [ "CVE-2021-3427" ],
"summary" : "Deluge Web-UI vulnerable to XSS through a crafted torrent file",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "deluge"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-3427"
}, {
"type" : "WEB",
"url" : "https://dev.deluge-torrent.org/ticket/3459"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-5c8p-qhch-qhx6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/deluge-torrent/deluge"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/deluge/PYSEC-2022-256.yaml"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/g/deluge-dev/c/e5zh7wT0rEg"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/202210-07"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-09-01T22:19:29Z",
"nvd_published_at" : "2022-08-26T16:15:00Z"
}
}