{"id":"CVE-2019-1020019","aliases":["CVE-2019-1020019","GHSA-j9m2-6hq2-4r3c","PYSEC-2019-26"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting in invenio-previewer","summary":"invenio-previewer before 1.0.0a12 allows XSS.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"invenio-previewer before 1.0.0a12 allows XSS.","source":"cvelist"},{"lang":"en","text":"## Cross-Site Scripting (XSS) vulnerability in JSON, Markdown and iPython Notebook previewers\n\n### Impact\nSeveral 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.\n\n### Patches\nInvenio-Previewer v1.0.0a12 fixes the issue.\n\n### Workarounds\nYou can remediate the vulnerability without upgrading by disabling the affected previewers. You do this by adding the following to your configuration:\n\n```python\nPREVIEWER_PREFERENCE = [\n    'csv_dthreejs',\n    'simple_image',\n    # 'json_prismjs',\n    'xml_prismjs',\n    # 'mistune',\n    'pdfjs',\n    # 'ipynb',\n    'zip',\n]\n```\n\nAfterwards, you should not be able to preview JSON, Markdown or iPython Notebook files.\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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Invenio-previewer anterior a versión 1.0.0a12, permite una vulnerabilidad de tipo XSS.","source":"nvd"}],"published":"2019-07-16T00:52:22.000Z","modified":"2026-09-10T03:47:55.087Z","severity":{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 1.0.0a12","status":"affected"}],"vendor":"Invenio","product":"invenio-previewer","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.0a12"}],"ecosystem":"PyPI","package":"invenio-previewer","purl":"pkg:pypi/invenio-previewer","source":"ghsa"},{"ranges":[{"status":"affected","version":"0.1.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"},{"status":"affected","version":"1.0.0"}],"vendor":"inveniosoftware","product":"invenio-previewer","cpe":"cpe:2.3:a:inveniosoftware:invenio-previewer:0.1.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.0a12"}],"ecosystem":"PyPI","package":"invenio-previewer","purl":"pkg:pypi/invenio-previewer","source":"pysec"}],"references":[{"url":"https://github.com/inveniosoftware/invenio-previewer/security/advisories/GHSA-j9m2-6hq2-4r3c","tags":["advisory","exploit","mitigation","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-1020019","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-j9m2-6hq2-4r3c","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/inveniosoftware/invenio-previewer","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/invenio-previewer/PYSEC-2019-26.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"dwf","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-1020019","url":"https://www.cve.org/CVERecord?id=CVE-2019-1020019","licence":"CVE Terms of Use","modified":"2024-08-05T03:14:16.053Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j9m2-6hq2-4r3c","url":"https://github.com/advisories/GHSA-j9m2-6hq2-4r3c","licence":"CC-BY-4.0","modified":"2026-09-10T03:47:55.087Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-1020019","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-1020019","licence":"Public domain","modified":"2026-06-17T02:10:01.533Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2019-26","url":"https://osv.dev/vulnerability/PYSEC-2019-26","licence":"CC-BY-4.0","modified":"2023-11-08T04:00:42.983Z"}],"updatedAt":"2026-11-25T22:57:46.254Z","epss":{"score":0.00899,"percentile":0.60689,"date":"2026-12-01T12:00:22.000Z"}}