6.1medium
Cross-site Scripting in invenio-previewer
- Severity
- 6.1medium CVSS:3.0 by NVD
- Exploit likelihood
- 0.90% (higher than 60% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- dwf
- Also known as
- GHSA-j9m2-6hq2-4r3cPYSEC-2019-26
Description
invenio-previewer before 1.0.0a12 allows XSS.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Invenio invenio-previewer | < 1.0.0a12 | CVE List |
| invenio-previewer (PyPI) | before 1.0.0a12 | GitHub Advisory Database, PyPA Advisory Database |
| inveniosoftware invenio-previewer | 0.1.0, 1.0.0 | NVD |
All scores
| GitHub | 6.1medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | medium CVSS:4.0 | 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 |
| NVD | 6.1medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
What each source says
CVE List
invenio-previewer before 1.0.0a12 allows XSS.
GitHub Advisory Database
Cross-Site Scripting (XSS) vulnerability in JSON, Markdown and iPython Notebook previewers
Impact
Several Cross-Site Scripting (XSS) vulnerabilities have been found in the JSON, Markdown and iPython Notebook previewers. The vulnerabilities would allow a malicous user to upload a JSON, Markdown or Notebook file with embedded scripts that would be executed by a victims browser.
Patches
Invenio-Previewer v1.0.0a12 fixes the issue.
Workarounds
You can remediate the vulnerability without upgrading by disabling the affected previewers. You do this by adding the following to your configuration:
PREVIEWER_PREFERENCE = [
'csv_dthreejs',
'simple_image',
# 'json_prismjs',
'xml_prismjs',
# 'mistune',
'pdfjs',
# 'ipynb',
'zip',
]
Afterwards, you should not be able to preview JSON, Markdown or iPython Notebook files.
For more information
If you have any questions or comments about this advisory:
- Email us at info@inveniosoftware.org
NVD (es)
Invenio-previewer anterior a versión 1.0.0a12, permite una vulnerabilidad de tipo XSS.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2019-1020019 changed 2024-08-05 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-j9m2-6hq2-4r3c changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2019-1020019 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2019-26 changed 2023-11-08 | CC-BY-4.0 |