Vulnerabilities in pkg:pypi/red-dashboard
PACKAGECVE-2020-26249 is a MODERATE (CVSS 7.7) remote code execution vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Red dashboard libraries in the PyPI ecosystem. The issue involves remote code execution (rce) exploit on cross site scripting (xss) vulnerability. Remediation is available by upgrading affected packages to version 0.1.7a.
pkg:pypi/red-dashboard
Vulnerability advisories affecting package pkg:pypi/red-dashboard. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-hm45-mgqm-gjm4 | CVE-2020-26249 | MODERATE | Remote Code Execution (RCE) Exploit on Cross Site Scripting (XSS) Vulnerability |
CVE-2020-26249 at a Glance
Security Impact
CVSS: 7.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N).
How to Fix CVE-2020-26249
To remediate this vulnerability, upgrade all affected Red dashboard 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 red-dashboard>=0.1.7a
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show red-dashboard
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2020-26249, inspect your installed packages using pip:
pip show red-dashboard
Analyze the terminal output to locate any version of Red dashboard in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.7a), your application is affected.
Note: The pip show red-dashboard 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 Red dashboard, 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-2020-26249 Affected Red dashboard Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
red-dashboard
|
PyPI |
< 0.1.7a
|
0.1.7a
|
References
Frequently Asked Questions
What is CVE-2020-26249?
Which Red dashboard versions are affected?
What version fixes CVE-2020-26249?
Is red-dashboard affected?
What is the CVSS score of CVE-2020-26249?
What CWE is associated with CVE-2020-26249?
How can I check PyPI dependencies for CVE-2020-26249?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hm45-mgqm-gjm4",
"modified" : "2024-10-25T21:50:10Z",
"published" : "2020-12-08T23:55:54Z",
"aliases" : [ "CVE-2020-26249" ],
"summary" : "Remote Code Execution (RCE) Exploit on Cross Site Scripting (XSS) Vulnerability",
"details" : "### Impact\nA RCE exploit has been discovered in the Red Discord Bot - Dashboard Webserver: this exploit allows Discord users with specially crafted Server names and Usernames/Nicknames to inject code into the webserver front-end code. By abusing this exploit, it's possible to perform destructive actions and/or access sensitive information.\n\n### Patches\nThis high severity exploit has been fixed on version `0.1.7a`.\n\n### Workarounds\nThere are no workarounds, bot owners must upgrade their relevant packages (Dashboard module and Dashboard webserver) in order to patch this issue\n\n### References\n- 99d88b8\n- a6b9785\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Cog-Creators/Red-Dashboard](https://github.com/Cog-Creators/Red-Dashboard/issues/new/choose)\n* Over on the official [Red Server](https://discord.gg/red) or at the Third Party Server [Toxic Layer](https://discord.gg/vQZTdB9)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "red-dashboard"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.1.7a"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.1.6a"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Cog-Creators/Red-Dashboard/security/advisories/GHSA-hm45-mgqm-gjm4"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-26249"
}, {
"type" : "WEB",
"url" : "https://github.com/Cog-Creators/Red-Dashboard/commit/99d88b840674674166ce005b784ae8e31e955ab1"
}, {
"type" : "WEB",
"url" : "https://github.com/Cog-Creators/Red-Dashboard/commit/a6b9785338003ec87fb75305e7d1cc2d40c7ab91"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Cog-Creators/Red-Dashboard"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/red-dashboard/PYSEC-2020-98.yaml"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/Red-Dashboard"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-12-08T23:55:41Z",
"nvd_published_at" : null
}
}