Vulnerabilities in pkg:pypi/invenio-communities
PACKAGECVE-2019-1020005 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Invenio communities libraries in the PyPI ecosystem. The issue involves cross-site scripting in invenio-communities. Remediation is available by upgrading affected packages to version 1.0.0a20.
pkg:pypi/invenio-communities
Vulnerability advisories affecting package pkg:pypi/invenio-communities. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-mfv8-q39f-mgfg | CVE-2019-1020005 | MODERATE | Cross-site Scripting in invenio-communities |
| GHSA-hjx6-f647-mvf9 | - | MODERATE | Invenio-Communities has a Cross-Site Scripting (XSS) vulnerability in React components |
CVE-2019-1020005 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2019-1020005
To remediate this vulnerability, upgrade all affected Invenio communities 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 invenio-communities>=1.0.0a20
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show invenio-communities
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2019-1020005, inspect your installed packages using pip:
pip show invenio-communities
Analyze the terminal output to locate any version of Invenio communities in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.0a20), your application is affected.
Note: The pip show invenio-communities 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 Invenio communities, 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-2019-1020005 Affected Invenio communities Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
invenio-communities
|
PyPI |
< 1.0.0a20
|
1.0.0a20
|
References
Frequently Asked Questions
What is CVE-2019-1020005?
Which Invenio communities versions are affected?
What version fixes CVE-2019-1020005?
Is invenio-communities affected?
What is the CVSS score of CVE-2019-1020005?
What CWE is associated with CVE-2019-1020005?
How can I check PyPI dependencies for CVE-2019-1020005?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mfv8-q39f-mgfg",
"modified" : "2024-09-20T21:56:34Z",
"published" : "2019-07-16T00:52:26Z",
"aliases" : [ "CVE-2019-1020005" ],
"summary" : "Cross-site Scripting in invenio-communities",
"details" : "## Cross-Site Scripting (XSS) vulnerability in Jinja templates\n\n### Impact\nA Cross-Site Scripting (XSS) vulnerability was discovered in two Jinja templates in the Invenio-Communities module. The vulnerability allows a user to create a new community and include script element tags inside the description and page fields. \n\n### Patches\nThe problem has been patched in v1.0.0a20.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [info@inveniosoftware.org](mailto:info@inveniosoftware.org)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "invenio-communities"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.0a20"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.0.0a19"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/inveniosoftware/invenio-communities/security/advisories/GHSA-mfv8-q39f-mgfg"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-1020005"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/inveniosoftware/invenio-communities/commit/505da72c5acd7dfbd4148f884c73c9c3372b76f4"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-mfv8-q39f-mgfg"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/invenio-communities/PYSEC-2019-25.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:46:01Z",
"nvd_published_at" : null
}
}