CVE-2019-1020019
JSON

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 packageVersionsReported by
Invenio invenio-previewer< 1.0.0a12CVE List
invenio-previewer (PyPI)before 1.0.0a12GitHub Advisory Database, PyPA Advisory Database
inveniosoftware invenio-previewer0.1.0, 1.0.0NVD

All scores

GitHub6.1medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
NVD6.1medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD4.3medium CVSS:2.0AV: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:

NVD (es)

Invenio-previewer anterior a versión 1.0.0a12, permite una vulnerabilidad de tipo XSS.

References

Sources

SourceRecordLicence
CVE ListCVE-2019-1020019 changed 2024-08-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-j9m2-6hq2-4r3c changed 2026-09-10CC-BY-4.0
NVDCVE-2019-1020019 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2019-26 changed 2023-11-08CC-BY-4.0