CVE-2019-1020003: Invenio records Cross-Site Scripting Vulnerability
MODERATECVE-2019-1020003 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 records libraries in the PyPI ecosystem. The issue involves cross-site scripting invenio-records. Remediation is available by upgrading affected packages to version 1.0.2, 1.1.1, 1.2.2.
CVE-2019-1020003 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-1020003
To remediate this vulnerability, upgrade all affected Invenio records 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-records>=1.0.2
pip install invenio-records>=1.1.1
pip install invenio-records>=1.2.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show invenio-records
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2019-1020003, inspect your installed packages using pip:
pip show invenio-records
Analyze the terminal output to locate any version of Invenio records in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.2), your application is affected.
Note: The pip show invenio-records 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 records, 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-1020003 Affected Invenio records Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
invenio-records
|
PyPI |
< 1.0.2
|
1.0.2
|
|
invenio-records
|
PyPI |
≥ 1.1.0
< 1.1.1
All 1 versions
1.1.0
|
1.1.1
|
|
invenio-records
|
PyPI |
≥ 1.2.0
< 1.2.2
|
1.2.2
|
References
Frequently Asked Questions
What is CVE-2019-1020003?
Which Invenio records versions are affected?
What version fixes CVE-2019-1020003?
Is invenio-records affected?
What is the CVSS score of CVE-2019-1020003?
What CWE is associated with CVE-2019-1020003?
How can I check PyPI dependencies for CVE-2019-1020003?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vxh3-mvv7-265j",
"modified" : "2024-09-23T16:09:04Z",
"published" : "2019-07-16T00:52:15Z",
"aliases" : [ "CVE-2019-1020003" ],
"summary" : "Cross-site scripting invenio-records",
"details" : "## Cross-Site Scripting (XSS) vulnerability in administration interface\n\n### Impact\nA Cross-Site Scripting (XSS) vulnerability was discovered when rendering JSON for a record in the administration interface. The vulnerability could be exploited by e.g. a user who had access to upload a new record, that an admin user would then later view in the admin interface.\n\n### Patches\nAll supported versions of Invenio-Records have been patched. You should upgrade to either v1.0.1, v1.1.1 or v1.2.2\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-records"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "invenio-records"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.1.0"
}, {
"fixed" : "1.1.1"
} ]
} ],
"versions" : [ "1.1.0" ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "invenio-records"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.2.0"
}, {
"fixed" : "1.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/inveniosoftware/invenio-records/security/advisories/GHSA-vxh3-mvv7-265j"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-1020003"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-vxh3-mvv7-265j"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/invenio-records/PYSEC-2019-27.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:58:55Z",
"nvd_published_at" : null
}
}