CVE-2017-1002152: Bodhi Cross-Site Scripting Vulnerability
MODERATECVE-2017-1002152 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Bodhi libraries in the PyPI ecosystem. The issue involves bodhi cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 2.9.1.
CVE-2017-1002152 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.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2017-1002152
To remediate this vulnerability, upgrade all affected Bodhi 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 bodhi>=2.9.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show bodhi
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2017-1002152, inspect your installed packages using pip:
pip show bodhi
Analyze the terminal output to locate any version of Bodhi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.9.1), your application is affected.
Note: The pip show bodhi 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 Bodhi, 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-2017-1002152 Affected Bodhi Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
bodhi
|
PyPI |
< 2.9.1
|
2.9.1
|
References
Frequently Asked Questions
What is CVE-2017-1002152?
Which Bodhi versions are affected?
What version fixes CVE-2017-1002152?
Is bodhi affected?
What is the CVSS score of CVE-2017-1002152?
What CWE is associated with CVE-2017-1002152?
How can I check PyPI dependencies for CVE-2017-1002152?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h896-6hcp-gj6c",
"modified" : "2024-09-04T20:25:04Z",
"published" : "2022-05-13T01:38:23Z",
"aliases" : [ "CVE-2017-1002152" ],
"summary" : "Bodhi Cross-site Scripting Vulnerability",
"details" : "Bodhi 2.9.0 and lower is vulnerable to cross-site scripting resulting in code injection caused by incorrect validation of bug titles.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/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:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "bodhi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.9.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.9.0"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-1002152"
}, {
"type" : "WEB",
"url" : "https://github.com/fedora-infra/bodhi/issues/1740"
}, {
"type" : "WEB",
"url" : "https://github.com/fedora-infra/bodhi/commit/2a3b06b42242ecabb7fed6b147b033b36292d76f"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1478587"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/fedora-infra/bodhi"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/bodhi/PYSEC-2019-150.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-22T22:47:42Z",
"nvd_published_at" : "2019-01-10T21:29:00Z"
}
}