CVE-2019-1020019Medium· 6.1▾ SunlitCross-site Scripting in invenio-previewer
▾ Sunlit zone — Low / medium · no exploitation signal
impact 33.6 · likelihood 0.2 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Sep 12.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
0.9%
0.9% → 1.1%
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.
Invenio-Previewer v1.0.0a12 fixes the issue.
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.
If you have any questions or comments about this advisory:
invenio-previewer < 1.0.0a12Upgrade to a patched release:
invenio-previewer 1.0.0a12