{"id":"CVE-2019-1020019","aliases":["EUVD-2019-0063","GHSA-j9m2-6hq2-4r3c","PYSEC-2019-26"],"status":"published","title":"Cross-site Scripting in invenio-previewer","description":"invenio-previewer before 1.0.0a12 allows XSS.","severity":{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.00899,"percentile":0.60103,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2019-07-16T00:52:22Z","modified":"2026-10-20T10:50:37Z","fixes":[{"ecosystem":"PyPI","package":"invenio-previewer","fixed_in":["1.0.0a12"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"invenio-previewer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.0.0a11"},{"fixed":"1.0.0a12"}]}]},{"source":"osv","ecosystem":"PyPI","package":"invenio-previewer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.0a12"}]}],"versions":["0.1.0","1.0.0a10","1.0.0a11","1.0.0a2","1.0.0a3","1.0.0a4","1.0.0a5","1.0.0a6","1.0.0a7","1.0.0a8","1.0.0a9"]},{"source":"osv","ecosystem":"PyPI","package":"invenio-previewer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.0a12"}]}],"versions":["0.1.0","1.0.0a2","1.0.0a3","1.0.0a4","1.0.0a5","1.0.0a6","1.0.0a7","1.0.0a8","1.0.0a9","1.0.0a10","1.0.0a11"]}],"products":[{"vendor":"invenio","product":"invenio-previewer"},{"vendor":"inveniosoftware","product":"invenio-previewer"}],"references":[{"url":"https://github.com/inveniosoftware/invenio-previewer/security/advisories/GHSA-j9m2-6hq2-4r3c","tags":["x_refsource_MISC","x_transferred","Exploit","Mitigation","Third Party Advisory","evidence","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-1020019","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-j9m2-6hq2-4r3c","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/invenio-previewer/PYSEC-2019-26.yaml","tags":["web"]},{"url":"https://github.com/inveniosoftware/invenio-previewer","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2019-1020019","description":"invenio-previewer before 1.0.0a12 allows XSS.","status":"published","published":"2019-07-29T13:16:32Z","modified":"2024-08-05T03:14:16.053Z","updated_at":"2026-11-02T14:20:18.746972Z"}],"euvd":[{"id":"EUVD-2019-0063","description":"invenio-previewer before 1.0.0a12 allows XSS.","status":"published","published":"2019-07-29T13:16:32Z","modified":"2024-08-05T03:14:16Z","updated_at":"2026-11-03T02:40:18.31448Z"}],"ghsa":[{"id":"GHSA-j9m2-6hq2-4r3c","title":"Cross-site Scripting in invenio-previewer","description":"## 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)","status":"published","published":"2019-07-16T00:52:22Z","modified":"2024-09-23T17:04:06Z","cvss":[{"version":"4.0","score":5.3,"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","level":"medium"},{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:38:05.526697Z"}],"nvd":[{"id":"CVE-2019-1020019","description":"invenio-previewer before 1.0.0a12 allows XSS.","status":"published","published":"2019-07-29T14:15:11.317Z","modified":"2026-06-17T02:10:01.533Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:05:21.892729Z"}],"osv":[{"id":"CVE-2019-1020019","description":"invenio-previewer before 1.0.0a12 allows XSS.","status":"published","published":"2019-07-29T14:15:11.317Z","modified":"2026-10-20T10:50:37.103429938Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:10.383287Z"},{"id":"GHSA-j9m2-6hq2-4r3c","title":"Cross-site Scripting in invenio-previewer","description":"## 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)","status":"published","published":"2019-07-16T00:52:22Z","modified":"2026-09-10T03:47:55.087537191Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"},{"version":"4.0","score":5.3,"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","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:50.336262Z"},{"id":"PYSEC-2019-26","description":"invenio-previewer before 1.0.0a12 allows XSS.","status":"published","published":"2019-07-29T14:15:00Z","modified":"2023-11-08T04:00:42.983626Z","updated_at":"2026-11-02T15:52:52.192131Z"}]}}
